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 6bd00c2ca5a4d581bf78064720c5ec5fb8ce8e2f..e5e69d67c25ef26918fca7df91dfba956a95e928 100644 |
--- a/test/cctest/compiler/test-run-machops.cc |
+++ b/test/cctest/compiler/test-run-machops.cc |
@@ -4017,14 +4017,12 @@ TEST(RunTruncateFloat32ToInt32) { |
TEST(RunTruncateFloat32ToUint32) { |
BufferedRawMachineAssemblerTester<uint32_t> m(MachineType::Float32()); |
m.Return(m.TruncateFloat32ToUint32(m.Parameter(0))); |
- { |
- FOR_UINT32_INPUTS(i) { |
- float input = static_cast<float>(*i); |
- // This condition on 'input' is required because |
- // static_cast<float>(std::numeric_limits<uint32_t>::max()) results in a |
- // value outside uint32 range. |
- if (input < static_cast<float>(std::numeric_limits<uint32_t>::max())) { |
- CHECK_EQ(static_cast<uint32_t>(input), m.Call(input)); |
+ {FOR_UINT32_INPUTS(i){volatile float input = static_cast<float>(*i); |
titzer
2016/04/21 07:09:00
This somehow got formatted strangely. Maybe disabl
|
+ // This condition on 'input' is required because |
+ // static_cast<float>(std::numeric_limits<uint32_t>::max()) results in a |
+ // value outside uint32 range. |
+ if (input < static_cast<float>(std::numeric_limits<uint32_t>::max())) { |
+ CHECK_EQ(static_cast<uint32_t>(input), m.Call(input)); |
} |
} |
} |