Skip to content

Commit 03a7ebc

Browse files
author
Mike Pall
committed
x64: Fix 64 bit shift code generation.
Reported by Philipp Kutin. Fix contributed by Peter Cawley.
1 parent dd0f09f commit 03a7ebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lj_asm_x86.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2300,7 +2300,7 @@ static void asm_bitshift(ASMState *as, IRIns *ir, x86Shift xs, x86Op xv)
23002300
dest = ra_dest(as, ir, rset_exclude(RSET_GPR, RID_ECX));
23012301
if (dest == RID_ECX) {
23022302
dest = ra_scratch(as, rset_exclude(RSET_GPR, RID_ECX));
2303-
emit_rr(as, XO_MOV, RID_ECX, dest);
2303+
emit_rr(as, XO_MOV, REX_64IR(ir, RID_ECX), dest);
23042304
}
23052305
right = irr->r;
23062306
if (ra_noreg(right))

0 commit comments

Comments
 (0)