1 #define vector __attribute__((vector_size(sizeof(int)*4) ))
3 /* Check to make sure that we extract and insert the vector at the same
4 location for vector subscripting (with constant indexes) and
5 that vectors layout are the same as arrays. */
12 typedef struct TV4 MYV4;
14 static inline MYV4 myfunc2( int x, int y, int z, int w )
24 __attribute__((noinline)) void modify (void)
26 val3 = myfunc2( 1, 2, 3, 4 );
28 int main( int argc, char* argv[] )
33 /* Set up the vector. */
36 /* Check the vector via the global variable. */
46 vector int a1 = val3.v;
48 /* Check the vector via a local variable. */
58 __builtin_memcpy(a, &val3, sizeof(a));
59 /* Check the vector via copying it to an array. */
60 for(i = 0; i < 4; i++)