diff options
Diffstat (limited to 'js/src/jit-test/tests/wasm/directiveless/bug1666051.js')
-rw-r--r-- | js/src/jit-test/tests/wasm/directiveless/bug1666051.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/wasm/directiveless/bug1666051.js b/js/src/jit-test/tests/wasm/directiveless/bug1666051.js new file mode 100644 index 0000000000..6b94ef921e --- /dev/null +++ b/js/src/jit-test/tests/wasm/directiveless/bug1666051.js @@ -0,0 +1,12 @@ +// |jit-test| --fuzzing-safe; --no-threads; --no-baseline; --no-ion; skip-if: !wasmIsSupported() + +(function (stdlib) { + "use asm"; + var sqrt = stdlib.Math.sqrt; + function f(i0) { + i0 = i0 | 0; + i0 = ~~sqrt(-.5); + return (1 / (1 >> (.0 == .0)) & i0 >> 1); + } + return f; +})(this)(); |