comparison gcc/testsuite/gcc.dg/pr83364.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 /* PR rtl-optimization/83364 */
2 /* { dg-do run } */
3 /* { dg-options "-O -fno-forward-propagate -fno-tree-coalesce-vars -fno-tree-ter" } */
4
5 int a;
6
7 static int __attribute__ ((noinline, noclone))
8 foo (unsigned char c)
9 {
10 c <<= (long long) c != a;
11 c = c << 7 | c >> 1;
12 return c;
13 }
14
15 int
16 main ()
17 {
18 asm volatile ("" : : : "memory");
19 if (foo (0) != 0)
20 __builtin_abort ();
21 return 0;
22 }