diff options
Diffstat (limited to 'src/lj_asm.c')
-rw-r--r-- | src/lj_asm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c index 27c9ac31..8864c9a3 100644 --- a/src/lj_asm.c +++ b/src/lj_asm.c | |||
@@ -2749,7 +2749,7 @@ static void asm_fpmath(ASMState *as, IRIns *ir) | |||
2749 | } | 2749 | } |
2750 | } | 2750 | } |
2751 | 2751 | ||
2752 | static void asm_powi(ASMState *as, IRIns *ir) | 2752 | static void asm_fppowi(ASMState *as, IRIns *ir) |
2753 | { | 2753 | { |
2754 | /* The modified regs must match with the *.dasc implementation. */ | 2754 | /* The modified regs must match with the *.dasc implementation. */ |
2755 | RegSet drop = RSET_RANGE(RID_XMM0, RID_XMM1+1)|RID2RSET(RID_EAX); | 2755 | RegSet drop = RSET_RANGE(RID_XMM0, RID_XMM1+1)|RID2RSET(RID_EAX); |
@@ -4020,14 +4020,14 @@ static void asm_ir(ASMState *as, IRIns *ir) | |||
4020 | case IR_FPMATH: case IR_ATAN2: case IR_LDEXP: | 4020 | case IR_FPMATH: case IR_ATAN2: case IR_LDEXP: |
4021 | asm_fpmath(as, ir); | 4021 | asm_fpmath(as, ir); |
4022 | break; | 4022 | break; |
4023 | case IR_POWI: | 4023 | case IR_POW: |
4024 | #if LJ_64 && LJ_HASFFI | 4024 | #if LJ_64 && LJ_HASFFI |
4025 | if (!irt_isnum(ir->t)) | 4025 | if (!irt_isnum(ir->t)) |
4026 | asm_arith64(as, ir, irt_isi64(ir->t) ? IRCALL_lj_carith_powi64 : | 4026 | asm_arith64(as, ir, irt_isi64(ir->t) ? IRCALL_lj_carith_powi64 : |
4027 | IRCALL_lj_carith_powu64); | 4027 | IRCALL_lj_carith_powu64); |
4028 | else | 4028 | else |
4029 | #endif | 4029 | #endif |
4030 | asm_powi(as, ir); | 4030 | asm_fppowi(as, ir); |
4031 | break; | 4031 | break; |
4032 | 4032 | ||
4033 | /* Overflow-checking arithmetic ops. Note: don't use LEA here! */ | 4033 | /* Overflow-checking arithmetic ops. Note: don't use LEA here! */ |
@@ -4183,7 +4183,7 @@ static void asm_setup_regsp(ASMState *as, GCtrace *T) | |||
4183 | if (inloop) | 4183 | if (inloop) |
4184 | as->modset = RSET_SCRATCH; | 4184 | as->modset = RSET_SCRATCH; |
4185 | break; | 4185 | break; |
4186 | case IR_POWI: | 4186 | case IR_POW: |
4187 | if (irt_isnum(ir->t)) { | 4187 | if (irt_isnum(ir->t)) { |
4188 | ir->prev = REGSP_HINT(RID_XMM0); | 4188 | ir->prev = REGSP_HINT(RID_XMM0); |
4189 | if (inloop) | 4189 | if (inloop) |