aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2020-05-18 22:24:53 +0200
committerMike Pall <mike>2020-05-18 22:24:53 +0200
commit5bf0da3d7c02f9959fa3a9fb721e0565137b70c8 (patch)
tree39a0774c7062b8122f7b85e537b68263de0f1008 /src
parentae20998ff5aaacc8e3afd46c64e28a8e039b58a1 (diff)
downloadluajit-5bf0da3d7c02f9959fa3a9fb721e0565137b70c8.tar.gz
luajit-5bf0da3d7c02f9959fa3a9fb721e0565137b70c8.tar.bz2
luajit-5bf0da3d7c02f9959fa3a9fb721e0565137b70c8.zip
ARM64: Fix {AHUV}LOAD specialized to nil/false/true.
Reported by caohongqing.
Diffstat (limited to '')
-rw-r--r--src/lj_asm_arm64.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_asm_arm64.h b/src/lj_asm_arm64.h
index ce2100c9..624cc2da 100644
--- a/src/lj_asm_arm64.h
+++ b/src/lj_asm_arm64.h
@@ -1067,7 +1067,7 @@ static void asm_ahuvload(ASMState *as, IRIns *ir)
1067 emit_n(as, (A64I_CMNx^A64I_K12) | A64F_U12(1), tmp); 1067 emit_n(as, (A64I_CMNx^A64I_K12) | A64F_U12(1), tmp);
1068 } else { 1068 } else {
1069 emit_nm(as, A64I_CMPx | A64F_SH(A64SH_LSR, 32), 1069 emit_nm(as, A64I_CMPx | A64F_SH(A64SH_LSR, 32),
1070 ra_allock(as, (irt_toitype(ir->t) << 15) | 0x7fff, allow), tmp); 1070 ra_allock(as, (irt_toitype(ir->t) << 15) | 0x7fff, gpr), tmp);
1071 } 1071 }
1072 if (ofs & FUSE_REG) 1072 if (ofs & FUSE_REG)
1073 emit_dnm(as, (A64I_LDRx^A64I_LS_R)|A64I_LS_UXTWx|A64I_LS_SH, tmp, idx, (ofs & 31)); 1073 emit_dnm(as, (A64I_LDRx^A64I_LS_R)|A64I_LS_UXTWx|A64I_LS_SH, tmp, idx, (ofs & 31));