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