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

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

Issue 1798863004: [wasm] Add I64Eqz operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « src/wasm/wasm-opcodes.h ('k') | test/unittests/wasm/wasm-macro-gen-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 021da1c88d08d71c63a190e038e4a85f4e7b5ab4..ac7ab33f0179c9e302046df392c65823c8534afb 100644
--- a/test/cctest/wasm/test-run-wasm-64.cc
+++ b/test/cctest/wasm/test-run-wasm-64.cc
@@ -1201,3 +1201,15 @@ TEST(Run_Wasm_I64Global) {
CHECK_EQ(expected, *global);
}
}
+
+TEST(Run_WasmI64Eqz) {
+ REQUIRE(I64Eq);
+
+ WasmRunner<int32_t> r(MachineType::Int64());
+ BUILD(r, WASM_I64_EQZ(WASM_GET_LOCAL(0)));
+
+ FOR_INT64_INPUTS(i) {
+ int32_t result = *i == 0 ? 1 : 0;
+ CHECK_EQ(result, r.Call(*i));
+ }
+}
« no previous file with comments | « src/wasm/wasm-opcodes.h ('k') | test/unittests/wasm/wasm-macro-gen-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698