| Index: src/mips64/simulator-mips64.cc
|
| diff --git a/src/mips64/simulator-mips64.cc b/src/mips64/simulator-mips64.cc
|
| index b4a41035cc151e27f1d83de4e102e9aa11e8b783..d3fcb4a7a3e8798815aeacfe0412bf1a86b3c42c 100644
|
| --- a/src/mips64/simulator-mips64.cc
|
| +++ b/src/mips64/simulator-mips64.cc
|
| @@ -1246,7 +1246,7 @@
|
| ret = true;
|
| }
|
|
|
| - if (rounded >= max_int32 || rounded < min_int32) {
|
| + if (rounded > max_int32 || rounded < min_int32) {
|
| set_fcsr_bit(kFCSROverflowFlagBit, true);
|
| // The reference is not really clear but it seems this is required:
|
| set_fcsr_bit(kFCSRInvalidOpFlagBit, true);
|
| @@ -1278,7 +1278,7 @@
|
| ret = true;
|
| }
|
|
|
| - if (rounded >= max_int64 || rounded < min_int64) {
|
| + if (rounded > max_int64 || rounded < min_int64) {
|
| set_fcsr_bit(kFCSROverflowFlagBit, true);
|
| // The reference is not really clear but it seems this is required:
|
| set_fcsr_bit(kFCSRInvalidOpFlagBit, true);
|
| @@ -1310,7 +1310,7 @@
|
| ret = true;
|
| }
|
|
|
| - if (rounded >= max_int32 || rounded < min_int32) {
|
| + if (rounded > max_int32 || rounded < min_int32) {
|
| set_fcsr_bit(kFCSROverflowFlagBit, true);
|
| // The reference is not really clear but it seems this is required:
|
| set_fcsr_bit(kFCSRInvalidOpFlagBit, true);
|
| @@ -1460,7 +1460,7 @@
|
| ret = true;
|
| }
|
|
|
| - if (rounded >= max_int64 || rounded < min_int64) {
|
| + if (rounded > max_int64 || rounded < min_int64) {
|
| set_fcsr_bit(kFCSROverflowFlagBit, true);
|
| // The reference is not really clear but it seems this is required:
|
| set_fcsr_bit(kFCSRInvalidOpFlagBit, true);
|
|
|