diff options
Diffstat (limited to 'src/lj_asm_mips.h')
-rw-r--r-- | src/lj_asm_mips.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lj_asm_mips.h b/src/lj_asm_mips.h index 9309b781..a242904e 100644 --- a/src/lj_asm_mips.h +++ b/src/lj_asm_mips.h | |||
@@ -2121,12 +2121,12 @@ static void asm_min_max(ASMState *as, IRIns *ir, int ismax) | |||
2121 | right = (left >> 8); left &= 255; | 2121 | right = (left >> 8); left &= 255; |
2122 | #if !LJ_TARGET_MIPSR6 | 2122 | #if !LJ_TARGET_MIPSR6 |
2123 | if (dest == left) { | 2123 | if (dest == left) { |
2124 | emit_fg(as, MIPSI_MOVT_D, dest, right); | 2124 | emit_fg(as, MIPSI_MOVF_D, dest, right); |
2125 | } else { | 2125 | } else { |
2126 | emit_fg(as, MIPSI_MOVF_D, dest, left); | 2126 | emit_fg(as, MIPSI_MOVT_D, dest, left); |
2127 | if (dest != right) emit_fg(as, MIPSI_MOV_D, dest, right); | 2127 | if (dest != right) emit_fg(as, MIPSI_MOV_D, dest, right); |
2128 | } | 2128 | } |
2129 | emit_fgh(as, MIPSI_C_OLT_D, 0, ismax ? left : right, ismax ? right : left); | 2129 | emit_fgh(as, MIPSI_C_OLT_D, 0, ismax ? right : left, ismax ? left : right); |
2130 | #else | 2130 | #else |
2131 | emit_fgh(as, ismax ? MIPSI_MAX_D : MIPSI_MIN_D, dest, left, right); | 2131 | emit_fgh(as, ismax ? MIPSI_MAX_D : MIPSI_MIN_D, dest, left, right); |
2132 | #endif | 2132 | #endif |