summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/spe-vector-memcpy.c
blob: 09f8134829c87ceff6312eb21e1ab20af60fe81a (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-O -mcpu=8540 -mspe -mabi=spe -mfloat-gprs=single" } */
/* { dg-skip-if "not an SPE target" { ! powerpc_spe_nocache } { "*" } { "" } } */
/* { dg-final { scan-assembler "evstdd" } } */

void foo(void)
{
  int x[8] __attribute__((aligned(64))) = { 1, 1, 1, 1, 1, 1, 1, 1 };
  bar (x);
}