forked from WebAssembly/binaryen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode-folding.wast
More file actions
56 lines (55 loc) · 953 Bytes
/
Copy pathcode-folding.wast
File metadata and controls
56 lines (55 loc) · 953 Bytes
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
(module
(type $13 (func (param f32)))
(table 282 282 anyfunc)
(memory $0 1 1)
(func $0
(block $label$1
(if
(i32.const 1)
(block $label$3
(call_indirect $13
(block $label$4 (result f32) ;; but this type may change dangerously
(nop) ;; fold this
(br $label$3)
)
(i32.const 105)
)
(nop) ;; with this
)
)
)
)
(func $negative-zero (result f32)
(if (result f32)
(i32.const 0)
(block $label$0 (result f32)
(f32.const 0)
)
(block $label$1 (result f32)
(f32.const -0)
)
)
)
(func $negative-zero-b (result f32)
(if (result f32)
(i32.const 0)
(block $label$0 (result f32)
(f32.const -0)
)
(block $label$1 (result f32)
(f32.const -0)
)
)
)
(func $negative-zero-c (result f32)
(if (result f32)
(i32.const 0)
(block $label$0 (result f32)
(f32.const 0)
)
(block $label$1 (result f32)
(f32.const 0)
)
)
)
)