3
3
4
4
; (X < C1) ? C1 : MIN(X, C2)
5
5
define float @clamp_float_fast_ordered_strict_maxmin (float %x ) {
6
- ;
7
- ; CHECK-LABEL: @clamp_float_fast_ordered_strict_maxmin(
6
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_fast_ordered_strict_maxmin(
8
7
; CHECK-NEXT: [[CMP2:%.*]] = fcmp fast olt float [[X:%.*]], 2.550000e+02
9
8
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2]], float [[X]], float 2.550000e+02
10
9
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp fast oge float [[MIN]], 1.000000e+00
@@ -20,8 +19,7 @@ define float @clamp_float_fast_ordered_strict_maxmin(float %x) {
20
19
21
20
; (X <= C1) ? C1 : MIN(X, C2)
22
21
define float @clamp_float_fast_ordered_nonstrict_maxmin (float %x ) {
23
- ;
24
- ; CHECK-LABEL: @clamp_float_fast_ordered_nonstrict_maxmin(
22
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_fast_ordered_nonstrict_maxmin(
25
23
; CHECK-NEXT: [[CMP2:%.*]] = fcmp fast olt float [[X:%.*]], 2.550000e+02
26
24
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2]], float [[X]], float 2.550000e+02
27
25
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp fast oge float [[MIN]], 1.000000e+00
@@ -37,8 +35,7 @@ define float @clamp_float_fast_ordered_nonstrict_maxmin(float %x) {
37
35
38
36
; (X > C1) ? C1 : MAX(X, C2)
39
37
define float @clamp_float_fast_ordered_strict_minmax (float %x ) {
40
- ;
41
- ; CHECK-LABEL: @clamp_float_fast_ordered_strict_minmax(
38
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_fast_ordered_strict_minmax(
42
39
; CHECK-NEXT: [[CMP2:%.*]] = fcmp fast ogt float [[X:%.*]], 1.000000e+00
43
40
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2]], float [[X]], float 1.000000e+00
44
41
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp fast ole float [[MAX]], 2.550000e+02
@@ -54,8 +51,7 @@ define float @clamp_float_fast_ordered_strict_minmax(float %x) {
54
51
55
52
; (X >= C1) ? C1 : MAX(X, C2)
56
53
define float @clamp_float_fast_ordered_nonstrict_minmax (float %x ) {
57
- ;
58
- ; CHECK-LABEL: @clamp_float_fast_ordered_nonstrict_minmax(
54
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_fast_ordered_nonstrict_minmax(
59
55
; CHECK-NEXT: [[CMP2:%.*]] = fcmp fast ogt float [[X:%.*]], 1.000000e+00
60
56
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2]], float [[X]], float 1.000000e+00
61
57
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp fast ole float [[MAX]], 2.550000e+02
@@ -74,8 +70,7 @@ define float @clamp_float_fast_ordered_nonstrict_minmax(float %x) {
74
70
75
71
; (X < C1) ? C1 : MIN(X, C2)
76
72
define float @clamp_float_fast_unordered_strict_maxmin (float %x ) {
77
- ;
78
- ; CHECK-LABEL: @clamp_float_fast_unordered_strict_maxmin(
73
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_fast_unordered_strict_maxmin(
79
74
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp fast oge float [[X:%.*]], 2.550000e+02
80
75
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2_INV]], float 2.550000e+02, float [[X]]
81
76
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp fast oge float [[MIN]], 1.000000e+00
@@ -91,8 +86,7 @@ define float @clamp_float_fast_unordered_strict_maxmin(float %x) {
91
86
92
87
; (X <= C1) ? C1 : MIN(X, C2)
93
88
define float @clamp_float_fast_unordered_nonstrict_maxmin (float %x ) {
94
- ;
95
- ; CHECK-LABEL: @clamp_float_fast_unordered_nonstrict_maxmin(
89
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_fast_unordered_nonstrict_maxmin(
96
90
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp fast oge float [[X:%.*]], 2.550000e+02
97
91
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2_INV]], float 2.550000e+02, float [[X]]
98
92
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp fast oge float [[MIN]], 1.000000e+00
@@ -108,8 +102,7 @@ define float @clamp_float_fast_unordered_nonstrict_maxmin(float %x) {
108
102
109
103
; (X > C1) ? C1 : MAX(X, C2)
110
104
define float @clamp_float_fast_unordered_strict_minmax (float %x ) {
111
- ;
112
- ; CHECK-LABEL: @clamp_float_fast_unordered_strict_minmax(
105
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_fast_unordered_strict_minmax(
113
106
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp fast ole float [[X:%.*]], 1.000000e+00
114
107
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2_INV]], float 1.000000e+00, float [[X]]
115
108
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp fast ole float [[MAX]], 2.550000e+02
@@ -125,8 +118,7 @@ define float @clamp_float_fast_unordered_strict_minmax(float %x) {
125
118
126
119
; (X >= C1) ? C1 : MAX(X, C2)
127
120
define float @clamp_float_fast_unordered_nonstrict_minmax (float %x ) {
128
- ;
129
- ; CHECK-LABEL: @clamp_float_fast_unordered_nonstrict_minmax(
121
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_fast_unordered_nonstrict_minmax(
130
122
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp fast ole float [[X:%.*]], 1.000000e+00
131
123
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2_INV]], float 1.000000e+00, float [[X]]
132
124
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp fast ole float [[MAX]], 2.550000e+02
@@ -145,7 +137,7 @@ define float @clamp_float_fast_unordered_nonstrict_minmax(float %x) {
145
137
; (X > 1.0) ? min(x, 255.0) : 1.0
146
138
; That did not match because select was in inverse order.
147
139
define float @clamp_test_1 (float %x ) {
148
- ; CHECK-LABEL: @clamp_test_1(
140
+ ; CHECK-LABEL: define {{[^@]+}} @clamp_test_1(
149
141
; CHECK-NEXT: [[INNER_CMP_INV:%.*]] = fcmp fast oge float [[X:%.*]], 2.550000e+02
150
142
; CHECK-NEXT: [[INNER_SEL:%.*]] = select i1 [[INNER_CMP_INV]], float 2.550000e+02, float [[X]]
151
143
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp fast oge float [[INNER_SEL]], 1.000000e+00
@@ -163,7 +155,7 @@ define float @clamp_test_1(float %x) {
163
155
164
156
; Like @clamp_test_1 but HighConst < LowConst
165
157
define float @clamp_negative_wrong_const (float %x ) {
166
- ; CHECK-LABEL: @clamp_negative_wrong_const(
158
+ ; CHECK-LABEL: define {{[^@]+}} @clamp_negative_wrong_const(
167
159
; CHECK-NEXT: [[INNER_CMP_INV:%.*]] = fcmp fast oge float [[X:%.*]], 2.550000e+02
168
160
; CHECK-NEXT: [[INNER_SEL:%.*]] = select i1 [[INNER_CMP_INV]], float 2.550000e+02, float [[X]]
169
161
; CHECK-NEXT: [[OUTER_CMP:%.*]] = fcmp fast ugt float [[X]], 5.120000e+02
@@ -179,7 +171,7 @@ define float @clamp_negative_wrong_const(float %x) {
179
171
180
172
; Like @clamp_test_1 but both are min
181
173
define float @clamp_negative_same_op (float %x ) {
182
- ; CHECK-LABEL: @clamp_negative_same_op(
174
+ ; CHECK-LABEL: define {{[^@]+}} @clamp_negative_same_op(
183
175
; CHECK-NEXT: [[INNER_CMP_INV:%.*]] = fcmp fast oge float [[X:%.*]], 2.550000e+02
184
176
; CHECK-NEXT: [[INNER_SEL:%.*]] = select i1 [[INNER_CMP_INV]], float 2.550000e+02, float [[X]]
185
177
; CHECK-NEXT: [[OUTER_CMP:%.*]] = fcmp fast ult float [[X]], 1.000000e+00
@@ -198,7 +190,7 @@ define float @clamp_negative_same_op(float %x) {
198
190
199
191
; First, check that we don't do bad things in the presence of signed zeros
200
192
define float @clamp_float_with_zero1 (float %x ) {
201
- ; CHECK-LABEL: @clamp_float_with_zero1(
193
+ ; CHECK-LABEL: define {{[^@]+}} @clamp_float_with_zero1(
202
194
; CHECK-NEXT: [[CMP2:%.*]] = fcmp fast olt float [[X:%.*]], 2.550000e+02
203
195
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2]], float [[X]], float 2.550000e+02
204
196
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ole float [[X]], 0.000000e+00
@@ -213,7 +205,7 @@ define float @clamp_float_with_zero1(float %x) {
213
205
}
214
206
215
207
define float @clamp_float_with_zero2 (float %x ) {
216
- ; CHECK-LABEL: @clamp_float_with_zero2(
208
+ ; CHECK-LABEL: define {{[^@]+}} @clamp_float_with_zero2(
217
209
; CHECK-NEXT: [[CMP2:%.*]] = fcmp fast olt float [[X:%.*]], 2.550000e+02
218
210
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2]], float [[X]], float 2.550000e+02
219
211
; CHECK-NEXT: [[CMP1:%.*]] = fcmp olt float [[X]], 0.000000e+00
@@ -235,8 +227,7 @@ define float @clamp_float_with_zero2(float %x) {
235
227
236
228
; (X < C1) ? C1 : MIN(X, C2)
237
229
define float @clamp_float_ordered_strict_maxmin1 (float %x ) {
238
- ;
239
- ; CHECK-LABEL: @clamp_float_ordered_strict_maxmin1(
230
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_ordered_strict_maxmin1(
240
231
; CHECK-NEXT: [[CMP2:%.*]] = fcmp olt float [[X:%.*]], 2.550000e+02
241
232
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2]], float [[X]], float 2.550000e+02
242
233
; CHECK-NEXT: [[CMP1:%.*]] = fcmp olt float [[X]], 1.000000e+00
@@ -251,8 +242,7 @@ define float @clamp_float_ordered_strict_maxmin1(float %x) {
251
242
}
252
243
253
244
define float @clamp_float_ordered_strict_maxmin2 (float %x ) {
254
- ;
255
- ; CHECK-LABEL: @clamp_float_ordered_strict_maxmin2(
245
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_ordered_strict_maxmin2(
256
246
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp oge float [[X:%.*]], 2.550000e+02
257
247
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2_INV]], float 2.550000e+02, float [[X]]
258
248
; CHECK-NEXT: [[CMP1:%.*]] = fcmp olt float [[X]], 1.000000e+00
@@ -268,8 +258,7 @@ define float @clamp_float_ordered_strict_maxmin2(float %x) {
268
258
269
259
; (X <= C1) ? C1 : MIN(X, C2)
270
260
define float @clamp_float_ordered_nonstrict_maxmin1 (float %x ) {
271
- ;
272
- ; CHECK-LABEL: @clamp_float_ordered_nonstrict_maxmin1(
261
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_ordered_nonstrict_maxmin1(
273
262
; CHECK-NEXT: [[CMP2:%.*]] = fcmp olt float [[X:%.*]], 2.550000e+02
274
263
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2]], float [[X]], float 2.550000e+02
275
264
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ole float [[X]], 1.000000e+00
@@ -284,8 +273,7 @@ define float @clamp_float_ordered_nonstrict_maxmin1(float %x) {
284
273
}
285
274
286
275
define float @clamp_float_ordered_nonstrict_maxmin2 (float %x ) {
287
- ;
288
- ; CHECK-LABEL: @clamp_float_ordered_nonstrict_maxmin2(
276
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_ordered_nonstrict_maxmin2(
289
277
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp oge float [[X:%.*]], 2.550000e+02
290
278
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2_INV]], float 2.550000e+02, float [[X]]
291
279
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ole float [[X]], 1.000000e+00
@@ -301,8 +289,7 @@ define float @clamp_float_ordered_nonstrict_maxmin2(float %x) {
301
289
302
290
; (X > C1) ? C1 : MAX(X, C2)
303
291
define float @clamp_float_ordered_strict_minmax1 (float %x ) {
304
- ;
305
- ; CHECK-LABEL: @clamp_float_ordered_strict_minmax1(
292
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_ordered_strict_minmax1(
306
293
; CHECK-NEXT: [[CMP2:%.*]] = fcmp ogt float [[X:%.*]], 1.000000e+00
307
294
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2]], float [[X]], float 1.000000e+00
308
295
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ogt float [[X]], 2.550000e+02
@@ -317,8 +304,7 @@ define float @clamp_float_ordered_strict_minmax1(float %x) {
317
304
}
318
305
319
306
define float @clamp_float_ordered_strict_minmax2 (float %x ) {
320
- ;
321
- ; CHECK-LABEL: @clamp_float_ordered_strict_minmax2(
307
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_ordered_strict_minmax2(
322
308
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp ole float [[X:%.*]], 1.000000e+00
323
309
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2_INV]], float 1.000000e+00, float [[X]]
324
310
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ogt float [[X]], 2.550000e+02
@@ -334,8 +320,7 @@ define float @clamp_float_ordered_strict_minmax2(float %x) {
334
320
335
321
; (X >= C1) ? C1 : MAX(X, C2)
336
322
define float @clamp_float_ordered_nonstrict_minmax1 (float %x ) {
337
- ;
338
- ; CHECK-LABEL: @clamp_float_ordered_nonstrict_minmax1(
323
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_ordered_nonstrict_minmax1(
339
324
; CHECK-NEXT: [[CMP2:%.*]] = fcmp ogt float [[X:%.*]], 1.000000e+00
340
325
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2]], float [[X]], float 1.000000e+00
341
326
; CHECK-NEXT: [[CMP1:%.*]] = fcmp oge float [[X]], 2.550000e+02
@@ -350,8 +335,7 @@ define float @clamp_float_ordered_nonstrict_minmax1(float %x) {
350
335
}
351
336
352
337
define float @clamp_float_ordered_nonstrict_minmax2 (float %x ) {
353
- ;
354
- ; CHECK-LABEL: @clamp_float_ordered_nonstrict_minmax2(
338
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_ordered_nonstrict_minmax2(
355
339
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp ole float [[X:%.*]], 1.000000e+00
356
340
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2_INV]], float 1.000000e+00, float [[X]]
357
341
; CHECK-NEXT: [[CMP1:%.*]] = fcmp oge float [[X]], 2.550000e+02
@@ -370,8 +354,7 @@ define float @clamp_float_ordered_nonstrict_minmax2(float %x) {
370
354
371
355
; (X < C1) ? C1 : MIN(X, C2)
372
356
define float @clamp_float_unordered_strict_maxmin1 (float %x ) {
373
- ;
374
- ; CHECK-LABEL: @clamp_float_unordered_strict_maxmin1(
357
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_unordered_strict_maxmin1(
375
358
; CHECK-NEXT: [[CMP2:%.*]] = fcmp olt float [[X:%.*]], 2.550000e+02
376
359
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2]], float [[X]], float 2.550000e+02
377
360
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ult float [[X]], 1.000000e+00
@@ -386,8 +369,7 @@ define float @clamp_float_unordered_strict_maxmin1(float %x) {
386
369
}
387
370
388
371
define float @clamp_float_unordered_strict_maxmin2 (float %x ) {
389
- ;
390
- ; CHECK-LABEL: @clamp_float_unordered_strict_maxmin2(
372
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_unordered_strict_maxmin2(
391
373
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp oge float [[X:%.*]], 2.550000e+02
392
374
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2_INV]], float 2.550000e+02, float [[X]]
393
375
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ult float [[X]], 1.000000e+00
@@ -403,8 +385,7 @@ define float @clamp_float_unordered_strict_maxmin2(float %x) {
403
385
404
386
; (X <= C1) ? C1 : MIN(X, C2)
405
387
define float @clamp_float_unordered_nonstrict_maxmin1 (float %x ) {
406
- ;
407
- ; CHECK-LABEL: @clamp_float_unordered_nonstrict_maxmin1(
388
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_unordered_nonstrict_maxmin1(
408
389
; CHECK-NEXT: [[CMP2:%.*]] = fcmp olt float [[X:%.*]], 2.550000e+02
409
390
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2]], float [[X]], float 2.550000e+02
410
391
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ule float [[X]], 1.000000e+00
@@ -419,8 +400,7 @@ define float @clamp_float_unordered_nonstrict_maxmin1(float %x) {
419
400
}
420
401
421
402
define float @clamp_float_unordered_nonstrict_maxmin2 (float %x ) {
422
- ;
423
- ; CHECK-LABEL: @clamp_float_unordered_nonstrict_maxmin2(
403
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_unordered_nonstrict_maxmin2(
424
404
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp oge float [[X:%.*]], 2.550000e+02
425
405
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2_INV]], float 2.550000e+02, float [[X]]
426
406
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ule float [[X]], 1.000000e+00
@@ -436,8 +416,7 @@ define float @clamp_float_unordered_nonstrict_maxmin2(float %x) {
436
416
437
417
; (X > C1) ? C1 : MAX(X, C2)
438
418
define float @clamp_float_unordered_strict_minmax1 (float %x ) {
439
- ;
440
- ; CHECK-LABEL: @clamp_float_unordered_strict_minmax1(
419
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_unordered_strict_minmax1(
441
420
; CHECK-NEXT: [[CMP2:%.*]] = fcmp ogt float [[X:%.*]], 1.000000e+00
442
421
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2]], float [[X]], float 1.000000e+00
443
422
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ugt float [[X]], 2.550000e+02
@@ -452,8 +431,7 @@ define float @clamp_float_unordered_strict_minmax1(float %x) {
452
431
}
453
432
454
433
define float @clamp_float_unordered_strict_minmax2 (float %x ) {
455
- ;
456
- ; CHECK-LABEL: @clamp_float_unordered_strict_minmax2(
434
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_unordered_strict_minmax2(
457
435
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp ole float [[X:%.*]], 1.000000e+00
458
436
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2_INV]], float 1.000000e+00, float [[X]]
459
437
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ugt float [[X]], 2.550000e+02
@@ -469,8 +447,7 @@ define float @clamp_float_unordered_strict_minmax2(float %x) {
469
447
470
448
; (X >= C1) ? C1 : MAX(X, C2)
471
449
define float @clamp_float_unordered_nonstrict_minmax1 (float %x ) {
472
- ;
473
- ; CHECK-LABEL: @clamp_float_unordered_nonstrict_minmax1(
450
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_unordered_nonstrict_minmax1(
474
451
; CHECK-NEXT: [[CMP2:%.*]] = fcmp ogt float [[X:%.*]], 1.000000e+00
475
452
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2]], float [[X]], float 1.000000e+00
476
453
; CHECK-NEXT: [[CMP1:%.*]] = fcmp uge float [[X]], 2.550000e+02
@@ -485,8 +462,7 @@ define float @clamp_float_unordered_nonstrict_minmax1(float %x) {
485
462
}
486
463
487
464
define float @clamp_float_unordered_nonstrict_minmax2 (float %x ) {
488
- ;
489
- ; CHECK-LABEL: @clamp_float_unordered_nonstrict_minmax2(
465
+ ; CHECK-LABEL: define {{[^@]+}}@clamp_float_unordered_nonstrict_minmax2(
490
466
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp ole float [[X:%.*]], 1.000000e+00
491
467
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2_INV]], float 1.000000e+00, float [[X]]
492
468
; CHECK-NEXT: [[CMP1:%.*]] = fcmp uge float [[X]], 2.550000e+02
@@ -502,7 +478,7 @@ define float @clamp_float_unordered_nonstrict_minmax2(float %x) {
502
478
503
479
;; Check casts behavior
504
480
define float @ui32_clamp_and_cast_to_float (i32 %x ) {
505
- ; CHECK-LABEL: @ui32_clamp_and_cast_to_float(
481
+ ; CHECK-LABEL: define {{[^@]+}} @ui32_clamp_and_cast_to_float(
506
482
; CHECK-NEXT: [[LO_CMP:%.*]] = icmp eq i32 [[X:%.*]], 0
507
483
; CHECK-NEXT: [[TMP1:%.*]] = icmp ult i32 [[X]], 255
508
484
; CHECK-NEXT: [[MIN1:%.*]] = select i1 [[TMP1]], i32 [[X]], i32 255
@@ -519,7 +495,7 @@ define float @ui32_clamp_and_cast_to_float(i32 %x) {
519
495
}
520
496
521
497
define float @ui64_clamp_and_cast_to_float (i64 %x ) {
522
- ; CHECK-LABEL: @ui64_clamp_and_cast_to_float(
498
+ ; CHECK-LABEL: define {{[^@]+}} @ui64_clamp_and_cast_to_float(
523
499
; CHECK-NEXT: [[LO_CMP:%.*]] = icmp eq i64 [[X:%.*]], 0
524
500
; CHECK-NEXT: [[TMP1:%.*]] = icmp ult i64 [[X]], 255
525
501
; CHECK-NEXT: [[MIN1:%.*]] = select i1 [[TMP1]], i64 [[X]], i64 255
@@ -536,7 +512,7 @@ define float @ui64_clamp_and_cast_to_float(i64 %x) {
536
512
}
537
513
538
514
define float @mixed_clamp_to_float_1 (i32 %x ) {
539
- ; CHECK-LABEL: @mixed_clamp_to_float_1(
515
+ ; CHECK-LABEL: define {{[^@]+}} @mixed_clamp_to_float_1(
540
516
; CHECK-NEXT: [[TMP1:%.*]] = icmp slt i32 [[X:%.*]], 255
541
517
; CHECK-NEXT: [[SI_MIN:%.*]] = select i1 [[TMP1]], i32 [[X]], i32 255
542
518
; CHECK-NEXT: [[TMP2:%.*]] = icmp sgt i32 [[SI_MIN]], 1
@@ -554,7 +530,7 @@ define float @mixed_clamp_to_float_1(i32 %x) {
554
530
}
555
531
556
532
define i32 @mixed_clamp_to_i32_1 (float %x ) {
557
- ; CHECK-LABEL: @mixed_clamp_to_i32_1(
533
+ ; CHECK-LABEL: define {{[^@]+}} @mixed_clamp_to_i32_1(
558
534
; CHECK-NEXT: [[FLOAT_MIN_CMP:%.*]] = fcmp ogt float [[X:%.*]], 2.550000e+02
559
535
; CHECK-NEXT: [[FLOAT_MIN:%.*]] = select i1 [[FLOAT_MIN_CMP]], float 2.550000e+02, float [[X]]
560
536
; CHECK-NEXT: [[I32_MIN:%.*]] = fptosi float [[FLOAT_MIN]] to i32
@@ -573,7 +549,7 @@ define i32 @mixed_clamp_to_i32_1(float %x) {
573
549
}
574
550
575
551
define float @mixed_clamp_to_float_2 (i32 %x ) {
576
- ; CHECK-LABEL: @mixed_clamp_to_float_2(
552
+ ; CHECK-LABEL: define {{[^@]+}} @mixed_clamp_to_float_2(
577
553
; CHECK-NEXT: [[TMP1:%.*]] = icmp slt i32 [[X:%.*]], 255
578
554
; CHECK-NEXT: [[SI_MIN:%.*]] = select i1 [[TMP1]], i32 [[X]], i32 255
579
555
; CHECK-NEXT: [[TMP2:%.*]] = icmp sgt i32 [[SI_MIN]], 1
@@ -590,7 +566,7 @@ define float @mixed_clamp_to_float_2(i32 %x) {
590
566
}
591
567
592
568
define i32 @mixed_clamp_to_i32_2 (float %x ) {
593
- ; CHECK-LABEL: @mixed_clamp_to_i32_2(
569
+ ; CHECK-LABEL: define {{[^@]+}} @mixed_clamp_to_i32_2(
594
570
; CHECK-NEXT: [[FLOAT_MIN_CMP:%.*]] = fcmp ogt float [[X:%.*]], 2.550000e+02
595
571
; CHECK-NEXT: [[FLOAT_MIN:%.*]] = select i1 [[FLOAT_MIN_CMP]], float 2.550000e+02, float [[X]]
596
572
; CHECK-NEXT: [[I32_MIN:%.*]] = fptosi float [[FLOAT_MIN]] to i32
0 commit comments