OSDN Git Service

* lib/target-supports.exp (check_effective_target_powerpc_spu):
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / powerpc / ppc-vector-memcpy.c
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-options "-O -maltivec" } */
4 /* { dg-final { scan-assembler "lvx" } } */
5
6 void foo(void)
7 {
8   int x[8] __attribute__((aligned(128))) = { 1, 1, 1, 1, 1, 1, 1, 1 };
9   bar (x);
10 }