gcc/testsuite/gcc.target/powerpc/pr92796.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fstack-protector-strong -mdejagnu-cpu=power8" } */ |
| 3 | /* { dg-require-effective-target ppc_ieee128_ok } */ |
| 4 | |
| 5 | typedef union |
| 6 | { |
| 7 | __ieee128 a; |
| 8 | int b; |
| 9 | } c; |
| 10 | |
| 11 | __ieee128 |
| 12 | d (__ieee128 x) |
| 13 | { |
| 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; |
| 22 | } |