2 /* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
3 #define vector __attribute__((vector_size(sizeof(int)*4) ))
5 /* Check to make sure that we extract and insert the vector at the same
6 location for vector subscripting (with constant indexes) and
7 that vectors layout are the same as arrays. */
14 typedef struct TV4 MYV4
;
16 static inline MYV4
myfunc2( int x
, int y
, int z
, int w
)
26 __attribute__((noinline
)) void modify (void)
28 val3
= myfunc2( 1, 2, 3, 4 );
30 int main( int argc
, char* argv
[] )
35 /* Set up the vector. */
38 /* Check the vector via the global variable. */
48 vector
int a1
= val3
.v
;
50 /* Check the vector via a local variable. */
60 __builtin_memcpy(a
, &val3
, sizeof(a
));
61 /* Check the vector via copying it to an array. */
62 for(i
= 0; i
< 4; i
++)