Index: src/mips64/simulator-mips64.cc |
diff --git a/src/mips64/simulator-mips64.cc b/src/mips64/simulator-mips64.cc |
index b82b2d9b3c231fd1e6e2edfd3404e8a94260eab0..1ed7443781a8fd45c6ed2a6d2f297235bbec2d95 100644 |
--- a/src/mips64/simulator-mips64.cc |
+++ b/src/mips64/simulator-mips64.cc |
@@ -2481,7 +2481,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); |
} |
@@ -2690,7 +2690,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); |
} |