Skip to content

Commit 21a518f

Browse files
committed
[InstCombine] regenerate test checks; NFC
Avoid subsequent test noise from improved CHECK-LABEL matching.
1 parent a3f4745 commit 21a518f

File tree

3 files changed

+162
-186
lines changed

3 files changed

+162
-186
lines changed

llvm/test/Transforms/InstCombine/clamp-to-minmax.ll

Lines changed: 35 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
; (X < C1) ? C1 : MIN(X, C2)
55
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(
87
; CHECK-NEXT: [[CMP2:%.*]] = fcmp fast olt float [[X:%.*]], 2.550000e+02
98
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2]], float [[X]], float 2.550000e+02
109
; 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) {
2019

2120
; (X <= C1) ? C1 : MIN(X, C2)
2221
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(
2523
; CHECK-NEXT: [[CMP2:%.*]] = fcmp fast olt float [[X:%.*]], 2.550000e+02
2624
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2]], float [[X]], float 2.550000e+02
2725
; 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) {
3735

3836
; (X > C1) ? C1 : MAX(X, C2)
3937
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(
4239
; CHECK-NEXT: [[CMP2:%.*]] = fcmp fast ogt float [[X:%.*]], 1.000000e+00
4340
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2]], float [[X]], float 1.000000e+00
4441
; 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) {
5451

5552
; (X >= C1) ? C1 : MAX(X, C2)
5653
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(
5955
; CHECK-NEXT: [[CMP2:%.*]] = fcmp fast ogt float [[X:%.*]], 1.000000e+00
6056
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2]], float [[X]], float 1.000000e+00
6157
; 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) {
7470

7571
; (X < C1) ? C1 : MIN(X, C2)
7672
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(
7974
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp fast oge float [[X:%.*]], 2.550000e+02
8075
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2_INV]], float 2.550000e+02, float [[X]]
8176
; 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) {
9186

9287
; (X <= C1) ? C1 : MIN(X, C2)
9388
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(
9690
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp fast oge float [[X:%.*]], 2.550000e+02
9791
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2_INV]], float 2.550000e+02, float [[X]]
9892
; 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) {
108102

109103
; (X > C1) ? C1 : MAX(X, C2)
110104
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(
113106
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp fast ole float [[X:%.*]], 1.000000e+00
114107
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2_INV]], float 1.000000e+00, float [[X]]
115108
; 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) {
125118

126119
; (X >= C1) ? C1 : MAX(X, C2)
127120
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(
130122
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp fast ole float [[X:%.*]], 1.000000e+00
131123
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2_INV]], float 1.000000e+00, float [[X]]
132124
; 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) {
145137
; (X > 1.0) ? min(x, 255.0) : 1.0
146138
; That did not match because select was in inverse order.
147139
define float @clamp_test_1(float %x) {
148-
; CHECK-LABEL: @clamp_test_1(
140+
; CHECK-LABEL: define {{[^@]+}}@clamp_test_1(
149141
; CHECK-NEXT: [[INNER_CMP_INV:%.*]] = fcmp fast oge float [[X:%.*]], 2.550000e+02
150142
; CHECK-NEXT: [[INNER_SEL:%.*]] = select i1 [[INNER_CMP_INV]], float 2.550000e+02, float [[X]]
151143
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp fast oge float [[INNER_SEL]], 1.000000e+00
@@ -163,7 +155,7 @@ define float @clamp_test_1(float %x) {
163155

164156
; Like @clamp_test_1 but HighConst < LowConst
165157
define float @clamp_negative_wrong_const(float %x) {
166-
; CHECK-LABEL: @clamp_negative_wrong_const(
158+
; CHECK-LABEL: define {{[^@]+}}@clamp_negative_wrong_const(
167159
; CHECK-NEXT: [[INNER_CMP_INV:%.*]] = fcmp fast oge float [[X:%.*]], 2.550000e+02
168160
; CHECK-NEXT: [[INNER_SEL:%.*]] = select i1 [[INNER_CMP_INV]], float 2.550000e+02, float [[X]]
169161
; CHECK-NEXT: [[OUTER_CMP:%.*]] = fcmp fast ugt float [[X]], 5.120000e+02
@@ -179,7 +171,7 @@ define float @clamp_negative_wrong_const(float %x) {
179171

180172
; Like @clamp_test_1 but both are min
181173
define float @clamp_negative_same_op(float %x) {
182-
; CHECK-LABEL: @clamp_negative_same_op(
174+
; CHECK-LABEL: define {{[^@]+}}@clamp_negative_same_op(
183175
; CHECK-NEXT: [[INNER_CMP_INV:%.*]] = fcmp fast oge float [[X:%.*]], 2.550000e+02
184176
; CHECK-NEXT: [[INNER_SEL:%.*]] = select i1 [[INNER_CMP_INV]], float 2.550000e+02, float [[X]]
185177
; CHECK-NEXT: [[OUTER_CMP:%.*]] = fcmp fast ult float [[X]], 1.000000e+00
@@ -198,7 +190,7 @@ define float @clamp_negative_same_op(float %x) {
198190

199191
; First, check that we don't do bad things in the presence of signed zeros
200192
define float @clamp_float_with_zero1(float %x) {
201-
; CHECK-LABEL: @clamp_float_with_zero1(
193+
; CHECK-LABEL: define {{[^@]+}}@clamp_float_with_zero1(
202194
; CHECK-NEXT: [[CMP2:%.*]] = fcmp fast olt float [[X:%.*]], 2.550000e+02
203195
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2]], float [[X]], float 2.550000e+02
204196
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ole float [[X]], 0.000000e+00
@@ -213,7 +205,7 @@ define float @clamp_float_with_zero1(float %x) {
213205
}
214206

215207
define float @clamp_float_with_zero2(float %x) {
216-
; CHECK-LABEL: @clamp_float_with_zero2(
208+
; CHECK-LABEL: define {{[^@]+}}@clamp_float_with_zero2(
217209
; CHECK-NEXT: [[CMP2:%.*]] = fcmp fast olt float [[X:%.*]], 2.550000e+02
218210
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2]], float [[X]], float 2.550000e+02
219211
; CHECK-NEXT: [[CMP1:%.*]] = fcmp olt float [[X]], 0.000000e+00
@@ -235,8 +227,7 @@ define float @clamp_float_with_zero2(float %x) {
235227

236228
; (X < C1) ? C1 : MIN(X, C2)
237229
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(
240231
; CHECK-NEXT: [[CMP2:%.*]] = fcmp olt float [[X:%.*]], 2.550000e+02
241232
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2]], float [[X]], float 2.550000e+02
242233
; CHECK-NEXT: [[CMP1:%.*]] = fcmp olt float [[X]], 1.000000e+00
@@ -251,8 +242,7 @@ define float @clamp_float_ordered_strict_maxmin1(float %x) {
251242
}
252243

253244
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(
256246
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp oge float [[X:%.*]], 2.550000e+02
257247
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2_INV]], float 2.550000e+02, float [[X]]
258248
; CHECK-NEXT: [[CMP1:%.*]] = fcmp olt float [[X]], 1.000000e+00
@@ -268,8 +258,7 @@ define float @clamp_float_ordered_strict_maxmin2(float %x) {
268258

269259
; (X <= C1) ? C1 : MIN(X, C2)
270260
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(
273262
; CHECK-NEXT: [[CMP2:%.*]] = fcmp olt float [[X:%.*]], 2.550000e+02
274263
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2]], float [[X]], float 2.550000e+02
275264
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ole float [[X]], 1.000000e+00
@@ -284,8 +273,7 @@ define float @clamp_float_ordered_nonstrict_maxmin1(float %x) {
284273
}
285274

286275
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(
289277
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp oge float [[X:%.*]], 2.550000e+02
290278
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2_INV]], float 2.550000e+02, float [[X]]
291279
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ole float [[X]], 1.000000e+00
@@ -301,8 +289,7 @@ define float @clamp_float_ordered_nonstrict_maxmin2(float %x) {
301289

302290
; (X > C1) ? C1 : MAX(X, C2)
303291
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(
306293
; CHECK-NEXT: [[CMP2:%.*]] = fcmp ogt float [[X:%.*]], 1.000000e+00
307294
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2]], float [[X]], float 1.000000e+00
308295
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ogt float [[X]], 2.550000e+02
@@ -317,8 +304,7 @@ define float @clamp_float_ordered_strict_minmax1(float %x) {
317304
}
318305

319306
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(
322308
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp ole float [[X:%.*]], 1.000000e+00
323309
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2_INV]], float 1.000000e+00, float [[X]]
324310
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ogt float [[X]], 2.550000e+02
@@ -334,8 +320,7 @@ define float @clamp_float_ordered_strict_minmax2(float %x) {
334320

335321
; (X >= C1) ? C1 : MAX(X, C2)
336322
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(
339324
; CHECK-NEXT: [[CMP2:%.*]] = fcmp ogt float [[X:%.*]], 1.000000e+00
340325
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2]], float [[X]], float 1.000000e+00
341326
; CHECK-NEXT: [[CMP1:%.*]] = fcmp oge float [[X]], 2.550000e+02
@@ -350,8 +335,7 @@ define float @clamp_float_ordered_nonstrict_minmax1(float %x) {
350335
}
351336

352337
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(
355339
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp ole float [[X:%.*]], 1.000000e+00
356340
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2_INV]], float 1.000000e+00, float [[X]]
357341
; CHECK-NEXT: [[CMP1:%.*]] = fcmp oge float [[X]], 2.550000e+02
@@ -370,8 +354,7 @@ define float @clamp_float_ordered_nonstrict_minmax2(float %x) {
370354

371355
; (X < C1) ? C1 : MIN(X, C2)
372356
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(
375358
; CHECK-NEXT: [[CMP2:%.*]] = fcmp olt float [[X:%.*]], 2.550000e+02
376359
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2]], float [[X]], float 2.550000e+02
377360
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ult float [[X]], 1.000000e+00
@@ -386,8 +369,7 @@ define float @clamp_float_unordered_strict_maxmin1(float %x) {
386369
}
387370

388371
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(
391373
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp oge float [[X:%.*]], 2.550000e+02
392374
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2_INV]], float 2.550000e+02, float [[X]]
393375
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ult float [[X]], 1.000000e+00
@@ -403,8 +385,7 @@ define float @clamp_float_unordered_strict_maxmin2(float %x) {
403385

404386
; (X <= C1) ? C1 : MIN(X, C2)
405387
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(
408389
; CHECK-NEXT: [[CMP2:%.*]] = fcmp olt float [[X:%.*]], 2.550000e+02
409390
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2]], float [[X]], float 2.550000e+02
410391
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ule float [[X]], 1.000000e+00
@@ -419,8 +400,7 @@ define float @clamp_float_unordered_nonstrict_maxmin1(float %x) {
419400
}
420401

421402
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(
424404
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp oge float [[X:%.*]], 2.550000e+02
425405
; CHECK-NEXT: [[MIN:%.*]] = select i1 [[CMP2_INV]], float 2.550000e+02, float [[X]]
426406
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ule float [[X]], 1.000000e+00
@@ -436,8 +416,7 @@ define float @clamp_float_unordered_nonstrict_maxmin2(float %x) {
436416

437417
; (X > C1) ? C1 : MAX(X, C2)
438418
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(
441420
; CHECK-NEXT: [[CMP2:%.*]] = fcmp ogt float [[X:%.*]], 1.000000e+00
442421
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2]], float [[X]], float 1.000000e+00
443422
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ugt float [[X]], 2.550000e+02
@@ -452,8 +431,7 @@ define float @clamp_float_unordered_strict_minmax1(float %x) {
452431
}
453432

454433
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(
457435
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp ole float [[X:%.*]], 1.000000e+00
458436
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2_INV]], float 1.000000e+00, float [[X]]
459437
; CHECK-NEXT: [[CMP1:%.*]] = fcmp ugt float [[X]], 2.550000e+02
@@ -469,8 +447,7 @@ define float @clamp_float_unordered_strict_minmax2(float %x) {
469447

470448
; (X >= C1) ? C1 : MAX(X, C2)
471449
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(
474451
; CHECK-NEXT: [[CMP2:%.*]] = fcmp ogt float [[X:%.*]], 1.000000e+00
475452
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2]], float [[X]], float 1.000000e+00
476453
; CHECK-NEXT: [[CMP1:%.*]] = fcmp uge float [[X]], 2.550000e+02
@@ -485,8 +462,7 @@ define float @clamp_float_unordered_nonstrict_minmax1(float %x) {
485462
}
486463

487464
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(
490466
; CHECK-NEXT: [[CMP2_INV:%.*]] = fcmp ole float [[X:%.*]], 1.000000e+00
491467
; CHECK-NEXT: [[MAX:%.*]] = select i1 [[CMP2_INV]], float 1.000000e+00, float [[X]]
492468
; CHECK-NEXT: [[CMP1:%.*]] = fcmp uge float [[X]], 2.550000e+02
@@ -502,7 +478,7 @@ define float @clamp_float_unordered_nonstrict_minmax2(float %x) {
502478

503479
;; Check casts behavior
504480
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(
506482
; CHECK-NEXT: [[LO_CMP:%.*]] = icmp eq i32 [[X:%.*]], 0
507483
; CHECK-NEXT: [[TMP1:%.*]] = icmp ult i32 [[X]], 255
508484
; CHECK-NEXT: [[MIN1:%.*]] = select i1 [[TMP1]], i32 [[X]], i32 255
@@ -519,7 +495,7 @@ define float @ui32_clamp_and_cast_to_float(i32 %x) {
519495
}
520496

521497
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(
523499
; CHECK-NEXT: [[LO_CMP:%.*]] = icmp eq i64 [[X:%.*]], 0
524500
; CHECK-NEXT: [[TMP1:%.*]] = icmp ult i64 [[X]], 255
525501
; CHECK-NEXT: [[MIN1:%.*]] = select i1 [[TMP1]], i64 [[X]], i64 255
@@ -536,7 +512,7 @@ define float @ui64_clamp_and_cast_to_float(i64 %x) {
536512
}
537513

538514
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(
540516
; CHECK-NEXT: [[TMP1:%.*]] = icmp slt i32 [[X:%.*]], 255
541517
; CHECK-NEXT: [[SI_MIN:%.*]] = select i1 [[TMP1]], i32 [[X]], i32 255
542518
; CHECK-NEXT: [[TMP2:%.*]] = icmp sgt i32 [[SI_MIN]], 1
@@ -554,7 +530,7 @@ define float @mixed_clamp_to_float_1(i32 %x) {
554530
}
555531

556532
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(
558534
; CHECK-NEXT: [[FLOAT_MIN_CMP:%.*]] = fcmp ogt float [[X:%.*]], 2.550000e+02
559535
; CHECK-NEXT: [[FLOAT_MIN:%.*]] = select i1 [[FLOAT_MIN_CMP]], float 2.550000e+02, float [[X]]
560536
; CHECK-NEXT: [[I32_MIN:%.*]] = fptosi float [[FLOAT_MIN]] to i32
@@ -573,7 +549,7 @@ define i32 @mixed_clamp_to_i32_1(float %x) {
573549
}
574550

575551
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(
577553
; CHECK-NEXT: [[TMP1:%.*]] = icmp slt i32 [[X:%.*]], 255
578554
; CHECK-NEXT: [[SI_MIN:%.*]] = select i1 [[TMP1]], i32 [[X]], i32 255
579555
; CHECK-NEXT: [[TMP2:%.*]] = icmp sgt i32 [[SI_MIN]], 1
@@ -590,7 +566,7 @@ define float @mixed_clamp_to_float_2(i32 %x) {
590566
}
591567

592568
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(
594570
; CHECK-NEXT: [[FLOAT_MIN_CMP:%.*]] = fcmp ogt float [[X:%.*]], 2.550000e+02
595571
; CHECK-NEXT: [[FLOAT_MIN:%.*]] = select i1 [[FLOAT_MIN_CMP]], float 2.550000e+02, float [[X]]
596572
; CHECK-NEXT: [[I32_MIN:%.*]] = fptosi float [[FLOAT_MIN]] to i32

0 commit comments

Comments
 (0)