[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr48226.c
blobb0d1541621a9476074ebd388a0a3f33e321864c1
1 /* { dg-do compile } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-options "-O3 -mdejagnu-cpu=power7" } */
6 /* The bug shows up if you compile with -maltivec or -mcpu=power7, due to one
7 of the vector's being eliminated due to rs6000_macro_to_expand being called
8 recursively. */
10 struct vector {
11 float v[4];
14 struct vector vector = { 1.0, 2.0, 3.0, 4.0 };