================
@@ -786,3 +786,8 @@ const long long e = *0; // expected-error {{indirection
requires pointer operand
double f = a - e; // expected-error {{cannot initialize a variable of
type 'double' with an rvalue of type '__attribute__((__vector_size__(1 *
sizeof(double)))) double' (vector of 1 'double' value)}}
int h = c - e; // expected-error {{cannot initialize a variable of
type 'int' with an rvalue of type '__attribute__((__vector_size__(1 *
sizeof(long)))) long' (vector of 1 'long' value)}}
}
+
+typedef int v_neg_size __attribute__((vector_size(-8))); //
expected-error{{vector must have non-negative size}}
+typedef int v_neg_size_2 __attribute__((vector_size(-1 * 8))); //
expected-error{{vector must have non-negative size}}
+typedef int v_ext_neg_size __attribute__((ext_vector_type(-8))); //
expected-error{{vector must have non-negative size}}
+typedef int v_ext_neg_size2 __attribute__((ext_vector_type(-1 * 8))); //
expected-error{{vector must have non-negative size}}
----------------
AmrDeveloper wrote:
Thanks, I will create NFC for that soon @AaronBallman
https://github.com/llvm/llvm-project/pull/166055
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits