summaryrefslogtreecommitdiff
path: root/src/lj_asm.c
diff options
context:
space:
mode:
authorMike Pall <mike>2017-06-07 23:56:54 +0200
committerMike Pall <mike>2017-06-07 23:56:54 +0200
commita057a07ab702e225e21848d4f918886c5b0ac06b (patch)
tree5223cc2660144bac4c1daff5d6110a43ed4d96f2 /src/lj_asm.c
parent0e4a551809138b0e63d7d491710aa906b174495f (diff)
downloadluajit-a057a07ab702e225e21848d4f918886c5b0ac06b.tar.gz
luajit-a057a07ab702e225e21848d4f918886c5b0ac06b.tar.bz2
luajit-a057a07ab702e225e21848d4f918886c5b0ac06b.zip
MIPS64: Add soft-float support to JIT compiler backend.
Contributed by Djordje Kovacevic and Stefan Pejic from RT-RK.com. Sponsored by Cisco Systems, Inc.
Diffstat (limited to 'src/lj_asm.c')
-rw-r--r--src/lj_asm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c
index c2cf5a95..bed2268e 100644
--- a/src/lj_asm.c
+++ b/src/lj_asm.c
@@ -338,7 +338,7 @@ static Reg ra_rematk(ASMState *as, IRRef ref)
338 ra_modified(as, r); 338 ra_modified(as, r);
339 ir->r = RID_INIT; /* Do not keep any hint. */ 339 ir->r = RID_INIT; /* Do not keep any hint. */
340 RA_DBGX((as, "remat $i $r", ir, r)); 340 RA_DBGX((as, "remat $i $r", ir, r));
341#if !LJ_SOFTFP 341#if !LJ_SOFTFP32
342 if (ir->o == IR_KNUM) { 342 if (ir->o == IR_KNUM) {
343 emit_loadk64(as, r, ir); 343 emit_loadk64(as, r, ir);
344 } else 344 } else
@@ -1305,7 +1305,7 @@ static void asm_call(ASMState *as, IRIns *ir)
1305 asm_gencall(as, ci, args); 1305 asm_gencall(as, ci, args);
1306} 1306}
1307 1307
1308#if !LJ_SOFTFP 1308#if !LJ_SOFTFP32
1309static void asm_fppow(ASMState *as, IRIns *ir, IRRef lref, IRRef rref) 1309static void asm_fppow(ASMState *as, IRIns *ir, IRRef lref, IRRef rref)
1310{ 1310{
1311 const CCallInfo *ci = &lj_ir_callinfo[IRCALL_pow]; 1311 const CCallInfo *ci = &lj_ir_callinfo[IRCALL_pow];
@@ -1652,10 +1652,10 @@ static void asm_ir(ASMState *as, IRIns *ir)
1652 case IR_MUL: asm_mul(as, ir); break; 1652 case IR_MUL: asm_mul(as, ir); break;
1653 case IR_MOD: asm_mod(as, ir); break; 1653 case IR_MOD: asm_mod(as, ir); break;
1654 case IR_NEG: asm_neg(as, ir); break; 1654 case IR_NEG: asm_neg(as, ir); break;
1655#if LJ_SOFTFP 1655#if LJ_SOFTFP32
1656 case IR_DIV: case IR_POW: case IR_ABS: 1656 case IR_DIV: case IR_POW: case IR_ABS:
1657 case IR_ATAN2: case IR_LDEXP: case IR_FPMATH: case IR_TOBIT: 1657 case IR_ATAN2: case IR_LDEXP: case IR_FPMATH: case IR_TOBIT:
1658 lua_assert(0); /* Unused for LJ_SOFTFP. */ 1658 lua_assert(0); /* Unused for LJ_SOFTFP32. */
1659 break; 1659 break;
1660#else 1660#else
1661 case IR_DIV: asm_div(as, ir); break; 1661 case IR_DIV: asm_div(as, ir); break;