(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr68671.c
       1  /* PR tree-optimization/68671 */
       2  /* { dg-do run } */
       3  /* { dg-options " -O2 -fno-tree-dce" } */
       4  
       5  volatile int a = -1;
       6  volatile int b;
       7  
       8  static inline int
       9  fn1 (signed char p1, int p2)
      10  {
      11    return (p1 < 0) || (p1 > (1 >> p2)) ? 0 : (p1 << 1);
      12  }
      13  
      14  int
      15  main ()
      16  {
      17    signed char c = a;
      18    b = fn1 (c, 1);
      19    c = ((128 | c) < 0 ? 1 : 0);
      20    if (c != 1)
      21      __builtin_abort ();
      22    return 0;
      23  }