@@ -9,12 +9,12 @@ define void @d() {
9
9
; CHECK-NEXT: br label [[VECTOR_BODY:%.*]]
10
10
; CHECK: vector.body:
11
11
; CHECK-NEXT: [[INDEX:%.*]] = phi i64 [ 0, [[VECTOR_PH]] ], [ [[INDEX_NEXT:%.*]], [[VECTOR_BODY]] ]
12
- ; CHECK-NEXT: [[TMP6 :%.*]] = load float, ptr null, align 4
13
- ; CHECK-NEXT: [[BROADCAST_SPLATINSERT:%.*]] = insertelement <2 x float> poison, float [[TMP6 ]], i64 0
12
+ ; CHECK-NEXT: [[TMP0 :%.*]] = load float, ptr null, align 4
13
+ ; CHECK-NEXT: [[BROADCAST_SPLATINSERT:%.*]] = insertelement <2 x float> poison, float [[TMP0 ]], i64 0
14
14
; CHECK-NEXT: [[BROADCAST_SPLAT:%.*]] = shufflevector <2 x float> [[BROADCAST_SPLATINSERT]], <2 x float> poison, <2 x i32> zeroinitializer
15
15
; CHECK-NEXT: [[TMP1:%.*]] = getelementptr float, ptr @d, i64 [[INDEX]]
16
16
; CHECK-NEXT: [[TMP2:%.*]] = call <2 x i1> @llvm.is.fpclass.v2f32(<2 x float> [[BROADCAST_SPLAT]], i32 0)
17
- ; CHECK-NEXT: [[TMP3:%.*]] = select <2 x i1> [[TMP2]], <2 x float> zeroinitializer, <2 x float> zeroinitializer
17
+ ; CHECK-NEXT: [[TMP3:%.*]] = select <2 x i1> [[TMP2]], <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00)
18
18
; CHECK-NEXT: [[TMP4:%.*]] = getelementptr float, ptr [[TMP1]], i32 0
19
19
; CHECK-NEXT: store <2 x float> [[TMP3]], ptr [[TMP4]], align 4
20
20
; CHECK-NEXT: [[INDEX_NEXT]] = add nuw i64 [[INDEX]], 2
@@ -30,7 +30,7 @@ define void @d() {
30
30
; CHECK-NEXT: [[I3:%.*]] = load float, ptr null, align 4
31
31
; CHECK-NEXT: [[I4:%.*]] = getelementptr float, ptr @d, i64 [[I]]
32
32
; CHECK-NEXT: [[I5:%.*]] = tail call i1 @llvm.is.fpclass.f32(float [[I3]], i32 0)
33
- ; CHECK-NEXT: [[I6:%.*]] = select i1 [[I5]], float 0.000000e+00, float 0 .000000e+00
33
+ ; CHECK-NEXT: [[I6:%.*]] = select i1 [[I5]], float 0.000000e+00, float 1 .000000e+00
34
34
; CHECK-NEXT: store float [[I6]], ptr [[I4]], align 4
35
35
; CHECK-NEXT: [[I7]] = add i64 [[I]], 1
36
36
; CHECK-NEXT: [[I8:%.*]] = icmp eq i64 [[I7]], 128
46
46
%i3 = load float , ptr null , align 4
47
47
%i4 = getelementptr float , ptr @d , i64 %i
48
48
%i5 = tail call i1 @llvm.is.fpclass.f32 (float %i3 , i32 0 )
49
- %i6 = select i1 %i5 , float 0 .0 , float 0 .0
49
+ %i6 = select i1 %i5 , float 0 .0 , float 1 .0
50
50
store float %i6 , ptr %i4 , align 4
51
51
%i7 = add i64 %i , 1
52
52
%i8 = icmp eq i64 %i7 , 128
0 commit comments