Index: src/mips/stub-cache-mips.cc |
diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc |
index fa2dd47b03d669e97580f7561357cae4f25bcef2..a9272eab7f26280a126c070b91b482f1d4c54f63 100644 |
--- a/src/mips/stub-cache-mips.cc |
+++ b/src/mips/stub-cache-mips.cc |
@@ -2096,9 +2096,7 @@ MaybeObject* CallStubCompiler::CompileMathFloorCall(Object* object, |
// Retrieve FCSR and check for fpu errors. |
__ cfc1(t5, FCSR); |
- __ srl(t5, t5, kFCSRFlagShift); |
- // Flag 1 marks an inaccurate but still good result so we ignore it. |
- __ And(t5, t5, Operand(kFCSRFlagMask ^ 1)); |
+ __ And(t5, t5, Operand(kFCSRExceptionFlagMask)); |
__ Branch(&no_fpu_error, eq, t5, Operand(zero_reg)); |
// Check for NaN, Infinity, and -Infinity. |