Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/fold-copysign-1.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-cddce1" } */ double foo (double x) { double one = 1.; return __builtin_copysign (x, one); } double bar (double x) { double minuszero = -0.; return __builtin_copysign (x, minuszero); } /* { dg-final { scan-tree-dump-times "= -" 1 "cddce1" } } */ /* { dg-final { scan-tree-dump-times "= ABS_EXPR" 2 "cddce1" } } */