summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/baseline-nops-jumptable.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/wasm/regress/baseline-nops-jumptable.js')
-rw-r--r--js/src/jit-test/tests/wasm/regress/baseline-nops-jumptable.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/wasm/regress/baseline-nops-jumptable.js b/js/src/jit-test/tests/wasm/regress/baseline-nops-jumptable.js
new file mode 100644
index 0000000000..e4388296fb
--- /dev/null
+++ b/js/src/jit-test/tests/wasm/regress/baseline-nops-jumptable.js
@@ -0,0 +1,12 @@
+// |jit-test| --arm-asm-nop-fill=1
+var f = wasmEvalText(`(module (func (param i32) (result i32)
+ (block $0
+ (block $1
+ (block $2
+ (block $default
+ (br_table $0 $1 $2 $default (local.get 0))))))
+ (return (i32.const 0)))
+ (export "" (func 0))
+)`).exports[""];
+
+f(0);