diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_asm_x86.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lj_asm_x86.h b/src/lj_asm_x86.h index 21b510ca..db3409b9 100644 --- a/src/lj_asm_x86.h +++ b/src/lj_asm_x86.h | |||
@@ -2061,8 +2061,9 @@ static void asm_intarith(ASMState *as, IRIns *ir, x86Arith xa) | |||
2061 | int32_t k = 0; | 2061 | int32_t k = 0; |
2062 | if (as->flagmcp == as->mcp) { /* Drop test r,r instruction. */ | 2062 | if (as->flagmcp == as->mcp) { /* Drop test r,r instruction. */ |
2063 | MCode *p = as->mcp + ((LJ_64 && *as->mcp < XI_TESTb) ? 3 : 2); | 2063 | MCode *p = as->mcp + ((LJ_64 && *as->mcp < XI_TESTb) ? 3 : 2); |
2064 | if ((p[1] & 15) < 14) { | 2064 | MCode *q = p[0] == 0x0f ? p+1 : p; |
2065 | if ((p[1] & 15) >= 12) p[1] -= 4; /* L <->S, NL <-> NS */ | 2065 | if ((*q & 15) < 14) { |
2066 | if ((*q & 15) >= 12) *q -= 4; /* L <->S, NL <-> NS */ | ||
2066 | as->flagmcp = NULL; | 2067 | as->flagmcp = NULL; |
2067 | as->mcp = p; | 2068 | as->mcp = p; |
2068 | } /* else: cannot transform LE/NLE to cc without use of OF. */ | 2069 | } /* else: cannot transform LE/NLE to cc without use of OF. */ |