2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr48226.c
blobedd71c619100df51b02388b735411b312979a318
1 /* { dg-do compile } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
5 /* { dg-options "-O3 -mcpu=power7" } */
7 /* The bug shows up if you compile with -maltivec or -mcpu=power7, due to one
8 of the vector's being eliminated due to rs6000_macro_to_expand being called
9 recursively. */
11 struct vector {
12 float v[4];
15 struct vector vector = { 1.0, 2.0, 3.0, 4.0 };