Debian Codegraph @

gcc/testsuite/g++.dg/torture/ppc-ldst-array.C

raw
1 /* { dg-do compile { target { powerpc64*-*-* } } } */
2 /* { dg-options "-mdejagnu-cpu=power8" } */
3
4 /* When compiled with C++, this code was breaking because of different
5 tree representations of arrays between C and C++. */
6
7 #include <altivec.h>
8
9 extern vector float vf;
10
11 void foo ()
12 {
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);
17 }