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 196aea4f57e9aebf872d4f4c5805b50992300e74..4873f570b72eecb66b367cebca7e68c7670a0d8d 100644 |
--- a/test/cctest/wasm/test-run-wasm.cc |
+++ b/test/cctest/wasm/test-run-wasm.cc |
@@ -2933,6 +2933,14 @@ TEST(Run_Wasm_MultipleCallIndirect) { |
} |
+TEST(Run_Wasm_F32Trunc) { |
+ WasmRunner<float> r(MachineType::Float32()); |
+ BUILD(r, WASM_F32_TRUNC(WASM_GET_LOCAL(0))); |
+ |
+ FOR_FLOAT32_INPUTS(i) { CheckFloatEq(trunc(*i), r.Call(*i)); } |
+} |
+ |
+ |
// TODO(titzer): Fix for nosee4 and re-enable. |
#if 0 |
@@ -2952,14 +2960,6 @@ TEST(Run_Wasm_F32Ceil) { |
} |
-TEST(Run_Wasm_F32Trunc) { |
- WasmRunner<float> r(MachineType::Float32()); |
- BUILD(r, WASM_F32_TRUNC(WASM_GET_LOCAL(0))); |
- |
- FOR_FLOAT32_INPUTS(i) { CheckFloatEq(trunc(*i), r.Call(*i)); } |
-} |
- |
- |
TEST(Run_Wasm_F32NearestInt) { |
WasmRunner<float> r(MachineType::Float32()); |
BUILD(r, WASM_F32_NEARESTINT(WASM_GET_LOCAL(0))); |