libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / copy-sign-3.c
blobf52e04d229301029a7f93e6c985ca88cddee4ef4
1 /* PR tree-optimization/96715 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 /* { dg-final { scan-tree-dump-not "= __builtin_copysign" "optimized" } } */
5 /* { dg-final { scan-tree-dump-times " = -x_\[0-9]*\\(D\\)" 3 "optimized" } } */
7 float
8 foo (float x)
10 return __builtin_copysignf (x, -x);
13 double
14 bar (double x)
16 return __builtin_copysign (x, -x);
19 long double
20 baz (long double x)
22 return __builtin_copysignl (x, -x);