summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/baseline-many-results.js
blob: ff4d9c35dd0bd43ef89167d8c84234859610e5cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// This provokes a crash in baseline if its Stk reservation logic is not up to
// snuff, bug 1675844.

var txt = `
(module
  (type (;0;) (func (result f32 f32 i32)))
  (func $main (type 0) (result f32 f32 i32)
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    memory.size
    call $main
    call $main
    call $main
    call_indirect (type 0)
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    memory.size
    call $main
    call $main
    call $main
    call_indirect (type 0)
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    call $main
    memory.size)
  (table (;0;) 62 255 funcref)
  (memory (;0;) 15 18)
  (export "t1" (table 0))
  (export "memory" (memory 0)))`;
assertErrorMessage(() => new WebAssembly.Module(wasmTextToBinary(txt)),
                   WebAssembly.CompileError,
                   /(unused values not explicitly dropped)|(expected f32, found i32)/);