Index: test/cctest/wasm/test-run-wasm-64.cc |
diff --git a/test/cctest/wasm/test-run-wasm-64.cc b/test/cctest/wasm/test-run-wasm-64.cc |
index 79ed38645b5071b163e7290ff304b19f82016e4d..49f03e1a6dd97dc9995fe03fb0eaf3858574bf98 100644 |
--- a/test/cctest/wasm/test-run-wasm-64.cc |
+++ b/test/cctest/wasm/test-run-wasm-64.cc |
@@ -260,7 +260,10 @@ TEST(Run_WasmI64UConvertI32) { |
TEST(Run_WasmF32SConvertI64) { |
WasmRunner<float> r(MachineType::Int64()); |
BUILD(r, WASM_F32_SCONVERT_I64(WASM_GET_LOCAL(0))); |
- FOR_INT64_INPUTS(i) { CHECK_EQ(static_cast<float>(*i), r.Call(*i)); } |
+ FOR_INT64_INPUTS(i) { |
+ volatile float expected = static_cast<float>(*i); |
titzer
2016/03/16 09:44:51
Can you try the CHECK_DOUBLE_EQ macro?
|
+ CHECK_EQ(expected, r.Call(*i)); |
+ } |
} |
// kExprF32UConvertI64: |
TEST(Run_WasmF32UConvertI64) { |
@@ -353,7 +356,10 @@ TEST(Run_WasmF32UConvertI64) { |
TEST(Run_WasmF64SConvertI64) { |
WasmRunner<double> r(MachineType::Int64()); |
BUILD(r, WASM_F64_SCONVERT_I64(WASM_GET_LOCAL(0))); |
- FOR_INT64_INPUTS(i) { CHECK_EQ(static_cast<double>(*i), r.Call(*i)); } |
+ FOR_INT64_INPUTS(i) { |
+ volatile double expected = static_cast<double>(*i); |
+ CHECK_EQ(expected, r.Call(*i)); |
+ } |
} |
// kExprF64UConvertI64: |
TEST(Run_Wasm_F64UConvertI64) { |