Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / c-c++-common / pr57371-3.c
blob973baacbb18dc46b2a4173c9c613a34f58ac3075
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;