2 /* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
3 /* { dg-do compile { target { powerpc*-*-* && { ! vmx_hw } } } } */
4 /* { dg-options "-O2 -maltivec" } */
5 /* { dg-require-effective-target powerpc_altivec } */
7 #define vector __attribute__((vector_size (16)))
15 void __attribute__((noinline
))
16 bar (void *i
, vector
int j
)
18 asm volatile ("" : : "r" (i
), "r" (&j
) : "memory");
21 int __attribute__((noinline
))
22 foo (int i
, vector
int j
)
24 char *p
= __builtin_alloca (64 + i
);
28 if (__builtin_memcmp (&v
.c
, &w
.c
, 16) != 0)
42 for (i
= 0; i
< 4; i
++)