Index: test/cctest/compiler/test-run-machops.cc |
diff --git a/test/cctest/compiler/test-run-machops.cc b/test/cctest/compiler/test-run-machops.cc |
index cea90a29b70971e64472d47ba57dec7ed30926d5..fba9e0e1a505e8ca89dd2866a51f50bb1af9c7fa 100644 |
--- a/test/cctest/compiler/test-run-machops.cc |
+++ b/test/cctest/compiler/test-run-machops.cc |
@@ -6163,7 +6163,10 @@ TEST(RunRoundInt32ToFloat32) { |
TEST(RunRoundUint32ToFloat32) { |
BufferedRawMachineAssemblerTester<float> m(MachineType::Uint32()); |
m.Return(m.RoundUint32ToFloat32(m.Parameter(0))); |
- FOR_UINT32_INPUTS(i) { CHECK_EQ(static_cast<float>(*i), m.Call(*i)); } |
+ FOR_UINT32_INPUTS(i) { |
+ volatile float expected = static_cast<float>(*i); |
+ CHECK_EQ(expected, m.Call(*i)); |
+ } |
} |