* gcc.target/powerpc/ppc-vector-memcpy.c: Test use of VMX for memcpy
not initializers.
From-SVN: r201265
+2013-07-26 David Edelsohn <dje.gcc@gmail.com>
+
+ * gcc.target/powerpc/ppc-vector-memcpy.c: Test use of VMX for
+ memcpy not initializers.
+
2013-07-26 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/57101
/* { dg-options "-O -maltivec -mno-vsx" } */
/* { dg-final { scan-assembler "lvx" } } */
+#include <string.h>
+
void foo(void)
{
- int x[8] __attribute__((aligned(128))) = { 1, 1, 1, 1, 1, 1, 1, 1 };
- bar (x);
+ extern int x[8] __attribute__((aligned(128)));
+ int y[8] __attribute__((aligned(128)));
+ memcpy (y, x, sizeof (x));
+ bar (y);
}