arm: fix typo in dg-require-effective-target [PR118089]
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-95.c
blobb0936be5e7756b2484352ca2993ebf2a730cf9db
1 /* PR100112 and dups. */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-fre1-details -fdump-tree-optimized" } */
5 int *c, *b;
6 void foo()
8 int *tem = b;
9 *tem = 0;
10 int *footem = c;
11 c = footem;
14 void bar()
16 int *tem = b;
17 int *bartem = c;
18 *tem = 0;
19 c = bartem;
22 /* We should elide the redundant store in foo, in bar it is not redundant since
23 the *tem = 0 store might alias. */
24 /* { dg-final { scan-tree-dump "Deleted redundant store c = footem" "fre1" } } */
25 /* { dg-final { scan-tree-dump "c = bartem" "optimized" } } */