Index: test/cctest/wasm/test-run-wasm.cc |
diff --git a/test/cctest/wasm/test-run-wasm.cc b/test/cctest/wasm/test-run-wasm.cc |
index 8dc14f37eaa23be1cddbc2a2eff45c4d56012412..fd41cd9d549dcd4fbd650483e948fa1c4d16895a 100644 |
--- a/test/cctest/wasm/test-run-wasm.cc |
+++ b/test/cctest/wasm/test-run-wasm.cc |
@@ -2800,7 +2800,10 @@ TEST(Run_WasmCall_Float32Sub) { |
BUILD(r, WASM_CALL_FUNCTION(index, WASM_GET_LOCAL(0), WASM_GET_LOCAL(1))); |
FOR_FLOAT32_INPUTS(i) { |
- FOR_FLOAT32_INPUTS(j) { CheckFloatEq(*i - *j, r.Call(*i, *j)); } |
+ FOR_FLOAT32_INPUTS(j) { |
+ volatile float expected = *i - *j; |
+ CheckFloatEq(expected, r.Call(*i, *j)); |
+ } |
} |
} |