mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix folding of (comparison x x).
This commit is contained in:
parent
16f33422f1
commit
a25a717089
@ -1020,7 +1020,7 @@ LJFOLDF(comm_comp)
|
|||||||
{
|
{
|
||||||
/* For non-numbers only: x <=> x ==> drop; x <> x ==> fail */
|
/* For non-numbers only: x <=> x ==> drop; x <> x ==> fail */
|
||||||
if (fins->op1 == fins->op2 && !irt_isnum(fins->t))
|
if (fins->op1 == fins->op2 && !irt_isnum(fins->t))
|
||||||
return CONDFOLD(fins->o & 1);
|
return CONDFOLD((fins->o ^ (fins->o >> 1)) & 1);
|
||||||
if (fins->op1 < fins->op2) { /* Move lower ref to the right. */
|
if (fins->op1 < fins->op2) { /* Move lower ref to the right. */
|
||||||
IRRef1 tmp = fins->op1;
|
IRRef1 tmp = fins->op1;
|
||||||
fins->op1 = fins->op2;
|
fins->op1 = fins->op2;
|
||||||
|
Loading…
Reference in New Issue
Block a user