(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.c-torture/
execute/
pr65053-2.c
       1  /* PR tree-optimization/65053 */
       2  
       3  int i;
       4  unsigned int x;
       5  
       6  int
       7  main ()
       8  {
       9    asm volatile ("" : "+g" (x));
      10    unsigned int n = x;
      11    unsigned int u = 32;
      12    if (n >= 32)
      13      __builtin_abort ();
      14    if (n != 0)
      15      u = n + 32;
      16  
      17    while (u != 32)
      18      {
      19        asm ("" : : "g" (u));
      20        u = 32;
      21        i = 1;
      22      }
      23  
      24    if (i)
      25      __builtin_abort ();
      26    return 0;
      27  }