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 and that vectors layout are the same
14 typedef struct TV4 MYV4;
15 static inline int *f(MYV4 *a, int i)
20 static inline MYV4 myfunc2( int x, int y, int z, int w )
32 __attribute__((noinline)) void modify (void)
34 val3 = myfunc2( 1, 2, 3, 4 );
37 int main( int argc, char* argv[] )
44 if (*f(&val3, 0 ) != 1)
46 if (*f(&val3, 1 ) != 2)
48 if (*f(&val3, 2 ) != 3)
50 if (*f(&val3, 3 ) != 4)
53 __builtin_memcpy (a, &val3, sizeof(a));
54 for(i = 0; i < 4; i++)