Commit a882c99f by David Edelsohn Committed by David Edelsohn

ppc-vector-memcpy.c: Test use of VMX for memcpy not initializers.

* gcc.target/powerpc/ppc-vector-memcpy.c: Test use of VMX for memcpy
not initializers.

From-SVN: r201265
parent 89fdc743
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
......
......@@ -3,8 +3,12 @@
/* { 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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment