| 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);
|
|
|