aboutsummaryrefslogtreecommitdiff
path: root/src/lj_asm.c
diff options
context:
space:
mode:
authorMike Pall <mike>2010-12-31 01:00:54 +0100
committerMike Pall <mike>2010-12-31 01:00:54 +0100
commit65b194a2f89eb315029724af56354bb527021192 (patch)
treed932b57effed9283029f49f8ec82b3182d615cc0 /src/lj_asm.c
parentdc4b82c33d04930bbc2e54673ebea41ffa3368fc (diff)
downloadluajit-65b194a2f89eb315029724af56354bb527021192.tar.gz
luajit-65b194a2f89eb315029724af56354bb527021192.tar.bz2
luajit-65b194a2f89eb315029724af56354bb527021192.zip
Copy destination type for CONV from ir->t to op2, too.
Diffstat (limited to 'src/lj_asm.c')
-rw-r--r--src/lj_asm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c
index eb6f00e7..9009a7d5 100644
--- a/src/lj_asm.c
+++ b/src/lj_asm.c
@@ -1656,7 +1656,7 @@ static void asm_toi64(ASMState *as, IRIns *ir)
1656 1656
1657static void asm_conv(ASMState *as, IRIns *ir) 1657static void asm_conv(ASMState *as, IRIns *ir)
1658{ 1658{
1659 IRType st = (IRType)(ir->op2 & 0x1f); 1659 IRType st = (IRType)(ir->op2 & IRCONV_SRCMASK);
1660 int st64 = (st == IRT_I64 || st == IRT_U64 || (LJ_64 && st == IRT_P64)); 1660 int st64 = (st == IRT_I64 || st == IRT_U64 || (LJ_64 && st == IRT_P64));
1661 int stfp = (st == IRT_NUM || st == IRT_FLOAT); 1661 int stfp = (st == IRT_NUM || st == IRT_FLOAT);
1662 IRRef lref = ir->op1; 1662 IRRef lref = ir->op1;