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 {AHUV}LOAD specialized to nil/false/true. Date: Thu, 30 Mar 2023 17:37:13 +0000 [thread overview] Message-ID: <ZCXIyZwHq7bdsDma@tarantool.org> (raw) In-Reply-To: <20230125185758.5760-1-skaplun@tarantool.org> Sergey, I've checked the patchset into all long-term branches in tarantool/luajit and bumped a new version in master, 2.11 and 2.10. On 25.01.23, Sergey Kaplun via Tarantool-patches wrote: > From: Mike Pall <mike> > > Reported by caohongqing. > > (cherry picked from commit 5bf0da3d7c02f9959fa3a9fb721e0565137b70c8) > > If there is high register pressure, and there are almost all registers > in use during the aforementioned assembling, the same register is chosen > as the one holding the given stack slot and the one holding the constant > value for the type comparison. As the result we get the following > assertion guard check in assembly: > | cmp x0, x0, lsr #32 > | bne ->0 > Which is always false. > > This happens because the `tmp` register (used for loading constant type > to compare in assertion guard) is scratched from `gpr` register set, but > not from `allow` set, which is used during picking the register for slot > loading (at the begging `allow` and `gpr` sets are the same). > > This patch changes `allow` set to `gpr` to fix the issue. > > Sergey Kaplun: > * added the description and the test for the problem > > Part of tarantool/tarantool#8069 > --- > > Branch: https://github.com/tarantool/luajit/tree/skaplun/or-94-fix-bool-ahuvload > PR: https://github.com/tarantool/tarantool/pull/8214 > Issues: > * https://github.com/tarantool/tarantool/issues/8069 > * https://github.com/openresty/luajit2/pull/94 > > src/lj_asm_arm64.h | 2 +- > .../or-94-arm64-ir-ahuvload-bool.test.lua | 145 ++++++++++++++++++ > 2 files changed, 146 insertions(+), 1 deletion(-) > create mode 100644 test/tarantool-tests/or-94-arm64-ir-ahuvload-bool.test.lua > <snipped> > -- > 2.34.1 > -- Best regards, IM
prev parent reply other threads:[~2023-03-30 17:44 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-01-25 18:57 Sergey Kaplun via Tarantool-patches 2023-02-28 9:52 ` Maxim Kokryashkin via Tarantool-patches 2023-03-02 5:52 ` Sergey Kaplun via Tarantool-patches 2023-03-06 15:29 ` Maxim Kokryashkin via Tarantool-patches 2023-03-10 14:49 ` Igor Munkin via Tarantool-patches 2023-03-30 17:37 ` 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=ZCXIyZwHq7bdsDma@tarantool.org \ --to=tarantool-patches@dev.tarantool.org \ --cc=imun@tarantool.org \ --cc=skaplun@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH luajit] ARM64: Fix {AHUV}LOAD specialized to nil/false/true.' \ /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