2 #define vector __attribute__((vector_size(sizeof(int)*4) ))
4 /* Check to make sure that we extract and insert the vector at the same
5 location for vector subscripting and that vectors layout are the same
13 typedef struct TV4 MYV4
;
14 static inline int *f(MYV4
*a
, int i
)
19 static inline MYV4
myfunc2( int x
, int y
, int z
, int w
)
31 __attribute__((noinline
)) void modify (void)
33 val3
= myfunc2( 1, 2, 3, 4 );
36 int main( int argc
, char* argv
[] )
43 if (*f(&val3
, 0 ) != 1)
45 if (*f(&val3
, 1 ) != 2)
47 if (*f(&val3
, 2 ) != 3)
49 if (*f(&val3
, 3 ) != 4)
52 __builtin_memcpy (a
, &val3
, sizeof(a
));
53 for(i
= 0; i
< 4; i
++)