view gcc/testsuite/c-c++-common/pr57371-3.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { 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;
}