Skip to content

Commit bf1c86c

Browse files
committed
InstCombine: Regenerate test after "Transform (fcmp + fadd + sel)"
Update for the splat vector syntax, which landed after the last precheck run.
1 parent 3d73dbe commit bf1c86c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

llvm/test/Transforms/InstCombine/fcmp-fadd-select.ll

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ define <2 x float> @test_fcmp_ogt_fadd_select_constant_vectors(<2 x float> %in)
5959
; CHECK-LABEL: define <2 x float> @test_fcmp_ogt_fadd_select_constant_vectors(
6060
; CHECK-SAME: <2 x float> [[IN:%.*]]) {
6161
; CHECK-NEXT: [[SEL_NEW:%.*]] = call nnan nsz <2 x float> @llvm.maxnum.v2f32(<2 x float> [[IN]], <2 x float> zeroinitializer)
62-
; CHECK-NEXT: [[ADD_NEW:%.*]] = fadd nnan nsz <2 x float> [[SEL_NEW]], <float 1.000000e+00, float 1.000000e+00>
62+
; CHECK-NEXT: [[ADD_NEW:%.*]] = fadd nnan nsz <2 x float> [[SEL_NEW]], splat (float 1.000000e+00)
6363
; CHECK-NEXT: ret <2 x float> [[ADD_NEW]]
6464
;
6565
%cmp1 = fcmp ogt <2 x float> %in, <float 0.000000e+00, float 0.000000e+00>
@@ -127,7 +127,7 @@ define <2 x float> @test_fcmp_olt_fadd_select_constant_vectors(<2 x float> %in)
127127
; CHECK-LABEL: define <2 x float> @test_fcmp_olt_fadd_select_constant_vectors(
128128
; CHECK-SAME: <2 x float> [[IN:%.*]]) {
129129
; CHECK-NEXT: [[SEL_NEW:%.*]] = call nnan nsz <2 x float> @llvm.minnum.v2f32(<2 x float> [[IN]], <2 x float> zeroinitializer)
130-
; CHECK-NEXT: [[ADD_NEW:%.*]] = fadd nnan nsz <2 x float> [[SEL_NEW]], <float 1.000000e+00, float 1.000000e+00>
130+
; CHECK-NEXT: [[ADD_NEW:%.*]] = fadd nnan nsz <2 x float> [[SEL_NEW]], splat (float 1.000000e+00)
131131
; CHECK-NEXT: ret <2 x float> [[ADD_NEW]]
132132
;
133133
%cmp1 = fcmp olt <2 x float> %in, <float 0.000000e+00, float 0.000000e+00>
@@ -195,7 +195,7 @@ define <2 x float> @test_fcmp_oge_fadd_select_constant_vectors(<2 x float> %in)
195195
; CHECK-LABEL: define <2 x float> @test_fcmp_oge_fadd_select_constant_vectors(
196196
; CHECK-SAME: <2 x float> [[IN:%.*]]) {
197197
; CHECK-NEXT: [[SEL_NEW:%.*]] = call nnan nsz <2 x float> @llvm.maxnum.v2f32(<2 x float> [[IN]], <2 x float> zeroinitializer)
198-
; CHECK-NEXT: [[ADD_NEW:%.*]] = fadd nnan nsz <2 x float> [[SEL_NEW]], <float 1.000000e+00, float 1.000000e+00>
198+
; CHECK-NEXT: [[ADD_NEW:%.*]] = fadd nnan nsz <2 x float> [[SEL_NEW]], splat (float 1.000000e+00)
199199
; CHECK-NEXT: ret <2 x float> [[ADD_NEW]]
200200
;
201201
%cmp1 = fcmp oge <2 x float> %in, <float 0.000000e+00, float 0.000000e+00>
@@ -263,7 +263,7 @@ define <2 x float> @test_fcmp_ole_fadd_select_constant_vectors(<2 x float> %in)
263263
; CHECK-LABEL: define <2 x float> @test_fcmp_ole_fadd_select_constant_vectors(
264264
; CHECK-SAME: <2 x float> [[IN:%.*]]) {
265265
; CHECK-NEXT: [[SEL_NEW:%.*]] = call nnan nsz <2 x float> @llvm.minnum.v2f32(<2 x float> [[IN]], <2 x float> zeroinitializer)
266-
; CHECK-NEXT: [[ADD_NEW:%.*]] = fadd nnan nsz <2 x float> [[SEL_NEW]], <float 1.000000e+00, float 1.000000e+00>
266+
; CHECK-NEXT: [[ADD_NEW:%.*]] = fadd nnan nsz <2 x float> [[SEL_NEW]], splat (float 1.000000e+00)
267267
; CHECK-NEXT: ret <2 x float> [[ADD_NEW]]
268268
;
269269
%cmp1 = fcmp ole <2 x float> %in, <float 0.000000e+00, float 0.000000e+00>
@@ -336,7 +336,7 @@ define <2 x float> @test_fcmp_ugt_fadd_select_constant_vectors(<2 x float> %in)
336336
; CHECK-SAME: <2 x float> [[IN:%.*]]) {
337337
; CHECK-NEXT: [[CMP1_INV:%.*]] = fcmp ole <2 x float> [[IN]], zeroinitializer
338338
; CHECK-NEXT: [[SEL_NEW:%.*]] = select <2 x i1> [[CMP1_INV]], <2 x float> zeroinitializer, <2 x float> [[IN]]
339-
; CHECK-NEXT: [[ADD_NEW:%.*]] = fadd nnan nsz <2 x float> [[SEL_NEW]], <float 1.000000e+00, float 1.000000e+00>
339+
; CHECK-NEXT: [[ADD_NEW:%.*]] = fadd nnan nsz <2 x float> [[SEL_NEW]], splat (float 1.000000e+00)
340340
; CHECK-NEXT: ret <2 x float> [[ADD_NEW]]
341341
;
342342
%cmp1 = fcmp ugt <2 x float> %in, <float 0.000000e+00, float 0.000000e+00>
@@ -409,7 +409,7 @@ define <2 x float> @test_fcmp_uge_fadd_select_constant_vectors(<2 x float> %in)
409409
; CHECK-SAME: <2 x float> [[IN:%.*]]) {
410410
; CHECK-NEXT: [[CMP1_INV:%.*]] = fcmp olt <2 x float> [[IN]], zeroinitializer
411411
; CHECK-NEXT: [[SEL_NEW:%.*]] = select <2 x i1> [[CMP1_INV]], <2 x float> zeroinitializer, <2 x float> [[IN]]
412-
; CHECK-NEXT: [[ADD_NEW:%.*]] = fadd nnan nsz <2 x float> [[SEL_NEW]], <float 1.000000e+00, float 1.000000e+00>
412+
; CHECK-NEXT: [[ADD_NEW:%.*]] = fadd nnan nsz <2 x float> [[SEL_NEW]], splat (float 1.000000e+00)
413413
; CHECK-NEXT: ret <2 x float> [[ADD_NEW]]
414414
;
415415
%cmp1 = fcmp uge <2 x float> %in, <float 0.000000e+00, float 0.000000e+00>
@@ -482,7 +482,7 @@ define <2 x float> @test_fcmp_ult_fadd_select_constant_vectors(<2 x float> %in)
482482
; CHECK-SAME: <2 x float> [[IN:%.*]]) {
483483
; CHECK-NEXT: [[CMP1_INV:%.*]] = fcmp oge <2 x float> [[IN]], zeroinitializer
484484
; CHECK-NEXT: [[SEL_NEW:%.*]] = select <2 x i1> [[CMP1_INV]], <2 x float> zeroinitializer, <2 x float> [[IN]]
485-
; CHECK-NEXT: [[ADD_NEW:%.*]] = fadd nnan nsz <2 x float> [[SEL_NEW]], <float 1.000000e+00, float 1.000000e+00>
485+
; CHECK-NEXT: [[ADD_NEW:%.*]] = fadd nnan nsz <2 x float> [[SEL_NEW]], splat (float 1.000000e+00)
486486
; CHECK-NEXT: ret <2 x float> [[ADD_NEW]]
487487
;
488488
%cmp1 = fcmp ult <2 x float> %in, <float 0.000000e+00, float 0.000000e+00>
@@ -555,7 +555,7 @@ define <2 x float> @test_fcmp_ule_fadd_select_constant_vectors(<2 x float> %in)
555555
; CHECK-SAME: <2 x float> [[IN:%.*]]) {
556556
; CHECK-NEXT: [[CMP1_INV:%.*]] = fcmp ogt <2 x float> [[IN]], zeroinitializer
557557
; CHECK-NEXT: [[SEL_NEW:%.*]] = select <2 x i1> [[CMP1_INV]], <2 x float> zeroinitializer, <2 x float> [[IN]]
558-
; CHECK-NEXT: [[ADD_NEW:%.*]] = fadd nnan nsz <2 x float> [[SEL_NEW]], <float 1.000000e+00, float 1.000000e+00>
558+
; CHECK-NEXT: [[ADD_NEW:%.*]] = fadd nnan nsz <2 x float> [[SEL_NEW]], splat (float 1.000000e+00)
559559
; CHECK-NEXT: ret <2 x float> [[ADD_NEW]]
560560
;
561561
%cmp1 = fcmp ule <2 x float> %in, <float 0.000000e+00, float 0.000000e+00>

0 commit comments

Comments
 (0)