libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / store_merging_30.c
blobbaf94efe733d43b98303aaff20806905487b0e30
1 /* PR tree-optimization/94573 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target store_merge } */
4 /* { dg-options "-O2 -fno-tree-vectorize -fdump-tree-store-merging-details" } */
5 /* { dg-final { scan-tree-dump "New sequence of 4 stores to replace old one of 8 stores" "store-merging" { target lp64 } } } */
7 int var[43][12];
9 void
10 foo (int x)
12 var[x][0] = 0;
13 var[x][1] = 0;
14 var[x][2] = 0;
15 var[x][3] = 0;
16 var[x][4] = 0;
17 var[x][5] = 0;
18 var[x][6] = 0;
19 var[x][7] = 0;