gcc/testsuite/gcc.c-torture/execute/ieee/pr119002.c
raw| 1 | /* PR rtl-optimization/119002 */ |
| 2 | |
| 3 | __attribute__((noipa)) unsigned int |
| 4 | foo (void *x, float y, float z) |
| 5 | { |
| 6 | unsigned int a, b; |
| 7 | float c, d, e; |
| 8 | c = y; |
| 9 | d = z; |
| 10 | a = c < d; |
| 11 | d = y; |
| 12 | e = z; |
| 13 | b = d >= e; |
| 14 | a |= b; |
| 15 | return a; |
| 16 | } |
| 17 | |
| 18 | int |
| 19 | main () |
| 20 | { |
| 21 | if (foo ((void *) 0, 0.f, __builtin_nanf (""))) |
| 22 | __builtin_abort (); |
| 23 | } |