* tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / mult-abs-2.c
blobd74ba2fe630924dc76006d0c32040a37ec321caf
1 /* { dg-do compile } */
2 /* { dg-require-effective-target c99_runtime } */
3 /* { dg-options "-O2 -ffast-math -fdump-tree-gimple" } */
4 /* { dg-add-options c99_runtime } */
6 float f(float x)
8 return x * (x > 0.f ? -1.f : 1.f);
10 float f1(float x)
12 return x * (x > 0.f ? 1.f : -1.f);
14 float g(float x)
16 return x * (x >= 0.f ? -1.f : 1.f);
18 float g1(float x)
20 return x * (x >= 0.f ? 1.f : -1.f);
22 float h(float x)
24 return x * (x < 0.f ? -1.f : 1.f);
26 float h1(float x)
28 return x * (x < 0.f ? 1.f : -1.f);
30 float i(float x)
32 return x * (x <= 0.f ? -1.f : 1.f);
34 float i1(float x)
36 return x * (x <= 0.f ? 1.f : -1.f);
38 /* { dg-final { scan-tree-dump-times "ABS" 8 "gimple"} } */