diff options
author | Mike Pall <mike> | 2010-01-19 01:45:39 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-01-19 01:45:39 +0100 |
commit | 36769c2f6b78e0802cc7cd86f6da301cd7a171fe (patch) | |
tree | 250e0e02ed66e50c9383772be479e78d8920fc2b /src | |
parent | 4e39597ba63bb0ad2065c92b7508ac17ae53f297 (diff) | |
download | luajit-36769c2f6b78e0802cc7cd86f6da301cd7a171fe.tar.gz luajit-36769c2f6b78e0802cc7cd86f6da301cd7a171fe.tar.bz2 luajit-36769c2f6b78e0802cc7cd86f6da301cd7a171fe.zip |
Fix broken intarith + testop optimization.
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_asm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c index 20d26278..6d42cf35 100644 --- a/src/lj_asm.c +++ b/src/lj_asm.c | |||
@@ -2423,9 +2423,9 @@ static void asm_comp_(ASMState *as, IRIns *ir, int cc) | |||
2423 | asm_guardcc(as, cc); | 2423 | asm_guardcc(as, cc); |
2424 | if (usetest && left != RID_MRM) { | 2424 | if (usetest && left != RID_MRM) { |
2425 | /* Use test r,r instead of cmp r,0. */ | 2425 | /* Use test r,r instead of cmp r,0. */ |
2426 | emit_rr(as, XO_TEST, left, left); | ||
2426 | if (irl+1 == ir) /* Referencing previous ins? */ | 2427 | if (irl+1 == ir) /* Referencing previous ins? */ |
2427 | as->testmcp = as->mcp; /* Set flag to drop test r,r if possible. */ | 2428 | as->testmcp = as->mcp; /* Set flag to drop test r,r if possible. */ |
2428 | emit_rr(as, XO_TEST, left, left); | ||
2429 | } else { | 2429 | } else { |
2430 | x86Op xo; | 2430 | x86Op xo; |
2431 | if (checki8(imm)) { | 2431 | if (checki8(imm)) { |