PR target/83368
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-cstvecshift.c
blob1307d059a5041730e8d9a8f92d1b0a846d07601b
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-ccp1" } */
4 typedef int vec __attribute__ ((vector_size (4 * sizeof (int))));
6 void f (vec *r)
8 vec a = { 2, 3, 4, 5 };
9 *r = (a << 2) >> 1;
12 /* { dg-final { scan-tree-dump "{ 4, 6, 8, 10 }" "ccp1"} } */