OSDN Git Service

* lib/gcc-dg.exp (dg-skip-if): New function.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / ppc-vector-memset.c
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-options "-O -maltivec" } */
3 /* { dg-final { scan-assembler "stvx" } } */
4
5 #include <string.h>
6
7 void foo(void)
8 {
9   int x[8] __attribute__((aligned(128)));
10   memset (x, 0, sizeof (x));
11   bar (x);
12 }