Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / tree-ssa / ssa-dse-7.c
blob77e4a6246f32f42a07038ae10e169ba09c2c3ee0
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-dse1" } */
4 int glob1, glob2;
6 int foo1 (void)
8 glob1 = 0;
9 glob2 = 1;
10 glob1 = 2;
11 glob2 = 3;
12 return glob1 + glob2;
17 /* There should only be one assignment to glob1 and glob2, the final
18 return statement should just return a constant. */
19 /* { dg-final { scan-tree-dump-times "glob1 = " 1 "dse1"} } */
20 /* { dg-final { scan-tree-dump-times "glob2 = " 1 "dse1"} } */
21 /* { dg-final { scan-tree-dump-times "return 5" 1 "dse1"} } */
23 /* { dg-final { cleanup-tree-dump "dse1" } } */