forked from WebAssembly/binaryen
/
pr20527-1.c.s
118 lines (114 loc) · 3.38 KB
/
pr20527-1.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
.text
.file "/usr/local/google/home/dschuff/s/wasm-waterfall/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr20527-1.c"
.section .text.f,"ax",@progbits
.hidden f
.globl f
.type f,@function
f: # @f
.param i32, i32, i32, i32
.local i32
# BB#0: # %entry
block
i32.gt_s $push0=, $2, $3
br_if 0, $pop0 # 0: down to label0
# BB#1: # %for.body.preheader
i32.const $push12=, -1
i32.add $4=, $2, $pop12
i32.const $push1=, 2
i32.shl $push11=, $2, $pop1
tee_local $push10=, $2=, $pop11
i32.add $0=, $0, $pop10
i32.add $push2=, $1, $2
i32.const $push9=, 4
i32.add $2=, $pop2, $pop9
i32.const $1=, 0
.LBB0_2: # %for.body
# =>This Inner Loop Header: Depth=1
loop # label1:
i32.load $push5=, 0($2)
i32.const $push21=, -4
i32.add $push3=, $2, $pop21
i32.load $push4=, 0($pop3)
i32.sub $push6=, $pop5, $pop4
i32.add $push20=, $pop6, $1
tee_local $push19=, $1=, $pop20
i32.const $push18=, -1
i32.add $push7=, $pop19, $pop18
i32.store 0($0), $pop7
i32.const $push17=, 4
i32.add $0=, $0, $pop17
i32.const $push16=, 4
i32.add $2=, $2, $pop16
i32.const $push15=, 1
i32.add $push14=, $4, $pop15
tee_local $push13=, $4=, $pop14
i32.lt_s $push8=, $pop13, $3
br_if 0, $pop8 # 0: up to label1
.LBB0_3: # %for.end
end_loop
end_block # label0:
# fallthrough-return
.endfunc
.Lfunc_end0:
.size f, .Lfunc_end0-f
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
.local i32
# BB#0: # %entry
i32.const $push16=, 0
i32.const $push13=, 0
i32.load $push14=, __stack_pointer($pop13)
i32.const $push15=, 16
i32.sub $push20=, $pop14, $pop15
tee_local $push19=, $0=, $pop20
i32.store __stack_pointer($pop16), $pop19
i32.const $push17=, 4
i32.add $push18=, $0, $pop17
i32.const $push2=, b
i32.const $push1=, 0
i32.const $push0=, 2
call f@FUNCTION, $pop18, $pop2, $pop1, $pop0
block
i32.load $push4=, 4($0)
i32.const $push3=, 3
i32.ne $push5=, $pop4, $pop3
br_if 0, $pop5 # 0: down to label2
# BB#1: # %lor.lhs.false
i32.load $push7=, 8($0)
i32.const $push6=, 9
i32.ne $push8=, $pop7, $pop6
br_if 0, $pop8 # 0: down to label2
# BB#2: # %lor.lhs.false3
i32.load $push10=, 12($0)
i32.const $push9=, 21
i32.ne $push11=, $pop10, $pop9
br_if 0, $pop11 # 0: down to label2
# BB#3: # %if.end
i32.const $push12=, 0
call exit@FUNCTION, $pop12
unreachable
.LBB1_4: # %if.then
end_block # label2:
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main
.hidden b # @b
.type b,@object
.section .data.b,"aw",@progbits
.globl b
.p2align 4
b:
.int32 1 # 0x1
.int32 5 # 0x5
.int32 11 # 0xb
.int32 23 # 0x17
.size b, 16
.ident "clang version 4.0.0 (trunk 283460) (llvm/trunk 283507)"
.functype abort, void
.functype exit, void, i32