1 /* { dg-do compile { target powerpc-*-* } } */
2 /* { dg-options "-maltivec" } */
4 /* Program to test the vector_size attribute. This needs to run on a
5 target that has vectors, so use AltiVec. */
7 #define vector __attribute__((vector_size(16)))
11 /* Only floats and integrals allowed. We don't care if they map to SIs. */
12 struct X { int frances; };
13 vector struct X hotdog; /* { dg-error "invalid vector type" } */
15 /* We don't have a V2DF. */
16 vector double x; /* { dg-error "no vector mode" } */
18 /* Arrays of vectors. */
19 vector char b[10], ouch;
21 /* Pointers of vectors. */
22 vector short *shoe, polish;
24 int xxx[sizeof(foobar) == 16 ? 69 : -1];
26 int nc17[sizeof(shoe) == sizeof (char *) ? 69 : -1];