From: Igor Munkin via Tarantool-patches <tarantool-patches@dev.tarantool.org> To: Sergey Kaplun <skaplun@tarantool.org> Cc: tarantool-patches@dev.tarantool.org Subject: Re: [Tarantool-patches] [PATCH luajit] ARM64: Fix assembly of HREFK. Date: Thu, 30 Jun 2022 15:11:18 +0300 [thread overview] Message-ID: <Yr2S5oFWSssIB/Te@tarantool.org> (raw) In-Reply-To: <20211027130222.15625-1-skaplun@tarantool.org> Sergey, I've checked the patch into all long-term branches with ARM64 support in tarantool/luajit and bumped a new version in master, 2.10. On 27.10.21, Sergey Kaplun wrote: > From: Mike Pall <mike> > > Reported by Jason Teplitz. > > (cherry picked from commit 06cd9fce7df440323647174f1ca4a01281ec8acd) > > LDR instruction with register offset [1] has a restriction, that the > destination register must be different from the register used for offset > base. HREFK IR emits LDR instruction for a load of node key to a > register. Base register to offset contains a node address. The register > holding the node address is not excluded from a allow set, when loading > the key value to a new register, and may be chosen by the register > allocator as a destination for the key value, which violates the > aforementioned restriction. > > This patch excludes the node register from the allowing set in the > allocation of register for a key value. > > Sergey Kaplun: > * added the description and the test for the problem > > [1]: https://developer.arm.com/documentation/dui0489/c/arm-and-thumb-instructions/memory-access-instructions/ldr-and-str--register-offset- > > Part of tarantool/tarantool#6548 > --- > > Branch: https://github.com/tarantool/luajit/tree/skaplun/lj-357-arm64-hrefk > Tarantool branch: https://github.com/tarantool/tarantool/tree/skaplun/lj-357-arm64-hrefk > LuaJIT issue: https://github.com/LuaJIT/LuaJIT/issues/357 > Issue: https://github.com/tarantool/tarantool/issues/6548 > > src/lj_asm_arm64.h | 11 ++++---- > .../lj-357-arm64-hrefk.test.lua | 27 +++++++++++++++++++ > 2 files changed, 32 insertions(+), 6 deletions(-) > create mode 100644 test/tarantool-tests/lj-357-arm64-hrefk.test.lua > <snipped> > -- > 2.31.0 > -- Best regards, IM
prev parent reply other threads:[~2022-06-30 12:22 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-10-27 13:02 Sergey Kaplun via Tarantool-patches 2022-03-30 10:26 ` sergos via Tarantool-patches 2022-04-04 8:55 ` Sergey Kaplun via Tarantool-patches 2022-06-29 9:16 ` Igor Munkin via Tarantool-patches 2022-06-30 12:11 ` Igor Munkin via Tarantool-patches [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=Yr2S5oFWSssIB/Te@tarantool.org \ --to=tarantool-patches@dev.tarantool.org \ --cc=imun@tarantool.org \ --cc=skaplun@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH luajit] ARM64: Fix assembly of HREFK.' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox