diff options
author | Mike Pall <mike> | 2017-09-10 14:05:30 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2017-09-10 14:05:30 +0200 |
commit | 05fbdf565c700365d22e38f11478101a0d92a23e (patch) | |
tree | 9e6e3a9ca046699a007d70dd6168ba361a6adfb6 /src | |
parent | 71b7bc88341945f13f3951e2bb5fd247b639ff7a (diff) | |
download | luajit-05fbdf565c700365d22e38f11478101a0d92a23e.tar.gz luajit-05fbdf565c700365d22e38f11478101a0d92a23e.tar.bz2 luajit-05fbdf565c700365d22e38f11478101a0d92a23e.zip |
x64/LJ_GC64: Fix type-check-only variant of SLOAD.
Thanks to Peter Cawley.
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_asm_x86.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_asm_x86.h b/src/lj_asm_x86.h index 55c02d24..af54dc7f 100644 --- a/src/lj_asm_x86.h +++ b/src/lj_asm_x86.h | |||
@@ -1759,7 +1759,7 @@ static void asm_sload(ASMState *as, IRIns *ir) | |||
1759 | emit_i8(as, irt_toitype(t)); | 1759 | emit_i8(as, irt_toitype(t)); |
1760 | emit_rr(as, XO_ARITHi8, XOg_CMP, tmp); | 1760 | emit_rr(as, XO_ARITHi8, XOg_CMP, tmp); |
1761 | emit_shifti(as, XOg_SAR|REX_64, tmp, 47); | 1761 | emit_shifti(as, XOg_SAR|REX_64, tmp, 47); |
1762 | emit_rmro(as, XO_MOV, tmp|REX_64, base, ofs+4); | 1762 | emit_rmro(as, XO_MOV, tmp|REX_64, base, ofs); |
1763 | #else | 1763 | #else |
1764 | } else { | 1764 | } else { |
1765 | emit_i8(as, irt_toitype(t)); | 1765 | emit_i8(as, irt_toitype(t)); |