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

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

Issue 1778893005: [wasm] Int64Lowering of Int64Sub on ia32 and arm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-add
Patch Set: Rebase. Created 4 years, 9 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 | « test/cctest/compiler/test-run-machops.cc ('k') | test/unittests/compiler/int64-lowering-unittest.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-64.cc
diff --git a/test/cctest/wasm/test-run-wasm-64.cc b/test/cctest/wasm/test-run-wasm-64.cc
index afa918aabf532ccecd6ef3e40c5bb51b915e86b4..3105ebd28f77c8ef95d83630a91aa1028dd0d724 100644
--- a/test/cctest/wasm/test-run-wasm-64.cc
+++ b/test/cctest/wasm/test-run-wasm-64.cc
@@ -41,12 +41,13 @@
#define FOREACH_I64_OPERATOR(V) \
V(DepthFirst, true) \
+ V(I64Phi, false) \
V(I64Const, true) \
V(I64Return, true) \
V(I64Param, true) \
V(I64LoadStore, true) \
V(I64Add, !MIPS_OR_X87) \
- V(I64Sub, false) \
+ V(I64Sub, !MIPS_OR_X87) \
V(I64Mul, false) \
V(I64DivS, true) \
V(I64DivU, true) \
@@ -137,6 +138,14 @@ TEST(Run_WasmI64Add) {
}
}
// kExprI64Sub:
+TEST(Run_Wasm_I64Sub) {
+ REQUIRE(I64Sub);
+ WasmRunner<int64_t> r(MachineType::Int64(), MachineType::Int64());
+ BUILD(r, WASM_I64_SUB(WASM_GET_LOCAL(0), WASM_GET_LOCAL(1)));
+ FOR_INT64_INPUTS(i) {
+ FOR_INT64_INPUTS(j) { CHECK_EQ(*i - *j, r.Call(*i, *j)); }
+ }
+}
// kExprI64Mul:
// kExprI64DivS:
@@ -1241,6 +1250,7 @@ TEST(Run_Wasm_MemI64_Sum) {
REQUIRE(I64LoadStore);
REQUIRE(I64Add);
REQUIRE(I64Sub);
+ REQUIRE(I64Phi);
const int kNumElems = 20;
TestingModule module;
uint64_t* memory = module.AddMemoryElems<uint64_t>(kNumElems);
« no previous file with comments | « test/cctest/compiler/test-run-machops.cc ('k') | test/unittests/compiler/int64-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698