summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/bug1747870.js
blob: 2625e965fbf1585175181df541316f725762155d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// |jit-test| skip-if: !wasmSimdEnabled()

// This should not release-assert, which it could previously do on some 32-bit
// platforms due to the too-limited size of a bitfield.

const MaxParams = 1000;         // Per spec

var params = '';
for ( var i=0 ; i < MaxParams-1; i++ ) {
    params += '(param v128) '
}
params += '(param externref)'

new WebAssembly.Module(wasmTextToBinary(`
(module
  (func $f)
  (func ${params} (result externref)
    (call $f)
    (local.get ${MaxParams-1})))`));