forked from WebAssembly/binaryen
/
frame-address.c.s
134 lines (128 loc) · 3.85 KB
/
frame-address.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
.text
.file "/usr/local/google/home/dschuff/s/wasm-waterfall/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/frame-address.c"
.section .text.check_fa_work,"ax",@progbits
.hidden check_fa_work
.globl check_fa_work
.type check_fa_work,@function
check_fa_work: # @check_fa_work
.param i32, i32
.result i32
.local i32
# BB#0: # %entry
i32.const $push8=, 0
i32.load $push9=, __stack_pointer($pop8)
i32.const $push10=, 16
i32.sub $push18=, $pop9, $pop10
tee_local $push17=, $2=, $pop18
i32.const $push0=, 0
i32.store8 15($pop17), $pop0
block
i32.const $push11=, 15
i32.add $push12=, $2, $pop11
i32.le_u $push1=, $pop12, $0
br_if 0, $pop1 # 0: down to label0
# BB#1: # %if.else
i32.le_u $push4=, $0, $1
i32.const $push13=, 15
i32.add $push14=, $2, $pop13
i32.ge_u $push5=, $pop14, $1
i32.and $push6=, $pop4, $pop5
return $pop6
.LBB0_2: # %if.then
end_block # label0:
i32.ge_u $push2=, $0, $1
i32.const $push15=, 15
i32.add $push16=, $2, $pop15
i32.le_u $push3=, $pop16, $1
i32.and $push7=, $pop2, $pop3
# fallthrough-return: $pop7
.endfunc
.Lfunc_end0:
.size check_fa_work, .Lfunc_end0-check_fa_work
.section .text.check_fa_mid,"ax",@progbits
.hidden check_fa_mid
.globl check_fa_mid
.type check_fa_mid,@function
check_fa_mid: # @check_fa_mid
.param i32
.result i32
.local i32
# BB#0: # %entry
i32.const $push2=, 0
i32.load $push4=, __stack_pointer($pop2)
copy_local $push6=, $pop4
tee_local $push5=, $1=, $pop6
i32.call $0=, check_fa_work@FUNCTION, $0, $pop5
i32.const $push3=, 0
i32.store __stack_pointer($pop3), $1
i32.const $push0=, 0
i32.ne $push1=, $0, $pop0
# fallthrough-return: $pop1
.endfunc
.Lfunc_end1:
.size check_fa_mid, .Lfunc_end1-check_fa_mid
.section .text.check_fa,"ax",@progbits
.hidden check_fa
.globl check_fa
.type check_fa,@function
check_fa: # @check_fa
.param i32
.result i32
.local i32, i32
# BB#0: # %entry
i32.const $push5=, 0
i32.const $push2=, 0
i32.load $push3=, __stack_pointer($pop2)
i32.const $push4=, 16
i32.sub $push12=, $pop3, $pop4
tee_local $push11=, $2=, $pop12
i32.store __stack_pointer($pop5), $pop11
i32.const $push9=, 15
i32.add $push10=, $2, $pop9
i32.call $1=, check_fa_mid@FUNCTION, $pop10
i32.const $push8=, 0
i32.const $push6=, 16
i32.add $push7=, $2, $pop6
i32.store __stack_pointer($pop8), $pop7
i32.const $push0=, 0
i32.ne $push1=, $1, $pop0
# fallthrough-return: $pop1
.endfunc
.Lfunc_end2:
.size check_fa, .Lfunc_end2-check_fa
.section .text.how_much,"ax",@progbits
.hidden how_much
.globl how_much
.type how_much,@function
how_much: # @how_much
.result i32
# BB#0: # %entry
i32.const $push0=, 8
# fallthrough-return: $pop0
.endfunc
.Lfunc_end3:
.size how_much, .Lfunc_end3-how_much
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
.local i32
# BB#0: # %entry
block
i32.call $push0=, check_fa@FUNCTION, $0
i32.eqz $push2=, $pop0
br_if 0, $pop2 # 0: down to label1
# BB#1: # %if.end
i32.const $push1=, 0
return $pop1
.LBB4_2: # %if.then
end_block # label1:
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end4:
.size main, .Lfunc_end4-main
.ident "clang version 4.0.0 (trunk 283460) (llvm/trunk 283507)"
.functype abort, void