aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/ppc-vector-memset.c
blob: 1a290719c321c0a2006e2bb47851d412b2f47de8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O -maltivec" } */
/* { dg-final { scan-assembler "stvx" } } */

#include <string.h>

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