]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
ARM64: Fix {AHUV}LOAD specialized to nil/false/true.
authorMike Pall <mike>
Mon, 18 May 2020 20:24:53 +0000 (22:24 +0200)
committerMike Pall <mike>
Mon, 18 May 2020 20:24:53 +0000 (22:24 +0200)
Reported by caohongqing.

src/lj_asm_arm64.h

index ce2100c92bbab8207f2b28c92e591a585e885ced..624cc2da1751474e420b95503380e33cf994851f 100644 (file)
@@ -1067,7 +1067,7 @@ static void asm_ahuvload(ASMState *as, IRIns *ir)
     emit_n(as, (A64I_CMNx^A64I_K12) | A64F_U12(1), tmp);
   } else {
     emit_nm(as, A64I_CMPx | A64F_SH(A64SH_LSR, 32),
-           ra_allock(as, (irt_toitype(ir->t) << 15) | 0x7fff, allow), tmp);
+           ra_allock(as, (irt_toitype(ir->t) << 15) | 0x7fff, gpr), tmp);
   }
   if (ofs & FUSE_REG)
     emit_dnm(as, (A64I_LDRx^A64I_LS_R)|A64I_LS_UXTWx|A64I_LS_SH, tmp, idx, (ofs & 31));