summaryrefslogtreecommitdiff
path: root/src/lj_asm_arm.h
diff options
context:
space:
mode:
authorMike Pall <mike>2016-02-09 17:29:23 +0100
committerMike Pall <mike>2016-02-09 17:29:23 +0100
commit825dcdc4d1e09c71ffc24565aefbb05a9cb3c2f4 (patch)
tree4362e197c39cf28f82ffa24df437d40ac2087d91 /src/lj_asm_arm.h
parentbfbcd72eb7f3bb85be9c765a174a51998e529297 (diff)
downloadluajit-825dcdc4d1e09c71ffc24565aefbb05a9cb3c2f4.tar.gz
luajit-825dcdc4d1e09c71ffc24565aefbb05a9cb3c2f4.tar.bz2
luajit-825dcdc4d1e09c71ffc24565aefbb05a9cb3c2f4.zip
Generalize LJ_SOFTFP dependencies in lj_asm.c.
Diffstat (limited to 'src/lj_asm_arm.h')
-rw-r--r--src/lj_asm_arm.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/lj_asm_arm.h b/src/lj_asm_arm.h
index 81843caf..c129dd4e 100644
--- a/src/lj_asm_arm.h
+++ b/src/lj_asm_arm.h
@@ -520,8 +520,6 @@ static void asm_tobit(ASMState *as, IRIns *ir)
520 emit_dn(as, ARMI_VMOV_R_S, dest, (tmp & 15)); 520 emit_dn(as, ARMI_VMOV_R_S, dest, (tmp & 15));
521 emit_dnm(as, ARMI_VADD_D, (tmp & 15), (left & 15), (right & 15)); 521 emit_dnm(as, ARMI_VADD_D, (tmp & 15), (left & 15), (right & 15));
522} 522}
523#else
524#define asm_tobit(as, ir) lua_assert(0)
525#endif 523#endif
526 524
527static void asm_conv(ASMState *as, IRIns *ir) 525static void asm_conv(ASMState *as, IRIns *ir)
@@ -1372,8 +1370,6 @@ static void asm_fpmath(ASMState *as, IRIns *ir)
1372 else 1370 else
1373 asm_callid(as, ir, IRCALL_lj_vm_floor + ir->op2); 1371 asm_callid(as, ir, IRCALL_lj_vm_floor + ir->op2);
1374} 1372}
1375#else
1376#define asm_fpmath(as, ir) lua_assert(0)
1377#endif 1373#endif
1378 1374
1379static int asm_swapops(ASMState *as, IRRef lref, IRRef rref) 1375static int asm_swapops(ASMState *as, IRRef lref, IRRef rref)
@@ -1492,13 +1488,7 @@ static void asm_mul(ASMState *as, IRIns *ir)
1492#define asm_subov(as, ir) asm_sub(as, ir) 1488#define asm_subov(as, ir) asm_sub(as, ir)
1493#define asm_mulov(as, ir) asm_mul(as, ir) 1489#define asm_mulov(as, ir) asm_mul(as, ir)
1494 1490
1495#if LJ_SOFTFP 1491#if !LJ_SOFTFP
1496#define asm_div(as, ir) lua_assert(0)
1497#define asm_pow(as, ir) lua_assert(0)
1498#define asm_abs(as, ir) lua_assert(0)
1499#define asm_atan2(as, ir) lua_assert(0)
1500#define asm_ldexp(as, ir) lua_assert(0)
1501#else
1502#define asm_div(as, ir) asm_fparith(as, ir, ARMI_VDIV_D) 1492#define asm_div(as, ir) asm_fparith(as, ir, ARMI_VDIV_D)
1503#define asm_pow(as, ir) asm_callid(as, ir, IRCALL_lj_vm_powi) 1493#define asm_pow(as, ir) asm_callid(as, ir, IRCALL_lj_vm_powi)
1504#define asm_abs(as, ir) asm_fpunary(as, ir, ARMI_VABS_D) 1494#define asm_abs(as, ir) asm_fpunary(as, ir, ARMI_VABS_D)