================
@@ -42,47 +42,47 @@ float2 test_mad_element_type_mismatch(half2 p0, float2 p1) {
 
 float2 test_builtin_mad_float2_splat(float p0, float2 p1) {
   return __builtin_hlsl_mad(p0, p1, p1);
-  // expected-error@-1 {{all arguments to '__builtin_hlsl_mad' must be 
vectors}}
+  // expected-error@-1 {{arguments are of different types ('double' vs 
'float2' (aka 'vector<float, 2>'))}}
----------------
spall wrote:

I believe it's because float arguments to variadic functions are promoted to 
double. 

https://github.com/llvm/llvm-project/pull/138429
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to