gcc/testsuite/gcc.dg/dfp/pr97439.c
raw| 1 | // { dg-options "-O1" } |
| 2 | |
| 3 | static int |
| 4 | foo(_Decimal128 x, _Decimal128 y) |
| 5 | { |
| 6 | if (x > y) |
| 7 | return 1; |
| 8 | |
| 9 | return 0; |
| 10 | } |
| 11 | |
| 12 | int __attribute__((noinline)) |
| 13 | bar(_Decimal128 x) |
| 14 | { |
| 15 | return foo (x, -1.0DL * __builtin_infd32()); |
| 16 | } |
| 17 | |
| 18 | int |
| 19 | main (void) |
| 20 | { |
| 21 | int res = bar (0.0DL); |
| 22 | if (res != 1) |
| 23 | __builtin_abort (); |
| 24 | |
| 25 | return 0; |
| 26 | } |