1212// CHECK: %hlsl.select.i = select reassoc nnan ninf nsz arcp afn i1 %cmp.i, half %{{.*}}, half %fneg.i
1313// CHECK: ret half %hlsl.select.i
1414// SPVCHECK-LABEL: test_faceforward_half
15- // SPVCHECK: %spv.faceforward.i = call reassoc nnan ninf nsz arcp afn noundef half @llvm.spv.smoothstep .f16(half %{{.*}}, half %{{.*}}, half %{{.*}})
15+ // SPVCHECK: %spv.faceforward.i = call reassoc nnan ninf nsz arcp afn noundef half @llvm.spv.faceforward .f16(half %{{.*}}, half %{{.*}}, half %{{.*}})
1616// SPVCHECK: ret half %spv.faceforward.i
1717half test_faceforward_half (half N, half I, half Ng) { return faceforward (N, I, Ng); }
1818
@@ -23,7 +23,7 @@ half test_faceforward_half(half N, half I, half Ng) { return faceforward(N, I, N
2323// CHECK: %hlsl.select.i = select reassoc nnan ninf nsz arcp afn i1 %cmp.i, <2 x half> %{{.*}}, <2 x half> %fneg.i
2424// CHECK: ret <2 x half> %hlsl.select.i
2525// SPVCHECK-LABEL: test_faceforward_half2
26- // SPVCHECK: %spv.faceforward.i = call reassoc nnan ninf nsz arcp afn noundef <2 x half> @llvm.spv.smoothstep .v2f16(<2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}})
26+ // SPVCHECK: %spv.faceforward.i = call reassoc nnan ninf nsz arcp afn noundef <2 x half> @llvm.spv.faceforward .v2f16(<2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}})
2727// SPVCHECK: ret <2 x half> %spv.faceforward.i
2828half2 test_faceforward_half2 (half2 N, half2 I, half2 Ng) { return faceforward (N, I, Ng); }
2929
@@ -34,7 +34,7 @@ half2 test_faceforward_half2(half2 N, half2 I, half2 Ng) { return faceforward(N,
3434// CHECK: %hlsl.select.i = select reassoc nnan ninf nsz arcp afn i1 %cmp.i, <3 x half> %{{.*}}, <3 x half> %fneg.i
3535// CHECK: ret <3 x half> %hlsl.select.i
3636// SPVCHECK-LABEL: test_faceforward_half3
37- // SPVCHECK: %spv.faceforward.i = call reassoc nnan ninf nsz arcp afn noundef <3 x half> @llvm.spv.smoothstep .v3f16(<3 x half> %{{.*}}, <3 x half> %{{.*}}, <3 x half> %{{.*}})
37+ // SPVCHECK: %spv.faceforward.i = call reassoc nnan ninf nsz arcp afn noundef <3 x half> @llvm.spv.faceforward .v3f16(<3 x half> %{{.*}}, <3 x half> %{{.*}}, <3 x half> %{{.*}})
3838// SPVCHECK: ret <3 x half> %spv.faceforward.i
3939half3 test_faceforward_half3 (half3 N, half3 I, half3 Ng) { return faceforward (N, I, Ng); }
4040
@@ -45,7 +45,7 @@ half3 test_faceforward_half3(half3 N, half3 I, half3 Ng) { return faceforward(N,
4545// CHECK: %hlsl.select.i = select reassoc nnan ninf nsz arcp afn i1 %cmp.i, <4 x half> %{{.*}}, <4 x half> %fneg.i
4646// CHECK: ret <4 x half> %hlsl.select.i
4747// SPVCHECK-LABEL: test_faceforward_half4
48- // SPVCHECK: %spv.faceforward.i = call reassoc nnan ninf nsz arcp afn noundef <4 x half> @llvm.spv.smoothstep .v4f16(<4 x half> %{{.*}}, <4 x half> %{{.*}}, <4 x half> %{{.*}})
48+ // SPVCHECK: %spv.faceforward.i = call reassoc nnan ninf nsz arcp afn noundef <4 x half> @llvm.spv.faceforward .v4f16(<4 x half> %{{.*}}, <4 x half> %{{.*}}, <4 x half> %{{.*}})
4949// SPVCHECK: ret <4 x half> %spv.faceforward.i
5050half4 test_faceforward_half4 (half4 N, half4 I, half4 Ng) { return faceforward (N, I, Ng); }
5151
@@ -56,7 +56,7 @@ half4 test_faceforward_half4(half4 N, half4 I, half4 Ng) { return faceforward(N,
5656// CHECK: %hlsl.select.i = select reassoc nnan ninf nsz arcp afn i1 %cmp.i, float %{{.*}}, float %fneg.i
5757// CHECK: ret float %hlsl.select.i
5858// SPVCHECK-LABEL: test_faceforward_float
59- // SPVCHECK: %spv.faceforward.i = call reassoc nnan ninf nsz arcp afn noundef float @llvm.spv.smoothstep .f32(float %{{.*}}, float %{{.*}}, float %{{.*}})
59+ // SPVCHECK: %spv.faceforward.i = call reassoc nnan ninf nsz arcp afn noundef float @llvm.spv.faceforward .f32(float %{{.*}}, float %{{.*}}, float %{{.*}})
6060// SPVCHECK: ret float %spv.faceforward.i
6161float test_faceforward_float (float N, float I, float Ng) { return faceforward (N, I, Ng); }
6262
@@ -67,7 +67,7 @@ float test_faceforward_float(float N, float I, float Ng) { return faceforward(N,
6767// CHECK: %hlsl.select.i = select reassoc nnan ninf nsz arcp afn i1 %cmp.i, <2 x float> %{{.*}}, <2 x float> %fneg.i
6868// CHECK: ret <2 x float> %hlsl.select.i
6969// SPVCHECK-LABEL: test_faceforward_float2
70- // SPVCHECK: %spv.faceforward.i = call reassoc nnan ninf nsz arcp afn noundef <2 x float> @llvm.spv.smoothstep .v2f32(<2 x float> %{{.*}}, <2 x float> %{{.*}}, <2 x float> %{{.*}})
70+ // SPVCHECK: %spv.faceforward.i = call reassoc nnan ninf nsz arcp afn noundef <2 x float> @llvm.spv.faceforward .v2f32(<2 x float> %{{.*}}, <2 x float> %{{.*}}, <2 x float> %{{.*}})
7171// SPVCHECK: ret <2 x float> %spv.faceforward.i
7272float2 test_faceforward_float2 (float2 N, float2 I, float2 Ng) { return faceforward (N, I, Ng); }
7373
@@ -78,7 +78,7 @@ float2 test_faceforward_float2(float2 N, float2 I, float2 Ng) { return faceforwa
7878// CHECK: %hlsl.select.i = select reassoc nnan ninf nsz arcp afn i1 %cmp.i, <3 x float> %{{.*}}, <3 x float> %fneg.i
7979// CHECK: ret <3 x float> %hlsl.select.i
8080// SPVCHECK-LABEL: test_faceforward_float3
81- // SPVCHECK: %spv.faceforward.i = call reassoc nnan ninf nsz arcp afn noundef <3 x float> @llvm.spv.smoothstep .v3f32(<3 x float> %{{.*}}, <3 x float> %{{.*}}, <3 x float> %{{.*}})
81+ // SPVCHECK: %spv.faceforward.i = call reassoc nnan ninf nsz arcp afn noundef <3 x float> @llvm.spv.faceforward .v3f32(<3 x float> %{{.*}}, <3 x float> %{{.*}}, <3 x float> %{{.*}})
8282// SPVCHECK: ret <3 x float> %spv.faceforward.i
8383float3 test_faceforward_float3 (float3 N, float3 I, float3 Ng) { return faceforward (N, I, Ng); }
8484
@@ -89,6 +89,6 @@ float3 test_faceforward_float3(float3 N, float3 I, float3 Ng) { return faceforwa
8989// CHECK: %hlsl.select.i = select reassoc nnan ninf nsz arcp afn i1 %cmp.i, <4 x float> %{{.*}}, <4 x float> %fneg.i
9090// CHECK: ret <4 x float> %hlsl.select.i
9191// SPVCHECK-LABEL: test_faceforward_float4
92- // SPVCHECK: %spv.faceforward.i = call reassoc nnan ninf nsz arcp afn noundef <4 x float> @llvm.spv.smoothstep .v4f32(<4 x float> %{{.*}}, <4 x float> %{{.*}}, <4 x float> %{{.*}})
92+ // SPVCHECK: %spv.faceforward.i = call reassoc nnan ninf nsz arcp afn noundef <4 x float> @llvm.spv.faceforward .v4f32(<4 x float> %{{.*}}, <4 x float> %{{.*}}, <4 x float> %{{.*}})
9393// SPVCHECK: ret <4 x float> %spv.faceforward.i
9494float4 test_faceforward_float4 (float4 N, float4 I, float4 Ng) { return faceforward (N, I, Ng); }
0 commit comments