annotate gcc/testsuite/gcc.dg/store_merging_7.c @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +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 /* Check that we can merge consecutive array members through the pointer.
kono
parents:
diff changeset
6 PR rtl-optimization/23684. */
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 void
kono
parents:
diff changeset
9 foo (char *input)
kono
parents:
diff changeset
10 {
kono
parents:
diff changeset
11 input = __builtin_assume_aligned (input, 8);
kono
parents:
diff changeset
12 input[0] = 'H';
kono
parents:
diff changeset
13 input[1] = 'e';
kono
parents:
diff changeset
14 input[2] = 'l';
kono
parents:
diff changeset
15 input[3] = 'l';
kono
parents:
diff changeset
16 input[4] = 'o';
kono
parents:
diff changeset
17 input[5] = ' ';
kono
parents:
diff changeset
18 input[6] = 'w';
kono
parents:
diff changeset
19 input[7] = 'o';
kono
parents:
diff changeset
20 input[8] = 'r';
kono
parents:
diff changeset
21 input[9] = 'l';
kono
parents:
diff changeset
22 input[10] = 'd';
kono
parents:
diff changeset
23 input[11] = '\0';
kono
parents:
diff changeset
24 }
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 /* { dg-final { scan-tree-dump-times "Merging successful" 1 "store-merging" } } */