diff options
Diffstat (limited to 'src/lj_asm_ppc.h')
-rw-r--r-- | src/lj_asm_ppc.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lj_asm_ppc.h b/src/lj_asm_ppc.h index 8fa8c8ef..afcd6b7a 100644 --- a/src/lj_asm_ppc.h +++ b/src/lj_asm_ppc.h | |||
@@ -1724,9 +1724,8 @@ static void asm_min_max(ASMState *as, IRIns *ir, int ismax) | |||
1724 | if (tmp == left || tmp == right) | 1724 | if (tmp == left || tmp == right) |
1725 | tmp = ra_scratch(as, rset_exclude(rset_exclude(rset_exclude(RSET_FPR, | 1725 | tmp = ra_scratch(as, rset_exclude(rset_exclude(rset_exclude(RSET_FPR, |
1726 | dest), left), right)); | 1726 | dest), left), right)); |
1727 | emit_facb(as, PPCI_FSEL, dest, tmp, | 1727 | emit_facb(as, PPCI_FSEL, dest, tmp, left, right); |
1728 | ismax ? left : right, ismax ? right : left); | 1728 | emit_fab(as, PPCI_FSUB, tmp, ismax ? left : right, ismax ? right : left); |
1729 | emit_fab(as, PPCI_FSUB, tmp, left, right); | ||
1730 | } else { | 1729 | } else { |
1731 | Reg dest = ra_dest(as, ir, RSET_GPR); | 1730 | Reg dest = ra_dest(as, ir, RSET_GPR); |
1732 | Reg tmp1 = RID_TMP, tmp2 = dest; | 1731 | Reg tmp1 = RID_TMP, tmp2 = dest; |