diff options
author | Mike Pall <mike> | 2020-05-22 04:53:35 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2020-05-22 04:53:35 +0200 |
commit | 5655be4546d9177890c69f0d0accac4773ff0887 (patch) | |
tree | 794518da2d5a42ec79013eda0c92f7f1e4e8d3ce /src/lj_asm.c | |
parent | c5b8e9168bae3efb6eb0fe2d4c9466c57fa5f971 (diff) | |
download | luajit-5655be4546d9177890c69f0d0accac4773ff0887.tar.gz luajit-5655be4546d9177890c69f0d0accac4773ff0887.tar.bz2 luajit-5655be4546d9177890c69f0d0accac4773ff0887.zip |
Cleanup math function compilation and fix inconsistencies.
Diffstat (limited to 'src/lj_asm.c')
-rw-r--r-- | src/lj_asm.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c index 68d28fb0..20d63731 100644 --- a/src/lj_asm.c +++ b/src/lj_asm.c | |||
@@ -1657,14 +1657,13 @@ static void asm_ir(ASMState *as, IRIns *ir) | |||
1657 | case IR_NEG: asm_neg(as, ir); break; | 1657 | case IR_NEG: asm_neg(as, ir); break; |
1658 | #if LJ_SOFTFP32 | 1658 | #if LJ_SOFTFP32 |
1659 | case IR_DIV: case IR_POW: case IR_ABS: | 1659 | case IR_DIV: case IR_POW: case IR_ABS: |
1660 | case IR_ATAN2: case IR_LDEXP: case IR_FPMATH: case IR_TOBIT: | 1660 | case IR_LDEXP: case IR_FPMATH: case IR_TOBIT: |
1661 | lua_assert(0); /* Unused for LJ_SOFTFP32. */ | 1661 | lua_assert(0); /* Unused for LJ_SOFTFP32. */ |
1662 | break; | 1662 | break; |
1663 | #else | 1663 | #else |
1664 | case IR_DIV: asm_div(as, ir); break; | 1664 | case IR_DIV: asm_div(as, ir); break; |
1665 | case IR_POW: asm_pow(as, ir); break; | 1665 | case IR_POW: asm_pow(as, ir); break; |
1666 | case IR_ABS: asm_abs(as, ir); break; | 1666 | case IR_ABS: asm_abs(as, ir); break; |
1667 | case IR_ATAN2: asm_atan2(as, ir); break; | ||
1668 | case IR_LDEXP: asm_ldexp(as, ir); break; | 1667 | case IR_LDEXP: asm_ldexp(as, ir); break; |
1669 | case IR_FPMATH: asm_fpmath(as, ir); break; | 1668 | case IR_FPMATH: asm_fpmath(as, ir); break; |
1670 | case IR_TOBIT: asm_tobit(as, ir); break; | 1669 | case IR_TOBIT: asm_tobit(as, ir); break; |
@@ -2158,11 +2157,6 @@ static void asm_setup_regsp(ASMState *as) | |||
2158 | as->modset = RSET_SCRATCH; | 2157 | as->modset = RSET_SCRATCH; |
2159 | break; | 2158 | break; |
2160 | #if !LJ_SOFTFP | 2159 | #if !LJ_SOFTFP |
2161 | case IR_ATAN2: | ||
2162 | #if LJ_TARGET_X86 | ||
2163 | if (as->evenspill < 4) /* Leave room to call atan2(). */ | ||
2164 | as->evenspill = 4; | ||
2165 | #endif | ||
2166 | #if !LJ_TARGET_X86ORX64 | 2160 | #if !LJ_TARGET_X86ORX64 |
2167 | case IR_LDEXP: | 2161 | case IR_LDEXP: |
2168 | #endif | 2162 | #endif |