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

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

Issue 2583543002: Revert of [wasm] Make WasmRunner the central test structure (Closed)
Patch Set: Created 4 years 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 | « test/cctest/wasm/test-run-wasm-relocation.cc ('k') | test/cctest/wasm/test-run-wasm-simd-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/wasm/test-run-wasm-simd.cc
diff --git a/test/cctest/wasm/test-run-wasm-simd.cc b/test/cctest/wasm/test-run-wasm-simd.cc
index 2905473b17d048031ff224856eb73c82bb94ecd2..6172e733d39245bca4a8e826b33f9ad465e419aa 100644
--- a/test/cctest/wasm/test-run-wasm-simd.cc
+++ b/test/cctest/wasm/test-run-wasm-simd.cc
@@ -45,7 +45,7 @@
// return 0
//
// return 1
- WasmRunner<int32_t, int32_t> r(kExecuteCompiled);
+ WasmRunner<int32_t> r(kExecuteCompiled, MachineType::Int32());
byte lane_val = 0;
byte simd = r.AllocateLocal(kAstS128);
BUILD(r, WASM_BLOCK(WASM_SET_LOCAL(simd, WASM_SIMD_I32x4_SPLAT(
@@ -58,7 +58,8 @@
WASM_EXEC_TEST(I32x4ReplaceLane) {
FLAG_wasm_simd_prototype = true;
- WasmRunner<int32_t, int32_t, int32_t> r(kExecuteCompiled);
+ WasmRunner<int32_t> r(kExecuteCompiled, MachineType::Int32(),
+ MachineType::Int32());
byte old_val = 0;
byte new_val = 1;
byte simd = r.AllocateLocal(kAstS128);
@@ -91,7 +92,8 @@
WASM_EXEC_TEST(I32x4Add) {
FLAG_wasm_simd_prototype = true;
- WasmRunner<int32_t, int32_t, int32_t, int32_t> r(kExecuteCompiled);
+ WasmRunner<int32_t> r(kExecuteCompiled, MachineType::Int32(),
+ MachineType::Int32(), MachineType::Int32());
byte a = 0;
byte b = 1;
byte expected = 2;
@@ -113,7 +115,8 @@
WASM_EXEC_TEST(I32x4Sub) {
FLAG_wasm_simd_prototype = true;
- WasmRunner<int32_t, int32_t, int32_t, int32_t> r(kExecuteCompiled);
+ WasmRunner<int32_t> r(kExecuteCompiled, MachineType::Int32(),
+ MachineType::Int32(), MachineType::Int32());
byte a = 0;
byte b = 1;
byte expected = 2;
« no previous file with comments | « test/cctest/wasm/test-run-wasm-relocation.cc ('k') | test/cctest/wasm/test-run-wasm-simd-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698