mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
x86/x64: Always mark ref for shift count as non-weak.
This commit is contained in:
parent
fec750c892
commit
2e8e587638
@ -1999,11 +1999,10 @@ static void asm_bitshift(ASMState *as, IRIns *ir, x86Shift xs)
|
||||
else if (right != RID_ECX)
|
||||
ra_scratch(as, RID2RSET(RID_ECX));
|
||||
emit_rr(as, XO_SHIFTcl, REX_64IR(ir, xs), dest);
|
||||
if (right != RID_ECX) {
|
||||
ra_noweak(as, right);
|
||||
if (right != RID_ECX)
|
||||
emit_rr(as, XO_MOV, RID_ECX, right);
|
||||
}
|
||||
}
|
||||
ra_left(as, dest, ir->op1);
|
||||
/*
|
||||
** Note: avoid using the flags resulting from a shift or rotate!
|
||||
|
Loading…
Reference in New Issue
Block a user