PR target/83368
[official-gcc.git] / gcc / testsuite / gcc.dg / pr83364.c
blob6d38e40ca517de9da970fbec8b8ac174021a12f5
1 /* PR rtl-optimization/83364 */
2 /* { dg-do run } */
3 /* { dg-options "-O -fno-forward-propagate -fno-tree-coalesce-vars -fno-tree-ter" } */
5 int a;
7 static int __attribute__ ((noinline, noclone))
8 foo (unsigned char c)
10 c <<= (long long) c != a;
11 c = c << 7 | c >> 1;
12 return c;
15 int
16 main ()
18 asm volatile ("" : : : "memory");
19 if (foo (0) != 0)
20 __builtin_abort ();
21 return 0;