libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr98287.c
blob031442850c6cdd4b78ef6ec5568edd574fb29878
1 /* PR tree-optimization/98287 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fno-tree-ccp -fno-tree-forwprop -Wno-psabi -w" } */
5 typedef unsigned long __attribute__((__vector_size__ (8))) V;
6 V v;
8 static __attribute__((noinline, noclone)) V
9 bar (unsigned short s)
11 return v >> s << s | v >> s >> 63;
14 unsigned long
15 foo (void)
17 V x = bar (1);
18 return x[0];