view gcc/testsuite/gcc.dg/div-cmp-2.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-O2 -funsafe-math-optimizations -ffinite-math-only -fdump-tree-optimized-raw" } */

int
cmp_1 (float x)
{
  return 5 / x >= 0;
}

int
cmp_2 (float x)
{
  return 1 / x <= 0;
}

int
cmp_3 (float x)
{
  return -2 / x >= 0;
}

int
cmp_4 (float x)
{
  return -5 / x <= 0;
}

/* { dg-final { scan-tree-dump-not "rdiv_expr" "optimized" } } */