(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
lto/
pr109778_0.c
       1  /* PR tree-optimization/109778 */
       2  /* { dg-lto-do run } */
       3  /* { dg-lto-options { "-O2 -flto" } } */
       4  /* { dg-require-effective-target int32 } */
       5  
       6  int bar (int);
       7  
       8  __attribute__((noipa)) int
       9  foo (int x)
      10  {
      11    x = bar (x);
      12    x = (x << 16) | (int) ((unsigned) x >> 16);
      13    return x & 0x10000000;
      14  }
      15  
      16  int
      17  main ()
      18  {
      19    if (foo (0) || foo (-1))
      20      __builtin_abort ();
      21    return 0;
      22  }