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: |