PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-copysign-1.c
blobf17d65c24ee4dca9867827d040fe0a404c515e7b
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-cddce1" } */
4 double foo (double x)
6 double one = 1.;
7 return __builtin_copysign (x, one);
9 double bar (double x)
11 double minuszero = -0.;
12 return __builtin_copysign (x, minuszero);
15 /* { dg-final { scan-tree-dump-times "= -" 1 "cddce1" } } */
16 /* { dg-final { scan-tree-dump-times "= ABS_EXPR" 2 "cddce1" } } */