libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-84.c
blob6c3832bc2947e217a4b3cb7b5a0186af6df8029d
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre1" } */
4 typedef int v4si __attribute__((vector_size(16)));
6 void foo (v4si *dst, int x)
8 v4si v[2];
9 v[0][0] = 1;
10 v[0][1] = x;
11 v[0][2] = 2;
12 v[0][3] = 3;
13 v[0][1] = 0;
14 *dst = v[0];
17 /* The shadowed non-constant assign to v[0][1] shouldn't prevent us from
18 value-numbering the load to a constant. */
19 /* { dg-final { scan-tree-dump "\\*dst_\[0-9\]*\\\(D\\) = { 1, 0, 2, 3 };" "fre1" } } */