You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// expected-error@-1 {{too many elements in vector operand (expected 3 elements, have 2)}}
45
+
return__builtin_hlsl_crossf32(p1, p1);
46
+
// expected-error@-1 {{cannot initialize a parameter of type 'vector<float, 3>' (vector of 3 'float' values) with an lvalue of type 'int2' (aka 'vector<int, 2>')}}
// expected-error@-1 {{2nd argument must be a vectorof 16 or 32 bit floating-point types (was 'int3' (aka 'vector<int, 3>'))}}
51
+
return__builtin_hlsl_crossf32(p1, p2);
52
+
// expected-error@-1 {{cannot initialize a parameter of type 'vector<float, 3>' (vector of 3 'float' values) with an lvalue of type 'float2' (aka 'vector<float, 2>')}}
43
53
}
44
54
45
-
half3builtin_cross_same_type(half3 p0, float3 p1)
55
+
voidtest_ambiguous(int p0)
46
56
{
47
-
return__builtin_hlsl_cross(p0, p1);
48
-
// expected-error@-1 {{all arguments to '__builtin_hlsl_cross' must have the same type}}
57
+
returncross(p0,p0);
58
+
// expected-error@-1 {{call to 'cross' is ambiguous}}
0 commit comments