Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/torture/ppc-ldst-array.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 | |
12 void 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 } |