Add qdf24xx base tuning support.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / recip-2.c
blob32820d4ade10b23587004821278ac596a4944920
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -funsafe-math-optimizations -fdump-tree-recip" } */
4 float u, v, w, x, y, z;
6 void e(float a, float b, float c, float d, float e, float f)
8 if (a < b)
10 a = a + b;
11 c = c + d;
14 /* The PHI nodes for these divisions should be combined. */
15 d = d / a;
16 e = e / a;
17 f = f / a;
19 a = a / c;
20 b = b / c;
22 /* This should not be left as a multiplication. */
23 c = 1 / c;
25 u = a;
26 v = b;
27 w = c;
28 x = d;
29 y = e;
30 z = f;
33 /* { dg-final { scan-tree-dump-times " / " 2 "recip" } } */
34 /* { dg-final { scan-tree-dump-times " \\* " 5 "recip" } } */