1 /* PR tree-optimization/98287 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fno-tree-ccp -fno-tree-forwprop -Wno-psabi -w" } */
4 
5 typedef unsigned long __attribute__((__vector_size__ (8))) V;
6 V v;
7 
8 static __attribute__((noinline, noclone)) V
bar(unsigned short s)9 bar (unsigned short s)
10 {
11   return v >> s << s | v >> s >> 63;
12 }
13 
14 unsigned long
foo(void)15 foo (void)
16 {
17   V x = bar (1);
18   return x[0];
19 }
20