aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/powerpc/ppc-vector-memcpy.c
blob: 7d4207ff751010015bda448e2dbff4bcc96d1560 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O -maltivec -mno-vsx" } */
/* { dg-final { scan-assembler "lvx" } } */

#include <string.h>

void foo(void)
{
  extern int x[8] __attribute__((aligned(128)));
  int y[8] __attribute__((aligned(128)));
  memcpy (y, x, sizeof (x));
  bar (y);
}