summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Generic/2006-06-28-SimplifySetCCCrash.ll
blob: bdd9787c6ab30dcaff3dc81cc56def31e2cb4045 (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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
; RUN: llc < %s	
%struct.rtunion = type { i64 }
	%struct.rtx_def = type { i16, i8, i8, [1 x %struct.rtunion] }
@ix86_cpu = external global i32		; <i32*> [#uses=1]
@which_alternative = external global i32		; <i32*> [#uses=3]

declare fastcc i32 @recog()

define void @athlon_fp_unit_ready_cost() {
entry:
	%tmp = icmp slt i32 0, 0		; <i1> [#uses=1]
	br i1 %tmp, label %cond_true.i, label %cond_true

cond_true:		; preds = %entry
	ret void

cond_true.i:		; preds = %entry
	%tmp8.i = tail call fastcc i32 @recog( )		; <i32> [#uses=1]
	switch i32 %tmp8.i, label %UnifiedReturnBlock [
		 i32 -1, label %bb2063
		 i32 19, label %bb2035
		 i32 20, label %bb2035
		 i32 21, label %bb2035
		 i32 23, label %bb2035
		 i32 24, label %bb2035
		 i32 27, label %bb2035
		 i32 32, label %bb2035
		 i32 33, label %bb1994
		 i32 35, label %bb2035
		 i32 36, label %bb1994
		 i32 90, label %bb1948
		 i32 94, label %bb1948
		 i32 95, label %bb1948
		 i32 101, label %bb1648
		 i32 102, label %bb1648
		 i32 103, label %bb1648
		 i32 104, label %bb1648
		 i32 133, label %bb1419
		 i32 135, label %bb1238
		 i32 136, label %bb1238
		 i32 137, label %bb1238
		 i32 138, label %bb1238
		 i32 139, label %bb1201
		 i32 140, label %bb1201
		 i32 141, label %bb1154
		 i32 142, label %bb1126
		 i32 144, label %bb1201
		 i32 145, label %bb1126
		 i32 146, label %bb1201
		 i32 147, label %bb1126
		 i32 148, label %bb1201
		 i32 149, label %bb1126
		 i32 150, label %bb1201
		 i32 151, label %bb1126
		 i32 152, label %bb1096
		 i32 153, label %bb1096
		 i32 154, label %bb1096
		 i32 157, label %bb1096
		 i32 158, label %bb1096
		 i32 159, label %bb1096
		 i32 162, label %bb1096
		 i32 163, label %bb1096
		 i32 164, label %bb1096
		 i32 167, label %bb1201
		 i32 168, label %bb1201
		 i32 170, label %bb1201
		 i32 171, label %bb1201
		 i32 173, label %bb1201
		 i32 174, label %bb1201
		 i32 176, label %bb1201
		 i32 177, label %bb1201
		 i32 179, label %bb993
		 i32 180, label %bb993
		 i32 181, label %bb993
		 i32 182, label %bb993
		 i32 183, label %bb993
		 i32 184, label %bb993
		 i32 365, label %bb1126
		 i32 366, label %bb1126
		 i32 367, label %bb1126
		 i32 368, label %bb1126
		 i32 369, label %bb1126
		 i32 370, label %bb1126
		 i32 371, label %bb1126
		 i32 372, label %bb1126
		 i32 373, label %bb1126
		 i32 384, label %bb1126
		 i32 385, label %bb1126
		 i32 386, label %bb1126
		 i32 387, label %bb1126
		 i32 388, label %bb1126
		 i32 389, label %bb1126
		 i32 390, label %bb1126
		 i32 391, label %bb1126
		 i32 392, label %bb1126
		 i32 525, label %bb919
		 i32 526, label %bb839
		 i32 528, label %bb919
		 i32 529, label %bb839
		 i32 531, label %cond_next6.i119
		 i32 532, label %cond_next6.i97
		 i32 533, label %cond_next6.i81
		 i32 534, label %bb495
		 i32 536, label %cond_next6.i81
		 i32 537, label %cond_next6.i81
		 i32 538, label %bb396
		 i32 539, label %bb288
		 i32 541, label %bb396
		 i32 542, label %bb396
		 i32 543, label %bb396
		 i32 544, label %bb396
		 i32 545, label %bb189
		 i32 546, label %cond_next6.i
		 i32 547, label %bb189
		 i32 548, label %cond_next6.i
		 i32 549, label %bb189
		 i32 550, label %cond_next6.i
		 i32 551, label %bb189
		 i32 552, label %cond_next6.i
		 i32 553, label %bb189
		 i32 554, label %cond_next6.i
		 i32 555, label %bb189
		 i32 556, label %cond_next6.i
		 i32 557, label %bb189
		 i32 558, label %cond_next6.i
		 i32 618, label %bb40
		 i32 619, label %bb18
		 i32 620, label %bb40
		 i32 621, label %bb10
		 i32 622, label %bb10
	]

bb10:		; preds = %cond_true.i, %cond_true.i
	ret void

bb18:		; preds = %cond_true.i
	ret void

bb40:		; preds = %cond_true.i, %cond_true.i
	ret void

cond_next6.i:		; preds = %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i
	ret void

bb189:		; preds = %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i
	ret void

bb288:		; preds = %cond_true.i
	ret void

bb396:		; preds = %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i
	ret void

bb495:		; preds = %cond_true.i
	ret void

cond_next6.i81:		; preds = %cond_true.i, %cond_true.i, %cond_true.i
	ret void

cond_next6.i97:		; preds = %cond_true.i
	ret void

cond_next6.i119:		; preds = %cond_true.i
	%tmp.i126 = icmp eq i16 0, 78		; <i1> [#uses=1]
	br i1 %tmp.i126, label %cond_next778, label %bb802

cond_next778:		; preds = %cond_next6.i119
	%tmp781 = icmp eq i32 0, 1		; <i1> [#uses=1]
	br i1 %tmp781, label %cond_next784, label %bb790

cond_next784:		; preds = %cond_next778
	%tmp785 = load i32, i32* @ix86_cpu		; <i32> [#uses=1]
	%tmp786 = icmp eq i32 %tmp785, 5		; <i1> [#uses=1]
	br i1 %tmp786, label %UnifiedReturnBlock, label %bb790

bb790:		; preds = %cond_next784, %cond_next778
	%tmp793 = icmp eq i32 0, 1		; <i1> [#uses=0]
	ret void

bb802:		; preds = %cond_next6.i119
	ret void

bb839:		; preds = %cond_true.i, %cond_true.i
	ret void

bb919:		; preds = %cond_true.i, %cond_true.i
	ret void

bb993:		; preds = %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i
	ret void

bb1096:		; preds = %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i
	ret void

bb1126:		; preds = %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i
	ret void

bb1154:		; preds = %cond_true.i
	ret void

bb1201:		; preds = %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i
	ret void

bb1238:		; preds = %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i
	ret void

bb1419:		; preds = %cond_true.i
	ret void

bb1648:		; preds = %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i
	%tmp1650 = load i32, i32* @which_alternative		; <i32> [#uses=1]
	switch i32 %tmp1650, label %bb1701 [
		 i32 0, label %cond_next1675
		 i32 1, label %cond_next1675
		 i32 2, label %cond_next1675
	]

cond_next1675:		; preds = %bb1648, %bb1648, %bb1648
	ret void

bb1701:		; preds = %bb1648
	%tmp1702 = load i32, i32* @which_alternative		; <i32> [#uses=1]
	switch i32 %tmp1702, label %bb1808 [
		 i32 0, label %cond_next1727
		 i32 1, label %cond_next1727
		 i32 2, label %cond_next1727
	]

cond_next1727:		; preds = %bb1701, %bb1701, %bb1701
	ret void

bb1808:		; preds = %bb1701
	%bothcond696 = or i1 false, false		; <i1> [#uses=1]
	br i1 %bothcond696, label %bb1876, label %cond_next1834

cond_next1834:		; preds = %bb1808
	ret void

bb1876:		; preds = %bb1808
	%tmp1877signed = load i32, i32* @which_alternative		; <i32> [#uses=4]
	%tmp1877 = bitcast i32 %tmp1877signed to i32		; <i32> [#uses=1]
	%bothcond699 = icmp ult i32 %tmp1877, 2		; <i1> [#uses=1]
	%tmp1888 = icmp eq i32 %tmp1877signed, 2		; <i1> [#uses=1]
	%bothcond700 = or i1 %bothcond699, %tmp1888		; <i1> [#uses=1]
	%bothcond700.not = xor i1 %bothcond700, true		; <i1> [#uses=1]
	%tmp1894 = icmp eq i32 %tmp1877signed, 3		; <i1> [#uses=1]
	%bothcond701 = or i1 %tmp1894, %bothcond700.not		; <i1> [#uses=1]
	%bothcond702 = or i1 %bothcond701, false		; <i1> [#uses=1]
	br i1 %bothcond702, label %UnifiedReturnBlock, label %cond_next1902

cond_next1902:		; preds = %bb1876
	switch i32 %tmp1877signed, label %cond_next1937 [
		 i32 0, label %bb1918
		 i32 1, label %bb1918
		 i32 2, label %bb1918
	]

bb1918:		; preds = %cond_next1902, %cond_next1902, %cond_next1902
	ret void

cond_next1937:		; preds = %cond_next1902
	ret void

bb1948:		; preds = %cond_true.i, %cond_true.i, %cond_true.i
	ret void

bb1994:		; preds = %cond_true.i, %cond_true.i
	ret void

bb2035:		; preds = %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i, %cond_true.i
	ret void

bb2063:		; preds = %cond_true.i
	ret void

UnifiedReturnBlock:		; preds = %bb1876, %cond_next784, %cond_true.i
	%UnifiedRetVal = phi i32 [ 100, %bb1876 ], [ 100, %cond_true.i ], [ 4, %cond_next784 ]		; <i32> [#uses=0]
	ret void
}