Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/fold-copysign-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O -fdump-tree-cddce1" } */ | |
3 | |
4 double foo (double x) | |
5 { | |
6 double one = 1.; | |
7 return __builtin_copysign (x, one); | |
8 } | |
9 double bar (double x) | |
10 { | |
11 double minuszero = -0.; | |
12 return __builtin_copysign (x, minuszero); | |
13 } | |
14 | |
15 /* { dg-final { scan-tree-dump-times "= -" 1 "cddce1" } } */ | |
16 /* { dg-final { scan-tree-dump-times "= ABS_EXPR" 2 "cddce1" } } */ |