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 {{initializing 'struct Foo' with an expression of incompatible type 'float'}}
652
+
653
+
f=__builtin_elementwise_ldexp();
654
+
// expected-error@-1 {{too few arguments to function call, expected 2, have 0}}
655
+
656
+
f=__builtin_elementwise_ldexp(f);
657
+
// expected-error@-1 {{too few arguments to function call, expected 2, have 1}}
658
+
659
+
f=__builtin_elementwise_ldexp(f, i, i);
660
+
// expected-error@-1 {{too many arguments to function call, expected 2, have 3}}
661
+
662
+
f=__builtin_elementwise_ldexp(i, i);
663
+
// expected-error@-1 {{1st argument must be a scalar or vector of floating-point types (was 'int')}}
664
+
665
+
f=__builtin_elementwise_ldexp(f, f);
666
+
// expected-error@-1 {{2nd argument must be a scalar or vector of integer types (was 'float')}}
667
+
668
+
f=__builtin_elementwise_ldexp(v, iv);
669
+
// expected-error@-1 {{vector operands do not have the same number of elements ('float4' (vector of 4 'float' values) and 'int3' (vector of 3 'int' values))}}
670
+
671
+
v=__builtin_elementwise_ldexp(v, i);
672
+
// expected-error@-1 {{vector operands do not have the same number of elements ('float4' (vector of 4 'float' values) and 'int')}}
673
+
674
+
v=__builtin_elementwise_ldexp(f, iv);
675
+
// expected-error@-1 {{vector operands do not have the same number of elements ('float' and 'int3' (vector of 3 'int' values))}}
676
+
677
+
f=__builtin_elementwise_ldexp(u, i);
678
+
// expected-error@-1 {{1st argument must be a scalar or vector of floating-point types (was 'unsigned int')}}
679
+
680
+
f=__builtin_elementwise_ldexp(uv, i);
681
+
// expected-error@-1 {{1st argument must be a scalar or vector of floating-point types (was 'unsigned4' (vector of 4 'unsigned int' values))}}
0 commit comments