summaryrefslogtreecommitdiff
path: root/test/passes/reorder-locals.wast
blob: 872d352ee19f3f01ca4ee77fce7530b538ee7d99 (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
(module
  (memory 256 256)
  (type $0 (func (param i32 i32)))
  (type $1 (func))
  (func $b0-yes (type $0) (param $a i32) (param $b i32)
    (local $x i32)
    (local $y i32)
    (local $z i32)
    (set_local $x
      (get_local $x)
    )
    (set_local $y
      (get_local $y)
    )
    (set_local $y
      (get_local $y)
    )
    (set_local $z
      (get_local $z)
    )
    (set_local $z
      (get_local $z)
    )
    (set_local $z
      (get_local $z)
    )
    (set_local $b
      (get_local $b)
    )
    (set_local $b
      (get_local $b)
    )
    (set_local $b
      (get_local $b)
    )
    (set_local $b
      (get_local $b)
    )
    (set_local $b
      (get_local $b)
    )
    (set_local $b
      (get_local $b)
    )
  )
  (func $zero (type $1)
    (local $a i32)
    (local $b i32)
    (local $c i32)
    (drop
      (get_local $b)
    )
  )
  (func $null (type $1)
    (local $a i32)
    (local $c i32)
    (nop)
  )
)