[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr92796.c
blob1e671e175def48d9ade3c585d961881779cd140a
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fstack-protector-strong -mdejagnu-cpu=power8" } */
3 /* { dg-require-effective-target ppc_ieee128_ok } */
5 typedef union
7 __ieee128 a;
8 int b;
9 } c;
11 __ieee128
12 d (__ieee128 x)
14 __ieee128 g;
15 c h;
16 h.a = x;
17 g = h.b & 5;
18 h.b = g;
19 if (g)
20 return x - x;
21 return h.a;