summaryrefslogtreecommitdiff
path: root/test/passes/ssa_fuzz-exec_enable-threads.wast
blob: 7dd2fcc7374e71b018308f403ebab6cdc8190c9b (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
(module
 (type $0 (func (result i32)))
 (type $1 (func))
 (table 0 0 funcref)
 (memory $0 1 1 shared)
 (export "func_0" (func $0))
 (func $0 (; 0 ;) (type $0) (result i32)
  (local $var$0 i32)
  (local $var$1 i32)
  (local $var$2 i32)
  (local $var$3 f64)
  (block $label$1 (result i32)
   (if (result i32)
    (i32.const 0)
    (then
     (unreachable)
    )
    (else
     (block $label$4 (result i32)
      (loop $label$5
       (block $label$6
        (block $label$7
         (local.set $var$0
          (if (result i32)
           (local.get $var$2)
           (then
            (select
             (loop $label$9 (result i32)
              (if (result i32)
               (local.tee $var$2
                (i32.const 16384)
               )
               (then
                (i32.const 1)
               )
               (else
                (i32.const 0)
               )
              )
             )
             (br_if $label$4
              (i32.const 0)
              (local.tee $var$1
               (local.tee $var$2
                (block $label$12 (result i32)
                 (br_if $label$5
                  (br $label$6)
                 )
                 (unreachable)
                )
               )
              )
             )
             (i32.const 1)
            )
           )
           (else
            (block (result i32)
             (loop $label$15
              (if
               (i32.const 0)
               (then
                (return
                 (local.get $var$2)
                )
               )
              )
              (if
               (local.tee $var$1
                (local.tee $var$2
                 (i32.const 0)
                )
               )
               (then
                (block
                 (br_if $label$15
                  (i32.const 0)
                 )
                )
               )
              )
              (br_if $label$15
               (i32.eqz
                (local.tee $var$2
                 (i32.const 129)
                )
               )
              )
             )
             (i32.const -5742806)
            )
           )
          )
         )
        )
        (br_if $label$6
         (if (result i32)
          (local.get $var$1)
          (then
           (unreachable)
          )
          (else
           (block $label$25 (result i32)
            (local.set $var$3
             (block $label$26 (result f64)
              (drop
               (br_if $label$4
                (br_if $label$25
                 (br $label$5)
                 (i32.const 0)
                )
                (i32.const 0)
               )
              )
              (f64.const 1)
             )
            )
            (i32.const 0)
           )
          )
         )
        )
       )
      )
      (local.get $var$2)
     )
    )
   )
  )
 )
)