summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/spe-vector-memset.c
blob: 7ecaf1037064ca2278275b793c1c0ac963b5ae52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_spe } */
/* { dg-options "-O -mspe=yes" } */
/* { dg-final { scan-assembler "evstdd" } } */

#include <string.h>

void foo(void)
{
  int x[8] __attribute__((aligned(64)));
  memset (x, 0, sizeof (x));
  bar (x);
}