Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/negminus.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O -fno-rounding-math -fno-signed-zeros -fdump-tree-optimized-raw" } */ double f(double a, double b){ double c = a - b; return -c; } int g(unsigned x){ unsigned y = ~x; int z = (int) y; return -z; } unsigned h(unsigned a, unsigned b, unsigned c){ unsigned d = b - c; unsigned e = a + d; return -e; } /* { dg-final { scan-tree-dump-not "negate_expr" "optimized"} } */