middle-end: copy STMT_VINFO_STRIDED_P when DR is replaced [PR116956]
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / ssa-fre-7.c
blobdaf770a45c92bf3c9c00ef0e42597edb3ecaa443
1 /* { dg-do compile } */
2 /* { dg-require-effective-target int32 } */
3 /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
4 /* { dg-additional-options "-fgimple -fdump-tree-fre1" } */
6 typedef int v4si __attribute__((vector_size(16)));
8 int __GIMPLE (ssa,startwith("fre"))
9 foo (int c)
11 int * p;
12 int i;
13 int x[4];
14 __SIZETYPE__ _1;
15 __SIZETYPE__ _2;
16 int _7;
17 v4si _6;
19 __BB(2):
20 i_3 = 0;
21 _1 = (long unsigned int) i_3;
22 _2 = _1 * 4ul;
23 p_4 = _Literal (int *) &x + _2;
24 _6 = _Literal (v4si) { c_5(D), c_5(D), c_5(D), c_5(D) };
25 __MEM <v4si> ((v4si *)p_4) = _6;
26 _7 = x[0];
27 return _7;
30 /* { dg-final { scan-tree-dump "return c_5\\(D\\);" "fre1" } } */