Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/store_merging_27.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* PR tree-optimization/88709 */ | |
2 /* { dg-do run } */ | |
3 /* { dg-require-effective-target store_merge } */ | |
4 /* { dg-options "-O2 -fdump-tree-store-merging-details" } */ | |
5 /* { dg-final { scan-tree-dump "New sequence of \[12] stores to replace old one of 3 stores" "store-merging" } } */ | |
6 | |
7 struct S { char buf[8]; }; | |
8 | |
9 __attribute__((noipa)) void | |
10 bar (struct S *x) | |
11 { | |
12 int i; | |
13 for (i = 0; i < 8; i++) | |
14 if (x->buf[i] != ((i == 1) + (i == 3) * 2)) | |
15 __builtin_abort (); | |
16 } | |
17 | |
18 int | |
19 main () | |
20 { | |
21 __attribute__((aligned(8))) struct S s = {}; | |
22 s.buf[1] = 1; | |
23 s.buf[3] = 2; | |
24 bar (&s); | |
25 return 0; | |
26 } |