@@ -22,7 +22,7 @@ float test_dot_vector_size_mismatch(float3 p0, float2 p1) {
22
22
23
23
float test_dot_builtin_vector_size_mismatch (float3 p0, float2 p1) {
24
24
return __builtin_hlsl_dot (p0, p1);
25
- // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must have vectors of the same type}}
25
+ // expected-error@-1 {{first two arguments to '__builtin_hlsl_dot' must have the same type}}
26
26
}
27
27
28
28
float test_dot_scalar_mismatch (float p0, int p1) {
@@ -38,70 +38,70 @@ float test_dot_element_type_mismatch(int2 p0, float2 p1) {
38
38
//NOTE: for all the *_promotion we are intentionally not handling type promotion in builtins
39
39
float test_builtin_dot_vec_int_to_float_promotion (int2 p0, float2 p1) {
40
40
return __builtin_hlsl_dot (p0, p1);
41
- // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must have vectors of the same type}}
41
+ // expected-error@-1 {{first two arguments to '__builtin_hlsl_dot' must have the same type}}
42
42
}
43
43
44
44
int64_t test_builtin_dot_vec_int_to_int64_promotion (int64_t2 p0, int2 p1) {
45
45
return __builtin_hlsl_dot (p0, p1);
46
- // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must have vectors of the same type}}
46
+ // expected-error@-1 {{first two arguments to '__builtin_hlsl_dot' must have the same type}}
47
47
}
48
48
49
49
float test_builtin_dot_vec_half_to_float_promotion (float2 p0, half2 p1) {
50
50
return __builtin_hlsl_dot (p0, p1);
51
- // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must have vectors of the same type}}
51
+ // expected-error@-1 {{first two arguments to '__builtin_hlsl_dot' must have the same type}}
52
52
}
53
53
54
54
#ifdef __HLSL_ENABLE_16_BIT
55
55
float test_builtin_dot_vec_int16_to_float_promotion (float2 p0, int16_t2 p1) {
56
56
return __builtin_hlsl_dot (p0, p1);
57
- // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must have vectors of the same type}}
57
+ // expected-error@-1 {{first two arguments to '__builtin_hlsl_dot' must have the same type}}
58
58
}
59
59
60
60
half test_builtin_dot_vec_int16_to_half_promotion (half2 p0, int16_t2 p1) {
61
61
return __builtin_hlsl_dot (p0, p1);
62
- // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must have vectors of the same type}}
62
+ // expected-error@-1 {{first two arguments to '__builtin_hlsl_dot' must have the same type}}
63
63
}
64
64
65
65
int test_builtin_dot_vec_int16_to_int_promotion (int2 p0, int16_t2 p1) {
66
66
return __builtin_hlsl_dot (p0, p1);
67
- // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must have vectors of the same type}}
67
+ // expected-error@-1 {{first two arguments to '__builtin_hlsl_dot' must have the same type}}
68
68
}
69
69
70
70
int64_t test_builtin_dot_vec_int16_to_int64_promotion (int64_t2 p0,
71
71
int16_t2 p1) {
72
72
return __builtin_hlsl_dot (p0, p1);
73
- // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must have vectors of the same type}}
73
+ // expected-error@-1 {{first two arguments to '__builtin_hlsl_dot' must have the same type}}
74
74
}
75
75
#endif
76
76
77
77
float test_builtin_dot_float2_splat (float p0, float2 p1) {
78
78
return __builtin_hlsl_dot (p0, p1);
79
- // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must be vectors}}
79
+ // expected-error@-1 {{first two arguments to '__builtin_hlsl_dot' must be vectors}}
80
80
}
81
81
82
82
float test_builtin_dot_float3_splat (float p0, float3 p1) {
83
83
return __builtin_hlsl_dot (p0, p1);
84
- // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must be vectors}}
84
+ // expected-error@-1 {{first two arguments to '__builtin_hlsl_dot' must be vectors}}
85
85
}
86
86
87
87
float test_builtin_dot_float4_splat (float p0, float4 p1) {
88
88
return __builtin_hlsl_dot (p0, p1);
89
- // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must be vectors}}
89
+ // expected-error@-1 {{first two arguments to '__builtin_hlsl_dot' must be vectors}}
90
90
}
91
91
92
92
float test_dot_float2_int_splat (float2 p0, int p1) {
93
93
return __builtin_hlsl_dot (p0, p1);
94
- // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must be vectors}}
94
+ // expected-error@-1 {{first two arguments to '__builtin_hlsl_dot' must be vectors}}
95
95
}
96
96
97
97
float test_dot_float3_int_splat (float3 p0, int p1) {
98
98
return __builtin_hlsl_dot (p0, p1);
99
- // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must be vectors}}
99
+ // expected-error@-1 {{first two arguments to '__builtin_hlsl_dot' must be vectors}}
100
100
}
101
101
102
102
float test_builtin_dot_int_vect_to_float_vec_promotion (int2 p0, float p1) {
103
103
return __builtin_hlsl_dot (p0, p1);
104
- // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must be vectors}}
104
+ // expected-error@-1 {{first two arguments to '__builtin_hlsl_dot' must be vectors}}
105
105
}
106
106
107
107
int test_builtin_dot_bool_type_promotion (bool p0, bool p1) {
0 commit comments