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

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

Issue 1776613002: [wasm] Int64Lowering of I64XConvertI32. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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 | « src/compiler/wasm-compiler.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 2bcd538f5fe139069dfc42e379a59d826115ecca..08e1d519430674f52642e5ed14ac034ff238ad6c 100644
--- a/test/cctest/wasm/test-run-wasm-64.cc
+++ b/test/cctest/wasm/test-run-wasm-64.cc
@@ -170,7 +170,18 @@ TEST(Run_WasmI32ConvertI64) {
}
}
// kExprI64SConvertI32:
+TEST(Run_WasmI64SConvertI32) {
+ WasmRunner<int64_t> r(MachineType::Int32());
+ BUILD(r, WASM_I64_SCONVERT_I32(WASM_GET_LOCAL(0)));
+ FOR_INT32_INPUTS(i) { CHECK_EQ(static_cast<int64_t>(*i), r.Call(*i)); }
+}
+
// kExprI64UConvertI32:
+TEST(Run_WasmI64UConvertI32) {
+ WasmRunner<int64_t> r(MachineType::Uint32());
+ BUILD(r, WASM_I64_UCONVERT_I32(WASM_GET_LOCAL(0)));
+ FOR_UINT32_INPUTS(i) { CHECK_EQ(static_cast<uint64_t>(*i), r.Call(*i)); }
+}
// kExprF64ReinterpretI64:
// kExprI64ReinterpretF64:
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | test/unittests/compiler/int64-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698