Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / tree-ssa / pr20139.c
blob054e4b2081c3ebb96f7c5ee4039128f89a2e981a
1 /* PR tree-optimization/20139
2 This testcase is derived from gcc.dg/20020720-1.c. Here we check
3 that the optimization happens at tree level. */
5 /* { dg-do compile } */
6 /* { dg-options "-O2 -fdump-tree-final_cleanup" } */
8 extern double fabs (double);
9 extern void link_error (void);
11 void
12 foo (double x)
14 double p, q;
16 p = fabs (x);
17 q = 0.0;
18 if (p < q)
19 link_error ();
22 /* { dg-final { scan-tree-dump-times "link_error" 0 "final_cleanup" } } */
23 /* { dg-final { cleanup-tree-dump "final_cleanup" } } */