[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr84878.c
blobf96d3803d0623ba68da04a16106d91e3ed694132
1 /* PR rtl-optimization/84878 */
2 /* { dg-do compile { target { powerpc*-*-* } } } */
3 /* { dg-require-effective-target powerpc_altivec_ok } */
4 /* { dg-options "-O2 -maltivec -mno-vsx -fmodulo-sched -ftree-vectorize -funroll-loops -fassociative-math -fno-signed-zeros -fno-trapping-math" } */
6 int ek;
7 float zu;
9 int
10 k5 (int ks)
12 while (ek < 1)
14 ks += (int)(0x1000000 + zu + !ek);
15 ++ek;
17 return ks;