gcc/testsuite/c-c++-common/pr57371-3.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O -fdump-tree-optimized" } */ |
| 3 | /* { dg-require-effective-target int128 } */ |
| 4 | |
| 5 | /* We can not get rid of comparison in tests below because of |
| 6 | potential overflow exception. |
| 7 | |
| 8 | TODO: enable when -fno-trapping-math. */ |
| 9 | |
| 10 | int foo(__int128_t x) { |
| 11 | /* { dg-final { scan-tree-dump "\\(float\\)" "optimized" } } */ |
| 12 | return (float) x != 0; |
| 13 | } |