Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / torture / ppc-ldst-array.C
blobfef69e7cf0950474fd17ac60dc3e5d71221b46fb
1 /* { dg-do compile { target { powerpc64*-*-* } } } */
2 /* { dg-options "-mdejagnu-cpu=power8" } */
4 /* When compiled with C++, this code was breaking because of different
5    tree representations of arrays between C and C++.  */
7 #include <altivec.h>
9 extern vector float vf;
11 void foo ()
13   float __attribute__((aligned (16))) x[4];
14   float __attribute__((aligned (16))) y[4];
15   vf = vec_ld (0, x);
16   vec_st (vf, 0, y);