Index: src/mips/simulator-mips.cc |
diff --git a/src/mips/simulator-mips.cc b/src/mips/simulator-mips.cc |
index 4ef61abe3db140721365325748679b91852271fd..e945b0ca5fa1741c58368a348e90f25ad81c899d 100644 |
--- a/src/mips/simulator-mips.cc |
+++ b/src/mips/simulator-mips.cc |
@@ -2310,7 +2310,7 @@ void Simulator::DecodeTypeRegisterDRsType() { |
} else if (fabs(fs) < fabs(ft)) { |
result = fs; |
} else { |
- result = (fs > ft ? fs : ft); |
+ result = (fs < ft ? fs : ft); |
} |
set_fpu_register_double(fd_reg(), result); |
} |
@@ -3070,7 +3070,7 @@ void Simulator::DecodeTypeRegisterSRsType() { |
} else if (fabs(fs) < fabs(ft)) { |
result = fs; |
} else { |
- result = (fs > ft ? fs : ft); |
+ result = (fs < ft ? fs : ft); |
} |
set_fpu_register_float(fd_reg(), result); |
} |