(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr83364.c
       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  }