| Index: test/cctest/wasm/test-run-wasm.cc
|
| diff --git a/test/cctest/wasm/test-run-wasm.cc b/test/cctest/wasm/test-run-wasm.cc
|
| index d5b5c82caee9c0b990ba2f5bb3bff5ed8c7a0d5b..b1e72b71bfa087c421e83158359cb72475cf8eb9 100644
|
| --- a/test/cctest/wasm/test-run-wasm.cc
|
| +++ b/test/cctest/wasm/test-run-wasm.cc
|
| @@ -79,6 +79,14 @@ WASM_EXEC_TEST(Int32Const_many) {
|
| }
|
| }
|
|
|
| +WASM_EXEC_TEST(GraphTrimming) {
|
| + // This WebAssembly code requires graph trimming in the TurboFan compiler.
|
| + WasmRunner<int32_t> r(execution_mode, MachineType::Int32());
|
| + BUILD(r, kExprGetLocal, 0, kExprGetLocal, 0, kExprGetLocal, 0, kExprI32RemS,
|
| + kExprI32Eq, kExprGetLocal, 0, kExprI32DivS, kExprUnreachable);
|
| + r.Call(1);
|
| +}
|
| +
|
| WASM_EXEC_TEST(Int32Param0) {
|
| WasmRunner<int32_t> r(execution_mode, MachineType::Int32());
|
| // return(local[0])
|
|
|