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

#include <string.h>

void bar (int *);

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