gcc/testsuite/gcc.dg/tree-ssa/pr81744.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 -fno-tree-loop-vectorize -fno-tree-slp-vectorize -fno-inline -fdump-tree-pcom-details" } */ |
| 3 | |
| 4 | typedef struct { |
| 5 | int a, b; |
| 6 | } CompandSegment; |
| 7 | int a; |
| 8 | CompandSegment *b; |
| 9 | void fn1() { |
| 10 | for (; a; a++) |
| 11 | b[a].a = b[a].b = b[a - 1].a = b[a - 1].b = 0; |
| 12 | } |
| 13 | /* { dg-final { scan-tree-dump-times "Store-stores chain" 2 "pcom"} } */ |