diff options
Diffstat (limited to 'js/src/jit-test/tests/wasm/regress/brtable-conditionblock-folding.js')
-rw-r--r-- | js/src/jit-test/tests/wasm/regress/brtable-conditionblock-folding.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/wasm/regress/brtable-conditionblock-folding.js b/js/src/jit-test/tests/wasm/regress/brtable-conditionblock-folding.js new file mode 100644 index 0000000000..6692a7473b --- /dev/null +++ b/js/src/jit-test/tests/wasm/regress/brtable-conditionblock-folding.js @@ -0,0 +1,17 @@ +assertEq(wasmEvalText(` +(module + (func $f (param $p i32) + block $out + i32.const 0 + if + i32.const 1 + tee_local $p + br_table $out $out + end + end + local.get $p + br_if 0 + ) + (export "f" (func $f)) +) +`).exports.f(42), undefined); |