Skip to content

Commit

Permalink
x64/LJ_GC64: Fix type-check-only variant of SLOAD.
Browse files Browse the repository at this point in the history
Thanks to Peter Cawley.
  • Loading branch information
Mike Pall committed Sep 10, 2017
1 parent 71b7bc8 commit 05fbdf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lj_asm_x86.h
Expand Up @@ -1759,7 +1759,7 @@ static void asm_sload(ASMState *as, IRIns *ir)
emit_i8(as, irt_toitype(t));
emit_rr(as, XO_ARITHi8, XOg_CMP, tmp);
emit_shifti(as, XOg_SAR|REX_64, tmp, 47);
emit_rmro(as, XO_MOV, tmp|REX_64, base, ofs+4);
emit_rmro(as, XO_MOV, tmp|REX_64, base, ofs);
#else
} else {
emit_i8(as, irt_toitype(t));
Expand Down

0 comments on commit 05fbdf5

Please sign in to comment.