Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / tree-ssa / 20040204-1.c
blob219dde9e9c9a634a4df26e177abfa16f751c3a4c
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
4 extern void link_error (void);
6 /*
7 test that a condition is propagated inside an if
8 */
10 void test5 (int x)
12 extern int foo (int);
13 if (x == 0)
14 foo (x);
15 else if (x == 0 )
16 link_error ();
19 void test55 (int x, int y)
21 int u;
22 if (x == 5 && y)
24 u = x + 22;
25 if (u != 27)
26 link_error ();
30 /* There should be not link_error calls, if there is any the
31 optimization has failed */
32 /* ??? Ug. This one may or may not fail based on how fold decides
33 that the && should be emitted (based on BRANCH_COST). Fix this
34 by teaching dom to look through && and register all components
35 as true. */
36 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail { ! "powerpc*-*-* cris-*-* mmix-*-*" } } } } */
37 /* { dg-final { cleanup-tree-dump "optimized" } } */