@@ -24,23 +24,23 @@ entry:
24
24
define noundef <2 x half > @test_step_half2 (<2 x half > noundef %p0 , <2 x half > noundef %p1 ) {
25
25
entry:
26
26
; CHECK: %0 = fcmp olt <2 x half> %p1, %p0
27
- ; CHECK: %1 = select <2 x i1> %0, <2 x half> zeroinitializer, <2 x half> <half 0xH3C00, half 0xH3C00>
27
+ ; CHECK: %1 = select <2 x i1> %0, <2 x half> zeroinitializer, <2 x half> splat ( half 0xH3C00)
28
28
%hlsl.step = call <2 x half > @llvm.dx.step.v2f16 (<2 x half > %p0 , <2 x half > %p1 )
29
29
ret <2 x half > %hlsl.step
30
30
}
31
31
32
32
define noundef <3 x half > @test_step_half3 (<3 x half > noundef %p0 , <3 x half > noundef %p1 ) {
33
33
entry:
34
34
; CHECK: %0 = fcmp olt <3 x half> %p1, %p0
35
- ; CHECK: %1 = select <3 x i1> %0, <3 x half> zeroinitializer, <3 x half> <half 0xH3C00, half 0xH3C00, half 0xH3C00>
35
+ ; CHECK: %1 = select <3 x i1> %0, <3 x half> zeroinitializer, <3 x half> splat ( half 0xH3C00)
36
36
%hlsl.step = call <3 x half > @llvm.dx.step.v3f16 (<3 x half > %p0 , <3 x half > %p1 )
37
37
ret <3 x half > %hlsl.step
38
38
}
39
39
40
40
define noundef <4 x half > @test_step_half4 (<4 x half > noundef %p0 , <4 x half > noundef %p1 ) {
41
41
entry:
42
42
; CHECK: %0 = fcmp olt <4 x half> %p1, %p0
43
- ; CHECK: %1 = select <4 x i1> %0, <4 x half> zeroinitializer, <4 x half> <half 0xH3C00, half 0xH3C00, half 0xH3C00, half 0xH3C00>
43
+ ; CHECK: %1 = select <4 x i1> %0, <4 x half> zeroinitializer, <4 x half> splat ( half 0xH3C00)
44
44
%hlsl.step = call <4 x half > @llvm.dx.step.v4f16 (<4 x half > %p0 , <4 x half > %p1 )
45
45
ret <4 x half > %hlsl.step
46
46
}
@@ -56,23 +56,23 @@ entry:
56
56
define noundef <2 x float > @test_step_float2 (<2 x float > noundef %p0 , <2 x float > noundef %p1 ) {
57
57
entry:
58
58
; CHECK: %0 = fcmp olt <2 x float> %p1, %p0
59
- ; CHECK: %1 = select <2 x i1> %0, <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00>
59
+ ; CHECK: %1 = select <2 x i1> %0, <2 x float> zeroinitializer, <2 x float> splat ( float 1.000000e+00)
60
60
%hlsl.step = call <2 x float > @llvm.dx.step.v2f32 (<2 x float > %p0 , <2 x float > %p1 )
61
61
ret <2 x float > %hlsl.step
62
62
}
63
63
64
64
define noundef <3 x float > @test_step_float3 (<3 x float > noundef %p0 , <3 x float > noundef %p1 ) {
65
65
entry:
66
66
; CHECK: %0 = fcmp olt <3 x float> %p1, %p0
67
- ; CHECK: %1 = select <3 x i1> %0, <3 x float> zeroinitializer, <3 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>
67
+ ; CHECK: %1 = select <3 x i1> %0, <3 x float> zeroinitializer, <3 x float> splat ( float 1.000000e+00)
68
68
%hlsl.step = call <3 x float > @llvm.dx.step.v3f32 (<3 x float > %p0 , <3 x float > %p1 )
69
69
ret <3 x float > %hlsl.step
70
70
}
71
71
72
72
define noundef <4 x float > @test_step_float4 (<4 x float > noundef %p0 , <4 x float > noundef %p1 ) {
73
73
entry:
74
74
; CHECK: %0 = fcmp olt <4 x float> %p1, %p0
75
- ; CHECK: %1 = select <4 x i1> %0, <4 x float> zeroinitializer, <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>
75
+ ; CHECK: %1 = select <4 x i1> %0, <4 x float> zeroinitializer, <4 x float> splat ( float 1.000000e+00)
76
76
%hlsl.step = call <4 x float > @llvm.dx.step.v4f32 (<4 x float > %p0 , <4 x float > %p1 )
77
77
ret <4 x float > %hlsl.step
78
78
}
0 commit comments