forked from WebAssembly/binaryen
/
pr43385.c.s
151 lines (146 loc) · 4.57 KB
/
pr43385.c.s
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
.text
.file "/usr/local/google/home/dschuff/s/wasm-waterfall/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr43385.c"
.section .text.foo,"ax",@progbits
.hidden foo
.globl foo
.type foo,@function
foo: # @foo
.param i32, i32
# BB#0: # %entry
block
i32.eqz $push5=, $0
br_if 0, $pop5 # 0: down to label0
# BB#1: # %entry
i32.eqz $push6=, $1
br_if 0, $pop6 # 0: down to label0
# BB#2: # %if.then
i32.const $push0=, 0
i32.const $push4=, 0
i32.load $push1=, e($pop4)
i32.const $push2=, 1
i32.add $push3=, $pop1, $pop2
i32.store e($pop0), $pop3
.LBB0_3: # %if.end
end_block # label0:
# fallthrough-return
.endfunc
.Lfunc_end0:
.size foo, .Lfunc_end0-foo
.section .text.bar,"ax",@progbits
.hidden bar
.globl bar
.type bar,@function
bar: # @bar
.param i32, i32
.result i32
# BB#0: # %entry
i32.const $push0=, 0
i32.ne $push2=, $0, $pop0
i32.const $push4=, 0
i32.ne $push1=, $1, $pop4
i32.and $push3=, $pop2, $pop1
# fallthrough-return: $pop3
.endfunc
.Lfunc_end1:
.size bar, .Lfunc_end1-bar
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
.local i32, i32, i32
# BB#0: # %entry
i32.const $0=, 0
#APP
#NO_APP
i32.const $push0=, 2
i32.add $push30=, $0, $pop0
tee_local $push29=, $1=, $pop30
i32.const $push28=, 1
i32.add $push27=, $0, $pop28
tee_local $push26=, $2=, $pop27
call foo@FUNCTION, $pop29, $pop26
block
i32.const $push25=, 0
i32.load $push1=, e($pop25)
i32.const $push24=, 1
i32.ne $push2=, $pop1, $pop24
br_if 0, $pop2 # 0: down to label1
# BB#1: # %if.end
call foo@FUNCTION, $1, $0
i32.const $push32=, 0
i32.load $push3=, e($pop32)
i32.const $push31=, 1
i32.ne $push4=, $pop3, $pop31
br_if 0, $pop4 # 0: down to label1
# BB#2: # %if.end5
call foo@FUNCTION, $2, $2
i32.const $push34=, 0
i32.load $push5=, e($pop34)
i32.const $push33=, 2
i32.ne $push6=, $pop5, $pop33
br_if 0, $pop6 # 0: down to label1
# BB#3: # %if.end10
call foo@FUNCTION, $2, $0
i32.const $push36=, 0
i32.load $push7=, e($pop36)
i32.const $push35=, 2
i32.ne $push8=, $pop7, $pop35
br_if 0, $pop8 # 0: down to label1
# BB#4: # %if.end14
call foo@FUNCTION, $0, $2
i32.const $push38=, 0
i32.load $push9=, e($pop38)
i32.const $push37=, 2
i32.ne $push10=, $pop9, $pop37
br_if 0, $pop10 # 0: down to label1
# BB#5: # %if.end18
call foo@FUNCTION, $0, $0
i32.const $push40=, 0
i32.load $push11=, e($pop40)
i32.const $push39=, 2
i32.ne $push12=, $pop11, $pop39
br_if 0, $pop12 # 0: down to label1
# BB#6: # %if.end21
i32.call $push13=, bar@FUNCTION, $1, $2
i32.const $push14=, 1
i32.ne $push15=, $pop13, $pop14
br_if 0, $pop15 # 0: down to label1
# BB#7: # %if.end26
i32.call $push16=, bar@FUNCTION, $1, $0
br_if 0, $pop16 # 0: down to label1
# BB#8: # %if.end31
i32.call $push17=, bar@FUNCTION, $2, $2
i32.const $push18=, 1
i32.ne $push19=, $pop17, $pop18
br_if 0, $pop19 # 0: down to label1
# BB#9: # %if.end37
i32.call $push20=, bar@FUNCTION, $2, $0
br_if 0, $pop20 # 0: down to label1
# BB#10: # %if.end42
i32.call $push21=, bar@FUNCTION, $0, $2
br_if 0, $pop21 # 0: down to label1
# BB#11: # %if.end47
i32.call $push22=, bar@FUNCTION, $0, $0
br_if 0, $pop22 # 0: down to label1
# BB#12: # %if.end51
i32.const $push23=, 0
return $pop23
.LBB2_13: # %if.then50
end_block # label1:
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end2:
.size main, .Lfunc_end2-main
.hidden e # @e
.type e,@object
.section .bss.e,"aw",@nobits
.globl e
.p2align 2
e:
.int32 0 # 0x0
.size e, 4
.ident "clang version 4.0.0 (trunk 283460) (llvm/trunk 283507)"
.functype abort, void