Skip to content

Commit 2af2f58

Browse files
committed
[InstCombine] Regenerate test checks (NFC)
1 parent 09468a9 commit 2af2f58

File tree

9 files changed

+247
-212
lines changed

9 files changed

+247
-212
lines changed

Diff for: llvm/test/Transforms/InstCombine/CPP_min_max.ll

+36-18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: opt < %s -instcombine -S | \
2-
; RUN: grep select | not grep 'i32\*'
1+
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2+
; RUN: opt < %s -instcombine -S | FileCheck %s
33

44
; This testcase corresponds to PR362, which notices that this horrible code
55
; is generated by the C++ front-end and LLVM optimizers, which has lots of
@@ -9,26 +9,44 @@
99
; allow elimination of the extra stuff by the mem2reg pass.
1010

1111
define void @_Z5test1RiS_(i32* %x, i32* %y) {
12+
; CHECK-LABEL: @_Z5test1RiS_(
13+
; CHECK-NEXT: entry:
14+
; CHECK-NEXT: [[TMP_1_I:%.*]] = load i32, i32* [[Y:%.*]], align 4
15+
; CHECK-NEXT: [[TMP_3_I:%.*]] = load i32, i32* [[X:%.*]], align 4
16+
; CHECK-NEXT: [[TMP_4_I:%.*]] = icmp slt i32 [[TMP_1_I]], [[TMP_3_I]]
17+
; CHECK-NEXT: [[TMP_4:%.*]] = select i1 [[TMP_4_I]], i32 [[TMP_1_I]], i32 [[TMP_3_I]]
18+
; CHECK-NEXT: store i32 [[TMP_4]], i32* [[X]], align 4
19+
; CHECK-NEXT: ret void
20+
;
1221
entry:
13-
%tmp.1.i = load i32, i32* %y ; <i32> [#uses=1]
14-
%tmp.3.i = load i32, i32* %x ; <i32> [#uses=1]
15-
%tmp.4.i = icmp slt i32 %tmp.1.i, %tmp.3.i ; <i1> [#uses=1]
16-
%retval.i = select i1 %tmp.4.i, i32* %y, i32* %x ; <i32*> [#uses=1]
17-
%tmp.4 = load i32, i32* %retval.i ; <i32> [#uses=1]
18-
store i32 %tmp.4, i32* %x
19-
ret void
22+
%tmp.1.i = load i32, i32* %y ; <i32> [#uses=1]
23+
%tmp.3.i = load i32, i32* %x ; <i32> [#uses=1]
24+
%tmp.4.i = icmp slt i32 %tmp.1.i, %tmp.3.i ; <i1> [#uses=1]
25+
%retval.i = select i1 %tmp.4.i, i32* %y, i32* %x ; <i32*> [#uses=1]
26+
%tmp.4 = load i32, i32* %retval.i ; <i32> [#uses=1]
27+
store i32 %tmp.4, i32* %x
28+
ret void
2029
}
2130

2231
define void @_Z5test2RiS_(i32* %x, i32* %y) {
32+
; CHECK-LABEL: @_Z5test2RiS_(
33+
; CHECK-NEXT: entry:
34+
; CHECK-NEXT: [[TMP_2:%.*]] = load i32, i32* [[X:%.*]], align 4
35+
; CHECK-NEXT: [[TMP_3_I:%.*]] = load i32, i32* [[Y:%.*]], align 4
36+
; CHECK-NEXT: [[TMP_4_I:%.*]] = icmp slt i32 [[TMP_2]], [[TMP_3_I]]
37+
; CHECK-NEXT: [[TMP_6:%.*]] = select i1 [[TMP_4_I]], i32 [[TMP_3_I]], i32 [[TMP_2]]
38+
; CHECK-NEXT: store i32 [[TMP_6]], i32* [[Y]], align 4
39+
; CHECK-NEXT: ret void
40+
;
2341
entry:
24-
%tmp.0 = alloca i32 ; <i32*> [#uses=2]
25-
%tmp.2 = load i32, i32* %x ; <i32> [#uses=2]
26-
store i32 %tmp.2, i32* %tmp.0
27-
%tmp.3.i = load i32, i32* %y ; <i32> [#uses=1]
28-
%tmp.4.i = icmp slt i32 %tmp.2, %tmp.3.i ; <i1> [#uses=1]
29-
%retval.i = select i1 %tmp.4.i, i32* %y, i32* %tmp.0 ; <i32*> [#uses=1]
30-
%tmp.6 = load i32, i32* %retval.i ; <i32> [#uses=1]
31-
store i32 %tmp.6, i32* %y
32-
ret void
42+
%tmp.0 = alloca i32 ; <i32*> [#uses=2]
43+
%tmp.2 = load i32, i32* %x ; <i32> [#uses=2]
44+
store i32 %tmp.2, i32* %tmp.0
45+
%tmp.3.i = load i32, i32* %y ; <i32> [#uses=1]
46+
%tmp.4.i = icmp slt i32 %tmp.2, %tmp.3.i ; <i1> [#uses=1]
47+
%retval.i = select i1 %tmp.4.i, i32* %y, i32* %tmp.0 ; <i32*> [#uses=1]
48+
%tmp.6 = load i32, i32* %retval.i ; <i32> [#uses=1]
49+
store i32 %tmp.6, i32* %y
50+
ret void
3351
}
3452

Diff for: llvm/test/Transforms/InstCombine/clamp-to-minmax.ll

+51-51
Large diffs are not rendered by default.

Diff for: llvm/test/Transforms/InstCombine/minmax-fp.ll

+34-34
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
; This is the canonical form for a type-changing min/max.
55
define double @t1(float %a) {
6-
; CHECK-LABEL: define {{[^@]+}}@t1(
6+
; CHECK-LABEL: @t1(
77
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp oge float [[A:%.*]], 5.000000e+00
88
; CHECK-NEXT: [[TMP1:%.*]] = select i1 [[DOTINV]], float 5.000000e+00, float [[A]]
99
; CHECK-NEXT: [[TMP2:%.*]] = fpext float [[TMP1]] to double
@@ -17,7 +17,7 @@ define double @t1(float %a) {
1717

1818
; Check this is converted into canonical form, as above.
1919
define double @t2(float %a) {
20-
; CHECK-LABEL: define {{[^@]+}}@t2(
20+
; CHECK-LABEL: @t2(
2121
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp oge float [[A:%.*]], 5.000000e+00
2222
; CHECK-NEXT: [[TMP1:%.*]] = select i1 [[DOTINV]], float 5.000000e+00, float [[A]]
2323
; CHECK-NEXT: [[TMP2:%.*]] = fpext float [[TMP1]] to double
@@ -31,7 +31,7 @@ define double @t2(float %a) {
3131

3232
; Same again, with trunc.
3333
define float @t4(double %a) {
34-
; CHECK-LABEL: define {{[^@]+}}@t4(
34+
; CHECK-LABEL: @t4(
3535
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp oge double [[A:%.*]], 5.000000e+00
3636
; CHECK-NEXT: [[TMP1:%.*]] = select i1 [[DOTINV]], double 5.000000e+00, double [[A]]
3737
; CHECK-NEXT: [[TMP2:%.*]] = fptrunc double [[TMP1]] to float
@@ -45,7 +45,7 @@ define float @t4(double %a) {
4545

4646
; different values, should not be converted.
4747
define double @t5(float %a) {
48-
; CHECK-LABEL: define {{[^@]+}}@t5(
48+
; CHECK-LABEL: @t5(
4949
; CHECK-NEXT: [[TMP1:%.*]] = fcmp ult float [[A:%.*]], 5.000000e+00
5050
; CHECK-NEXT: [[TMP2:%.*]] = fpext float [[A]] to double
5151
; CHECK-NEXT: [[TMP3:%.*]] = select i1 [[TMP1]], double [[TMP2]], double 5.001000e+00
@@ -61,7 +61,7 @@ define double @t5(float %a) {
6161
; So the compare constant may be treated as +0.0, and we sink the fpext.
6262

6363
define double @t6(float %a) {
64-
; CHECK-LABEL: define {{[^@]+}}@t6(
64+
; CHECK-LABEL: @t6(
6565
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp oge float [[A:%.*]], 0.000000e+00
6666
; CHECK-NEXT: [[TMP1:%.*]] = select i1 [[DOTINV]], float 0.000000e+00, float [[A]]
6767
; CHECK-NEXT: [[TMP2:%.*]] = fpext float [[TMP1]] to double
@@ -77,7 +77,7 @@ define double @t6(float %a) {
7777
; So the compare constant may be treated as -0.0, and we sink the fpext.
7878

7979
define double @t7(float %a) {
80-
; CHECK-LABEL: define {{[^@]+}}@t7(
80+
; CHECK-LABEL: @t7(
8181
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp oge float [[A:%.*]], 0.000000e+00
8282
; CHECK-NEXT: [[TMP1:%.*]] = select i1 [[DOTINV]], float -0.000000e+00, float [[A]]
8383
; CHECK-NEXT: [[TMP2:%.*]] = fpext float [[TMP1]] to double
@@ -92,7 +92,7 @@ define double @t7(float %a) {
9292
; min(min(x, 0.0), 0.0) --> min(x, 0.0)
9393

9494
define float @fmin_fmin_zero_mismatch(float %x) {
95-
; CHECK-LABEL: define {{[^@]+}}@fmin_fmin_zero_mismatch(
95+
; CHECK-LABEL: @fmin_fmin_zero_mismatch(
9696
; CHECK-NEXT: [[TMP1:%.*]] = fcmp olt float [[X:%.*]], 0.000000e+00
9797
; CHECK-NEXT: [[MIN2:%.*]] = select i1 [[TMP1]], float [[X]], float 0.000000e+00
9898
; CHECK-NEXT: ret float [[MIN2]]
@@ -107,7 +107,7 @@ define float @fmin_fmin_zero_mismatch(float %x) {
107107
; max(max(x, -0.0), -0.0) --> max(x, -0.0)
108108

109109
define float @fmax_fmax_zero_mismatch(float %x) {
110-
; CHECK-LABEL: define {{[^@]+}}@fmax_fmax_zero_mismatch(
110+
; CHECK-LABEL: @fmax_fmax_zero_mismatch(
111111
; CHECK-NEXT: [[TMP1:%.*]] = fcmp ogt float [[X:%.*]], -0.000000e+00
112112
; CHECK-NEXT: [[MAX11:%.*]] = select i1 [[TMP1]], float [[X]], float -0.000000e+00
113113
; CHECK-NEXT: ret float [[MAX11]]
@@ -120,7 +120,7 @@ define float @fmax_fmax_zero_mismatch(float %x) {
120120
}
121121

122122
define i64 @t8(float %a) {
123-
; CHECK-LABEL: define {{[^@]+}}@t8(
123+
; CHECK-LABEL: @t8(
124124
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp oge float [[A:%.*]], 5.000000e+00
125125
; CHECK-NEXT: [[TMP1:%.*]] = select i1 [[DOTINV]], float 5.000000e+00, float [[A]]
126126
; CHECK-NEXT: [[TMP2:%.*]] = fptoui float [[TMP1]] to i64
@@ -133,7 +133,7 @@ define i64 @t8(float %a) {
133133
}
134134

135135
define i8 @t9(float %a) {
136-
; CHECK-LABEL: define {{[^@]+}}@t9(
136+
; CHECK-LABEL: @t9(
137137
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp oge float [[A:%.*]], 0.000000e+00
138138
; CHECK-NEXT: [[TMP1:%.*]] = select i1 [[DOTINV]], float 0.000000e+00, float [[A]]
139139
; CHECK-NEXT: [[TMP2:%.*]] = fptosi float [[TMP1]] to i8
@@ -147,7 +147,7 @@ define i8 @t9(float %a) {
147147

148148
; Either operand could be NaN, but fast modifier applied.
149149
define i8 @t11(float %a, float %b) {
150-
; CHECK-LABEL: define {{[^@]+}}@t11(
150+
; CHECK-LABEL: @t11(
151151
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp fast oge float [[B:%.*]], [[A:%.*]]
152152
; CHECK-NEXT: [[TMP1:%.*]] = select fast i1 [[DOTINV]], float [[A]], float [[B]]
153153
; CHECK-NEXT: [[TMP2:%.*]] = fptosi float [[TMP1]] to i8
@@ -162,7 +162,7 @@ define i8 @t11(float %a, float %b) {
162162

163163
; Either operand could be NaN, but nnan modifier applied.
164164
define i8 @t12(float %a, float %b) {
165-
; CHECK-LABEL: define {{[^@]+}}@t12(
165+
; CHECK-LABEL: @t12(
166166
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp nnan oge float [[B:%.*]], [[A:%.*]]
167167
; CHECK-NEXT: [[TMP1:%.*]] = select nnan i1 [[DOTINV]], float [[A]], float [[B]]
168168
; CHECK-NEXT: [[TMP2:%.*]] = fptosi float [[TMP1]] to i8
@@ -177,7 +177,7 @@ define i8 @t12(float %a, float %b) {
177177

178178
; Float and int values do not match.
179179
define i8 @t13(float %a) {
180-
; CHECK-LABEL: define {{[^@]+}}@t13(
180+
; CHECK-LABEL: @t13(
181181
; CHECK-NEXT: [[TMP1:%.*]] = fcmp ult float [[A:%.*]], 1.500000e+00
182182
; CHECK-NEXT: [[TMP2:%.*]] = fptosi float [[A]] to i8
183183
; CHECK-NEXT: [[TMP3:%.*]] = select i1 [[TMP1]], i8 [[TMP2]], i8 1
@@ -191,7 +191,7 @@ define i8 @t13(float %a) {
191191

192192
; %a could be -0.0, but it doesn't matter because the conversion to int is the same for 0.0 or -0.0.
193193
define i8 @t14(float %a) {
194-
; CHECK-LABEL: define {{[^@]+}}@t14(
194+
; CHECK-LABEL: @t14(
195195
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp oge float [[A:%.*]], 0.000000e+00
196196
; CHECK-NEXT: [[TMP1:%.*]] = select i1 [[DOTINV]], float 0.000000e+00, float [[A]]
197197
; CHECK-NEXT: [[TMP2:%.*]] = fptosi float [[TMP1]] to i8
@@ -204,7 +204,7 @@ define i8 @t14(float %a) {
204204
}
205205

206206
define i8 @t14_commute(float %a) {
207-
; CHECK-LABEL: define {{[^@]+}}@t14_commute(
207+
; CHECK-LABEL: @t14_commute(
208208
; CHECK-NEXT: [[TMP1:%.*]] = fcmp ogt float [[A:%.*]], 0.000000e+00
209209
; CHECK-NEXT: [[TMP2:%.*]] = select i1 [[TMP1]], float [[A]], float 0.000000e+00
210210
; CHECK-NEXT: [[TMP3:%.*]] = fptosi float [[TMP2]] to i8
@@ -217,7 +217,7 @@ define i8 @t14_commute(float %a) {
217217
}
218218

219219
define i8 @t15(float %a) {
220-
; CHECK-LABEL: define {{[^@]+}}@t15(
220+
; CHECK-LABEL: @t15(
221221
; CHECK-NEXT: [[DOTINV:%.*]] = fcmp nsz oge float [[A:%.*]], 0.000000e+00
222222
; CHECK-NEXT: [[TMP1:%.*]] = select nsz i1 [[DOTINV]], float 0.000000e+00, float [[A]]
223223
; CHECK-NEXT: [[TMP2:%.*]] = fptosi float [[TMP1]] to i8
@@ -230,7 +230,7 @@ define i8 @t15(float %a) {
230230
}
231231

232232
define double @t16(i32 %x) {
233-
; CHECK-LABEL: define {{[^@]+}}@t16(
233+
; CHECK-LABEL: @t16(
234234
; CHECK-NEXT: [[CMP:%.*]] = icmp sgt i32 [[X:%.*]], 0
235235
; CHECK-NEXT: [[CST:%.*]] = sitofp i32 [[X]] to double
236236
; CHECK-NEXT: [[SEL:%.*]] = select i1 [[CMP]], double [[CST]], double 5.000000e-01
@@ -243,7 +243,7 @@ define double @t16(i32 %x) {
243243
}
244244

245245
define double @t17(i32 %x) {
246-
; CHECK-LABEL: define {{[^@]+}}@t17(
246+
; CHECK-LABEL: @t17(
247247
; CHECK-NEXT: [[TMP1:%.*]] = icmp sgt i32 [[X:%.*]], 2
248248
; CHECK-NEXT: [[SEL1:%.*]] = select i1 [[TMP1]], i32 [[X]], i32 2
249249
; CHECK-NEXT: [[TMP2:%.*]] = sitofp i32 [[SEL1]] to double
@@ -256,7 +256,7 @@ define double @t17(i32 %x) {
256256
}
257257

258258
define float @fneg_fmax(float %x, float %y) {
259-
; CHECK-LABEL: define {{[^@]+}}@fneg_fmax(
259+
; CHECK-LABEL: @fneg_fmax(
260260
; CHECK-NEXT: [[COND:%.*]] = fcmp nnan olt float [[X:%.*]], [[Y:%.*]]
261261
; CHECK-NEXT: [[MAX_V:%.*]] = select i1 [[COND]], float [[X]], float [[Y]]
262262
; CHECK-NEXT: [[MAX:%.*]] = fneg float [[MAX_V]]
@@ -270,7 +270,7 @@ define float @fneg_fmax(float %x, float %y) {
270270
}
271271

272272
define <2 x float> @fsub_fmax(<2 x float> %x, <2 x float> %y) {
273-
; CHECK-LABEL: define {{[^@]+}}@fsub_fmax(
273+
; CHECK-LABEL: @fsub_fmax(
274274
; CHECK-NEXT: [[COND_INV:%.*]] = fcmp nnan nsz ogt <2 x float> [[X:%.*]], [[Y:%.*]]
275275
; CHECK-NEXT: [[TMP1:%.*]] = select nnan nsz <2 x i1> [[COND_INV]], <2 x float> [[Y]], <2 x float> [[X]]
276276
; CHECK-NEXT: [[MAX:%.*]] = fneg <2 x float> [[TMP1]]
@@ -284,7 +284,7 @@ define <2 x float> @fsub_fmax(<2 x float> %x, <2 x float> %y) {
284284
}
285285

286286
define <2 x double> @fsub_fmin(<2 x double> %x, <2 x double> %y) {
287-
; CHECK-LABEL: define {{[^@]+}}@fsub_fmin(
287+
; CHECK-LABEL: @fsub_fmin(
288288
; CHECK-NEXT: [[COND:%.*]] = fcmp nnan ogt <2 x double> [[X:%.*]], [[Y:%.*]]
289289
; CHECK-NEXT: [[MAX_V:%.*]] = select <2 x i1> [[COND]], <2 x double> [[X]], <2 x double> [[Y]]
290290
; CHECK-NEXT: [[MAX:%.*]] = fneg <2 x double> [[MAX_V]]
@@ -298,7 +298,7 @@ define <2 x double> @fsub_fmin(<2 x double> %x, <2 x double> %y) {
298298
}
299299

300300
define double @fneg_fmin(double %x, double %y) {
301-
; CHECK-LABEL: define {{[^@]+}}@fneg_fmin(
301+
; CHECK-LABEL: @fneg_fmin(
302302
; CHECK-NEXT: [[COND_INV:%.*]] = fcmp nnan nsz olt double [[X:%.*]], [[Y:%.*]]
303303
; CHECK-NEXT: [[TMP1:%.*]] = select nnan nsz i1 [[COND_INV]], double [[Y]], double [[X]]
304304
; CHECK-NEXT: [[MAX:%.*]] = fneg double [[TMP1]]
@@ -312,7 +312,7 @@ define double @fneg_fmin(double %x, double %y) {
312312
}
313313

314314
define float @maxnum_ogt_fmf_on_select(float %a, float %b) {
315-
; CHECK-LABEL: define {{[^@]+}}@maxnum_ogt_fmf_on_select(
315+
; CHECK-LABEL: @maxnum_ogt_fmf_on_select(
316316
; CHECK-NEXT: [[TMP1:%.*]] = call nnan nsz float @llvm.maxnum.f32(float [[A:%.*]], float [[B:%.*]])
317317
; CHECK-NEXT: ret float [[TMP1]]
318318
;
@@ -322,7 +322,7 @@ define float @maxnum_ogt_fmf_on_select(float %a, float %b) {
322322
}
323323

324324
define <2 x float> @maxnum_oge_fmf_on_select(<2 x float> %a, <2 x float> %b) {
325-
; CHECK-LABEL: define {{[^@]+}}@maxnum_oge_fmf_on_select(
325+
; CHECK-LABEL: @maxnum_oge_fmf_on_select(
326326
; CHECK-NEXT: [[TMP1:%.*]] = call nnan ninf nsz <2 x float> @llvm.maxnum.v2f32(<2 x float> [[A:%.*]], <2 x float> [[B:%.*]])
327327
; CHECK-NEXT: ret <2 x float> [[TMP1]]
328328
;
@@ -332,7 +332,7 @@ define <2 x float> @maxnum_oge_fmf_on_select(<2 x float> %a, <2 x float> %b) {
332332
}
333333

334334
define float @maxnum_ogt_fmf_on_fcmp(float %a, float %b) {
335-
; CHECK-LABEL: define {{[^@]+}}@maxnum_ogt_fmf_on_fcmp(
335+
; CHECK-LABEL: @maxnum_ogt_fmf_on_fcmp(
336336
; CHECK-NEXT: [[COND:%.*]] = fcmp nnan nsz ogt float [[A:%.*]], [[B:%.*]]
337337
; CHECK-NEXT: [[F:%.*]] = select i1 [[COND]], float [[A]], float [[B]]
338338
; CHECK-NEXT: ret float [[F]]
@@ -343,7 +343,7 @@ define float @maxnum_ogt_fmf_on_fcmp(float %a, float %b) {
343343
}
344344

345345
define <2 x float> @maxnum_oge_fmf_on_fcmp(<2 x float> %a, <2 x float> %b) {
346-
; CHECK-LABEL: define {{[^@]+}}@maxnum_oge_fmf_on_fcmp(
346+
; CHECK-LABEL: @maxnum_oge_fmf_on_fcmp(
347347
; CHECK-NEXT: [[COND:%.*]] = fcmp nnan ninf nsz oge <2 x float> [[A:%.*]], [[B:%.*]]
348348
; CHECK-NEXT: [[F:%.*]] = select <2 x i1> [[COND]], <2 x float> [[A]], <2 x float> [[B]]
349349
; CHECK-NEXT: ret <2 x float> [[F]]
@@ -354,7 +354,7 @@ define <2 x float> @maxnum_oge_fmf_on_fcmp(<2 x float> %a, <2 x float> %b) {
354354
}
355355

356356
define float @maxnum_no_nsz(float %a, float %b) {
357-
; CHECK-LABEL: define {{[^@]+}}@maxnum_no_nsz(
357+
; CHECK-LABEL: @maxnum_no_nsz(
358358
; CHECK-NEXT: [[COND:%.*]] = fcmp ogt float [[A:%.*]], [[B:%.*]]
359359
; CHECK-NEXT: [[F:%.*]] = select nnan i1 [[COND]], float [[A]], float [[B]]
360360
; CHECK-NEXT: ret float [[F]]
@@ -365,7 +365,7 @@ define float @maxnum_no_nsz(float %a, float %b) {
365365
}
366366

367367
define float @maxnum_no_nnan(float %a, float %b) {
368-
; CHECK-LABEL: define {{[^@]+}}@maxnum_no_nnan(
368+
; CHECK-LABEL: @maxnum_no_nnan(
369369
; CHECK-NEXT: [[COND:%.*]] = fcmp oge float [[A:%.*]], [[B:%.*]]
370370
; CHECK-NEXT: [[F:%.*]] = select nsz i1 [[COND]], float [[A]], float [[B]]
371371
; CHECK-NEXT: ret float [[F]]
@@ -376,7 +376,7 @@ define float @maxnum_no_nnan(float %a, float %b) {
376376
}
377377

378378
define float @minnum_olt_fmf_on_select(float %a, float %b) {
379-
; CHECK-LABEL: define {{[^@]+}}@minnum_olt_fmf_on_select(
379+
; CHECK-LABEL: @minnum_olt_fmf_on_select(
380380
; CHECK-NEXT: [[TMP1:%.*]] = call nnan nsz float @llvm.minnum.f32(float [[A:%.*]], float [[B:%.*]])
381381
; CHECK-NEXT: ret float [[TMP1]]
382382
;
@@ -386,7 +386,7 @@ define float @minnum_olt_fmf_on_select(float %a, float %b) {
386386
}
387387

388388
define <2 x float> @minnum_ole_fmf_on_select(<2 x float> %a, <2 x float> %b) {
389-
; CHECK-LABEL: define {{[^@]+}}@minnum_ole_fmf_on_select(
389+
; CHECK-LABEL: @minnum_ole_fmf_on_select(
390390
; CHECK-NEXT: [[TMP1:%.*]] = call nnan ninf nsz <2 x float> @llvm.minnum.v2f32(<2 x float> [[A:%.*]], <2 x float> [[B:%.*]])
391391
; CHECK-NEXT: ret <2 x float> [[TMP1]]
392392
;
@@ -396,7 +396,7 @@ define <2 x float> @minnum_ole_fmf_on_select(<2 x float> %a, <2 x float> %b) {
396396
}
397397

398398
define float @minnum_olt_fmf_on_fcmp(float %a, float %b) {
399-
; CHECK-LABEL: define {{[^@]+}}@minnum_olt_fmf_on_fcmp(
399+
; CHECK-LABEL: @minnum_olt_fmf_on_fcmp(
400400
; CHECK-NEXT: [[COND:%.*]] = fcmp nnan nsz olt float [[A:%.*]], [[B:%.*]]
401401
; CHECK-NEXT: [[F:%.*]] = select i1 [[COND]], float [[A]], float [[B]]
402402
; CHECK-NEXT: ret float [[F]]
@@ -407,7 +407,7 @@ define float @minnum_olt_fmf_on_fcmp(float %a, float %b) {
407407
}
408408

409409
define <2 x float> @minnum_ole_fmf_on_fcmp(<2 x float> %a, <2 x float> %b) {
410-
; CHECK-LABEL: define {{[^@]+}}@minnum_ole_fmf_on_fcmp(
410+
; CHECK-LABEL: @minnum_ole_fmf_on_fcmp(
411411
; CHECK-NEXT: [[COND:%.*]] = fcmp nnan ninf nsz ole <2 x float> [[A:%.*]], [[B:%.*]]
412412
; CHECK-NEXT: [[F:%.*]] = select <2 x i1> [[COND]], <2 x float> [[A]], <2 x float> [[B]]
413413
; CHECK-NEXT: ret <2 x float> [[F]]
@@ -418,7 +418,7 @@ define <2 x float> @minnum_ole_fmf_on_fcmp(<2 x float> %a, <2 x float> %b) {
418418
}
419419

420420
define float @minnum_no_nsz(float %a, float %b) {
421-
; CHECK-LABEL: define {{[^@]+}}@minnum_no_nsz(
421+
; CHECK-LABEL: @minnum_no_nsz(
422422
; CHECK-NEXT: [[COND:%.*]] = fcmp olt float [[A:%.*]], [[B:%.*]]
423423
; CHECK-NEXT: [[F:%.*]] = select nnan i1 [[COND]], float [[A]], float [[B]]
424424
; CHECK-NEXT: ret float [[F]]
@@ -429,7 +429,7 @@ define float @minnum_no_nsz(float %a, float %b) {
429429
}
430430

431431
define float @minnum_no_nnan(float %a, float %b) {
432-
; CHECK-LABEL: define {{[^@]+}}@minnum_no_nnan(
432+
; CHECK-LABEL: @minnum_no_nnan(
433433
; CHECK-NEXT: [[COND:%.*]] = fcmp ole float [[A:%.*]], [[B:%.*]]
434434
; CHECK-NEXT: [[F:%.*]] = select nsz i1 [[COND]], float [[A]], float [[B]]
435435
; CHECK-NEXT: ret float [[F]]

0 commit comments

Comments
 (0)