diff options
author | Mike Pall <mike> | 2021-09-19 17:18:16 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2021-09-19 17:18:16 +0200 |
commit | 9211f0b03b88ecad195e56683c769e93e284dcd3 (patch) | |
tree | e8c289851df23c0275fc0b18de2830b5f31c0406 /src/lj_asm_arm64.h | |
parent | f2d333c1ac0f33fe5a7386d4e66f0f6c57c2616e (diff) | |
download | luajit-9211f0b03b88ecad195e56683c769e93e284dcd3.tar.gz luajit-9211f0b03b88ecad195e56683c769e93e284dcd3.tar.bz2 luajit-9211f0b03b88ecad195e56683c769e93e284dcd3.zip |
Refactor IR_VLOAD to take an offset.
Diffstat (limited to 'src/lj_asm_arm64.h')
-rw-r--r-- | src/lj_asm_arm64.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_asm_arm64.h b/src/lj_asm_arm64.h index bb972ad1..f51c6f76 100644 --- a/src/lj_asm_arm64.h +++ b/src/lj_asm_arm64.h | |||
@@ -1078,6 +1078,7 @@ static void asm_ahuvload(ASMState *as, IRIns *ir) | |||
1078 | } | 1078 | } |
1079 | type = ra_scratch(as, rset_clear(gpr, tmp)); | 1079 | type = ra_scratch(as, rset_clear(gpr, tmp)); |
1080 | idx = asm_fuseahuref(as, ir->op1, &ofs, rset_clear(gpr, type), A64I_LDRx); | 1080 | idx = asm_fuseahuref(as, ir->op1, &ofs, rset_clear(gpr, type), A64I_LDRx); |
1081 | if (ir->o == IR_VLOAD) ofs += 8 * ir->op2; | ||
1081 | /* Always do the type check, even if the load result is unused. */ | 1082 | /* Always do the type check, even if the load result is unused. */ |
1082 | asm_guardcc(as, irt_isnum(ir->t) ? CC_LS : CC_NE); | 1083 | asm_guardcc(as, irt_isnum(ir->t) ? CC_LS : CC_NE); |
1083 | if (irt_type(ir->t) >= IRT_NUM) { | 1084 | if (irt_type(ir->t) >= IRT_NUM) { |