aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/pr57371-3.c
blob: 973baacbb18dc46b2a4173c9c613a34f58ac3075 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { 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;
}