summaryrefslogtreecommitdiff
path: root/test/torture-s/20050218-1.c.s
blob: 3a9e8f92ddfb2c4a1ed68e6021fa4cdd2944261a (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
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
152
153
154
155
156
157
158
159
160
161
162
163
164
	.text
	.file	"/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/20050218-1.c"
	.section	.text.foo,"ax",@progbits
	.hidden	foo
	.globl	foo
	.type	foo,@function
foo:                                    # @foo
	.param  	i32, i32, i32
	.result 	i32
	.local  	i32, i32, i32, i32, i32
# BB#0:                                 # %entry
	i32.const	$7=, 0
	block
	i32.eqz 	$push12=, $2
	br_if   	0, $pop12       # 0: down to label0
# BB#1:                                 # %for.body.lr.ph
	i32.const	$5=, 0
	i32.const	$4=, a
	i32.const	$6=, 0
.LBB0_2:                                # %for.body
                                        # =>This Inner Loop Header: Depth=1
	loop                            # label1:
	i32.const	$7=, 2
	i32.add 	$push0=, $0, $5
	i32.load	$push7=, 0($4)
	tee_local	$push6=, $3=, $pop7
	i32.call	$push5=, strlen@FUNCTION, $3
	tee_local	$push4=, $3=, $pop5
	i32.call	$push1=, strncmp@FUNCTION, $pop0, $pop6, $pop4
	br_if   	1, $pop1        # 1: down to label2
# BB#3:                                 # %if.end
                                        #   in Loop: Header=BB0_2 Depth=1
	i32.add 	$5=, $3, $5
	block
	i32.eqz 	$push13=, $1
	br_if   	0, $pop13       # 0: down to label3
# BB#4:                                 # %if.then6
                                        #   in Loop: Header=BB0_2 Depth=1
	i32.call	$push2=, strlen@FUNCTION, $1
	i32.add 	$5=, $pop2, $5
.LBB0_5:                                # %for.inc
                                        #   in Loop: Header=BB0_2 Depth=1
	end_block                       # label3:
	i32.const	$push11=, 4
	i32.add 	$4=, $4, $pop11
	i32.const	$7=, 0
	i32.const	$push10=, 1
	i32.add 	$push9=, $6, $pop10
	tee_local	$push8=, $6=, $pop9
	i32.lt_u	$push3=, $pop8, $2
	br_if   	0, $pop3        # 0: up to label1
.LBB0_6:                                # %cleanup
	end_loop                        # label2:
	end_block                       # label0:
	copy_local	$push14=, $7
                                        # fallthrough-return: $pop14
	.endfunc
.Lfunc_end0:
	.size	foo, .Lfunc_end0-foo

	.section	.text.main,"ax",@progbits
	.hidden	main
	.globl	main
	.type	main,@function
main:                                   # @main
	.result 	i32
	.local  	i32, i32
# BB#0:                                 # %entry
	block
	i32.const	$push13=, .L.str.4
	i32.const	$push12=, 0
	i32.load	$push11=, a($pop12)
	tee_local	$push10=, $0=, $pop11
	i32.call	$push9=, strlen@FUNCTION, $0
	tee_local	$push8=, $0=, $pop9
	i32.call	$push0=, strncmp@FUNCTION, $pop13, $pop10, $pop8
	br_if   	0, $pop0        # 0: down to label4
# BB#1:                                 # %if.end.i
	i32.const	$push19=, .L.str.4
	i32.add 	$push1=, $0, $pop19
	i32.const	$push18=, 0
	i32.load	$push17=, a+4($pop18)
	tee_local	$push16=, $1=, $pop17
	i32.call	$push15=, strlen@FUNCTION, $1
	tee_local	$push14=, $1=, $pop15
	i32.call	$push2=, strncmp@FUNCTION, $pop1, $pop16, $pop14
	br_if   	0, $pop2        # 0: down to label4
# BB#2:                                 # %if.end.i.1
	i32.add 	$push3=, $1, $0
	i32.const	$push4=, .L.str.4
	i32.add 	$push5=, $pop3, $pop4
	i32.const	$push22=, 0
	i32.load	$push21=, a+8($pop22)
	tee_local	$push20=, $0=, $pop21
	i32.call	$push6=, strlen@FUNCTION, $0
	i32.call	$push7=, strncmp@FUNCTION, $pop5, $pop20, $pop6
	br_if   	0, $pop7        # 0: down to label4
# BB#3:                                 # %if.end.i.2
	i32.const	$push23=, 0
	return  	$pop23
.LBB1_4:                                # %if.then
	end_block                       # label4:
	call    	abort@FUNCTION
	unreachable
	.endfunc
.Lfunc_end1:
	.size	main, .Lfunc_end1-main

	.type	.L.str,@object          # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"a"
	.size	.L.str, 2

	.type	.L.str.1,@object        # @.str.1
.L.str.1:
	.asciz	"bc"
	.size	.L.str.1, 3

	.type	.L.str.2,@object        # @.str.2
.L.str.2:
	.asciz	"de"
	.size	.L.str.2, 3

	.type	.L.str.3,@object        # @.str.3
.L.str.3:
	.asciz	"fgh"
	.size	.L.str.3, 4

	.hidden	a                       # @a
	.type	a,@object
	.section	.data.a,"aw",@progbits
	.globl	a
	.p2align	4
a:
	.int32	.L.str
	.int32	.L.str.1
	.int32	.L.str.2
	.int32	.L.str.3
	.int32	0
	.int32	0
	.int32	0
	.int32	0
	.int32	0
	.int32	0
	.int32	0
	.int32	0
	.int32	0
	.int32	0
	.int32	0
	.int32	0
	.size	a, 64

	.type	.L.str.4,@object        # @.str.4
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.4:
	.asciz	"abcde"
	.size	.L.str.4, 6


	.ident	"clang version 4.0.0 "
	.functype	strncmp, i32, i32, i32, i32
	.functype	strlen, i32, i32
	.functype	abort, void