1 /* { dg-do compile { target { powerpc64*-*-* } } } */ 2 /* { dg-skip-if "do not override mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */ 3 /* { dg-options "-mcpu=power8" } */ 4 5 /* When compiled with C++, this code was breaking because of different 6 tree representations of arrays between C and C++. */ 7 8 #include <altivec.h> 9 10 extern vector float vf; 11 foo()12void foo () 13 { 14 float __attribute__((aligned (16))) x[4]; 15 float __attribute__((aligned (16))) y[4]; 16 vf = vec_ld (0, x); 17 vec_st (vf, 0, y); 18 } 19