[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / ppc-vector-memcpy.c
blob7464625826586ff6db7ac8efbf77fc74b31bbf45
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-options "-O -maltivec -mno-vsx" } */
4 /* { dg-final { scan-assembler "lvx" } } */
6 #include <string.h>
8 void bar (int *);
10 void foo(void)
12 extern int x[8] __attribute__((aligned(128)));
13 int y[8] __attribute__((aligned(128)));
14 memcpy (y, x, sizeof (x));
15 bar (y);