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 5da32b42ef449da6409f614286929223a4080671..bd6c48ba4cdc804310bb63f792478d8738325cec 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]) |