blob: 973baacbb18dc46b2a4173c9c613a34f58ac3075 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized" } */
/* { dg-require-effective-target int128 } */
/* We can not get rid of comparison in tests below because of
potential overflow exception.
TODO: enable when -fno-trapping-math. */
int foo(__int128_t x) {
/* { dg-final { scan-tree-dump "\\(float\\)" "optimized" } } */
return (float) x != 0;
}