annotate gcc/testsuite/gcc.dg/store_merging_5.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-require-effective-target store_merge } */
kono
parents:
diff changeset
3 /* { dg-options "-O2 -fdump-tree-store-merging" } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 /* Make sure that non-aliasing non-constant interspersed stores do not
kono
parents:
diff changeset
6 stop chains. */
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 struct bar {
kono
parents:
diff changeset
9 int a;
kono
parents:
diff changeset
10 char b;
kono
parents:
diff changeset
11 char c;
kono
parents:
diff changeset
12 char d;
kono
parents:
diff changeset
13 char e;
kono
parents:
diff changeset
14 char g;
kono
parents:
diff changeset
15 };
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 void
kono
parents:
diff changeset
18 foo1 (struct bar *p, char tmp)
kono
parents:
diff changeset
19 {
kono
parents:
diff changeset
20 p->a = 0;
kono
parents:
diff changeset
21 p->b = 0;
kono
parents:
diff changeset
22 p->g = tmp;
kono
parents:
diff changeset
23 p->c = 0;
kono
parents:
diff changeset
24 p->d = 0;
kono
parents:
diff changeset
25 p->e = 0;
kono
parents:
diff changeset
26 }
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
29 /* { dg-final { scan-tree-dump-times "Merging successful" 1 "store-merging" } }
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
30 { dg-final { scan-tree-dump-times "MEM\\\[.*\\\]" 1 "store-merging" { target { ! store_merge } } } }
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
31 { dg-final { scan-tree-dump-times "MEM <unsigned int> \\\[.*\\\]" 1 "store-merging" { target { store_merge && ilp32 } } } }
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
32 { dg-final { scan-tree-dump-times "MEM <unsigned long> \\\[.*\\\]" 1 "store-merging" { target { store_merge && lp64 } } } } */