summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/imul64-ion-negative-power-of-two.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/wasm/regress/imul64-ion-negative-power-of-two.js')
-rw-r--r--js/src/jit-test/tests/wasm/regress/imul64-ion-negative-power-of-two.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/wasm/regress/imul64-ion-negative-power-of-two.js b/js/src/jit-test/tests/wasm/regress/imul64-ion-negative-power-of-two.js
new file mode 100644
index 0000000000..0fe59546d7
--- /dev/null
+++ b/js/src/jit-test/tests/wasm/regress/imul64-ion-negative-power-of-two.js
@@ -0,0 +1,11 @@
+new WebAssembly.Instance(new WebAssembly.Module(wasmTextToBinary(`
+(module
+ (func (param i64))
+ (func (export "f")
+ i64.const 2
+ i64.const -9223372036854775808
+ i64.mul
+ call 0
+ )
+)
+`))).exports.f();