summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ppc-vector-memset.c
blob: 615a025f0d08287ca728ecf3abcfe79e3c95831e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile { target powerpc*-*-* } } */
/* { 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);
}