@@ -9,12 +9,12 @@ define void @d() {
99; CHECK-NEXT: br label [[VECTOR_BODY:%.*]]
1010; CHECK: vector.body:
1111; 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
1414; CHECK-NEXT: [[BROADCAST_SPLAT:%.*]] = shufflevector <2 x float> [[BROADCAST_SPLATINSERT]], <2 x float> poison, <2 x i32> zeroinitializer
1515; CHECK-NEXT: [[TMP1:%.*]] = getelementptr float, ptr @d, i64 [[INDEX]]
1616; 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)
1818; CHECK-NEXT: [[TMP4:%.*]] = getelementptr float, ptr [[TMP1]], i32 0
1919; CHECK-NEXT: store <2 x float> [[TMP3]], ptr [[TMP4]], align 4
2020; CHECK-NEXT: [[INDEX_NEXT]] = add nuw i64 [[INDEX]], 2
@@ -30,7 +30,7 @@ define void @d() {
3030; CHECK-NEXT: [[I3:%.*]] = load float, ptr null, align 4
3131; CHECK-NEXT: [[I4:%.*]] = getelementptr float, ptr @d, i64 [[I]]
3232; 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
3434; CHECK-NEXT: store float [[I6]], ptr [[I4]], align 4
3535; CHECK-NEXT: [[I7]] = add i64 [[I]], 1
3636; CHECK-NEXT: [[I8:%.*]] = icmp eq i64 [[I7]], 128
4646 %i3 = load float , ptr null , align 4
4747 %i4 = getelementptr float , ptr @d , i64 %i
4848 %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
5050 store float %i6 , ptr %i4 , align 4
5151 %i7 = add i64 %i , 1
5252 %i8 = icmp eq i64 %i7 , 128
0 commit comments