From: Mike Pall Date: Mon, 28 Aug 2023 20:33:54 +0000 (+0200) Subject: ARM64: Fix LDP/STP fusing for unaligned accesses. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fa2f1cbcf023ad0549f1428809e506fa2c78552;p=thirdparty%2FLuaJIT.git ARM64: Fix LDP/STP fusing for unaligned accesses. Thanks to Peter Cawley. #1056 --- diff --git a/src/lj_emit_arm64.h b/src/lj_emit_arm64.h index 52d010b8..6926c71a 100644 --- a/src/lj_emit_arm64.h +++ b/src/lj_emit_arm64.h @@ -142,7 +142,7 @@ static void emit_lso(ASMState *as, A64Ins ai, Reg rd, Reg rn, int64_t ofs) } else { goto nopair; } - if (ofsm >= (int)((unsigned int)-64<mcp = aip | A64F_N(rn) | (((ofsm >> sc) & 0x7f) << 15) | (ai ^ ((ai == A64I_LDRx || ai == A64I_STRx) ? 0x50000000 : 0x90000000)); return;