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..9a9fac30aa11bdccf06008b1ee95aa25fdc17b5d 100644 |
--- a/test/cctest/wasm/test-run-wasm-64.cc |
+++ b/test/cctest/wasm/test-run-wasm-64.cc |
@@ -20,6 +20,13 @@ |
// todo(ahaas): I added a list of missing instructions here to make merging |
// easier when I do them one by one. |
// kExprI64Add: |
+TEST(Run_WasmI64Add) { |
+ WasmRunner<int64_t> r(MachineType::Int64(), MachineType::Int64()); |
+ BUILD(r, WASM_I64_ADD(WASM_GET_LOCAL(0), WASM_GET_LOCAL(1))); |
+ FOR_INT64_INPUTS(i) { |
+ FOR_INT64_INPUTS(j) { CHECK_EQ(*i + *j, r.Call(*i, *j)); } |
+ } |
+} |
// kExprI64Sub: |
// kExprI64Mul: |
// kExprI64DivS: |