GIMPLE store merging pass
[official-gcc.git] / gcc / testsuite / gcc.dg / store_merging_5.c
blob4ffe512b842b81d97d0158cb765669758c5ff898
1 /* { dg-do compile } */
2 /* { dg-require-effective-target non_strict_align } */
3 /* { dg-options "-O2 -fdump-tree-store-merging" } */
5 /* Make sure that non-aliasing non-constant interspersed stores do not
6 stop chains. */
8 struct bar {
9 int a;
10 char b;
11 char c;
12 char d;
13 char e;
14 char g;
17 void
18 foo1 (struct bar *p, char tmp)
20 p->a = 0;
21 p->b = 0;
22 p->g = tmp;
23 p->c = 0;
24 p->d = 0;
25 p->e = 0;
29 /* { dg-final { scan-tree-dump-times "Merging successful" 1 "store-merging" } } */
30 /* { dg-final { scan-tree-dump-times "MEM\\\[.*\\\]" 1 "store-merging" } } */