@@ -62,42 +62,42 @@ float2 test_lerp_element_type_mismatch(half2 p0, float2 p1) {
62
62
63
63
float2 test_builtin_lerp_float2_splat (float p0, float2 p1) {
64
64
return __builtin_hlsl_lerp (p0, p1, p1);
65
- // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must be vectors }}
65
+ // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must have the same type }}
66
66
}
67
67
68
68
float2 test_builtin_lerp_float2_splat2 (double p0, double2 p1) {
69
69
return __builtin_hlsl_lerp (p1, p0, p1);
70
- // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must be vectors }}
70
+ // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must have the same type }}
71
71
}
72
72
73
73
float2 test_builtin_lerp_float2_splat3 (double p0, double2 p1) {
74
74
return __builtin_hlsl_lerp (p1, p1, p0);
75
- // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must be vectors }}
75
+ // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must have the same type }}
76
76
}
77
77
78
78
float3 test_builtin_lerp_float3_splat (float p0, float3 p1) {
79
79
return __builtin_hlsl_lerp (p0, p1, p1);
80
- // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must be vectors }}
80
+ // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must have the same type }}
81
81
}
82
82
83
83
float4 test_builtin_lerp_float4_splat (float p0, float4 p1) {
84
84
return __builtin_hlsl_lerp (p0, p1, p1);
85
- // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must be vectors }}
85
+ // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must have the same type }}
86
86
}
87
87
88
88
float2 test_lerp_float2_int_splat (float2 p0, int p1) {
89
89
return __builtin_hlsl_lerp (p0, p1, p1);
90
- // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must be vectors }}
90
+ // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must have the same type }}
91
91
}
92
92
93
93
float3 test_lerp_float3_int_splat (float3 p0, int p1) {
94
94
return __builtin_hlsl_lerp (p0, p1, p1);
95
- // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must be vectors }}
95
+ // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must have the same type }}
96
96
}
97
97
98
98
float2 test_builtin_lerp_int_vect_to_float_vec_promotion (int2 p0, float p1) {
99
99
return __builtin_hlsl_lerp (p0, p1, p1);
100
- // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must be vectors }}
100
+ // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must have the same type }}
101
101
}
102
102
103
103
float test_builtin_lerp_bool_type_promotion (bool p0) {
@@ -107,17 +107,17 @@ float test_builtin_lerp_bool_type_promotion(bool p0) {
107
107
108
108
float builtin_bool_to_float_type_promotion (float p0, bool p1) {
109
109
return __builtin_hlsl_lerp (p0, p0, p1);
110
- // expected-error@-1 {{3rd argument must be a scalar or vector of floating-point types (was 'bool') }}
110
+ // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must have the same type }}
111
111
}
112
112
113
113
float builtin_bool_to_float_type_promotion2 (bool p0, float p1) {
114
114
return __builtin_hlsl_lerp (p1, p0, p1);
115
- // expected-error@-1 {{2nd argument must be a scalar or vector of floating-point types (was 'bool') }}
115
+ // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must have the same type }}
116
116
}
117
117
118
118
float builtin_lerp_int_to_float_promotion (float p0, int p1) {
119
119
return __builtin_hlsl_lerp (p0, p0, p1);
120
- // expected-error@-1 {{3rd argument must be a scalar or vector of floating-point types (was 'int') }}
120
+ // expected-error@-1 {{all arguments to '__builtin_hlsl_lerp' must have the same type }}
121
121
}
122
122
123
123
float4 test_lerp_int4 (int4 p0, int4 p1, int4 p2) {
0 commit comments