From 0cf78854a9abbe33cc3298b3db4f95a431031a1f Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Mon, 20 Mar 2017 23:49:57 +0100 Subject: [PATCH] ARM64: Fix XLOAD/XSTORE with FP operand. Thanks to Stefan Pejic. --- src/lj_asm_arm64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lj_asm_arm64.h b/src/lj_asm_arm64.h index 328e4d7740..b58ab3a183 100644 --- a/src/lj_asm_arm64.h +++ b/src/lj_asm_arm64.h @@ -286,7 +286,7 @@ static void asm_fusexref(ASMState *as, A64Ins ai, Reg rd, IRRef ref, } rm = ra_alloc1(as, lref, allow); rn = ra_alloc1(as, rref, rset_exclude(allow, rm)); - emit_dnm(as, (ai^A64I_LS_R), rd, rn, rm); + emit_dnm(as, (ai^A64I_LS_R), (rd & 31), rn, rm); return; } } else if (ir->o == IR_STRREF) {