Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Unified Diff: test/cctest/wasm/test-run-wasm.cc

Issue 1611513003: [wasm] Implemented F32Trunc as a turbofan graph based on int32 instructions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)));
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698