diff options
author | Mike Pall <mike> | 2011-03-10 01:09:18 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-03-10 01:09:18 +0100 |
commit | 1c9981ae4c9618c046756333fcc6d33c9492f2ae (patch) | |
tree | 05e96fdab6460873f70b82cedf3874edeec9a655 /src | |
parent | a127eaf8d21e7c00d88a9d024ce66efe756e4c66 (diff) | |
download | luajit-1c9981ae4c9618c046756333fcc6d33c9492f2ae.tar.gz luajit-1c9981ae4c9618c046756333fcc6d33c9492f2ae.tar.bz2 luajit-1c9981ae4c9618c046756333fcc6d33c9492f2ae.zip |
x86/x64: Fix code generation for fused IR_MUL/IR_MULOV.
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 7ed9ca62..5f3c5fab 100644 --- a/src/lj_asm.c +++ b/src/lj_asm.c | |||
@@ -2904,7 +2904,7 @@ static void asm_intarith(ASMState *as, IRIns *ir, x86Arith xa) | |||
2904 | x86Op xo; | 2904 | x86Op xo; |
2905 | if (checki8(k)) { emit_i8(as, k); xo = XO_IMULi8; | 2905 | if (checki8(k)) { emit_i8(as, k); xo = XO_IMULi8; |
2906 | } else { emit_i32(as, k); xo = XO_IMULi; } | 2906 | } else { emit_i32(as, k); xo = XO_IMULi; } |
2907 | emit_rr(as, xo, REX_64IR(ir, dest), left); | 2907 | emit_mrm(as, xo, REX_64IR(ir, dest), left); |
2908 | return; | 2908 | return; |
2909 | } | 2909 | } |
2910 | ra_left(as, dest, lref); | 2910 | ra_left(as, dest, lref); |