2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-cstvecshift.c
blob51f42d42bc1bcbe0d2df92cb5dc56b1113bf8b68
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"} } */
13 /* { dg-final { cleanup-tree-dump "ccp1" } } */