(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
torture/
pr80620.c
       1  /* { dg-do run } */
       2  /* { dg-require-effective-target int32plus } */
       3  
       4  long long int a = -465274079317386463LL;
       5  int b = 856872806;
       6  int c = -1940894202;
       7  int d = 1718449211;
       8  int e = -392681565;
       9  unsigned long long int f = 13521452247506316486ULL;
      10  int g = -13194608;
      11  
      12  __attribute__((noinline, noclone))
      13  void foo ()
      14  {
      15    if (!a - a)
      16      c = b = 0;
      17    else
      18      d = 3UL * a == 0;
      19    if (g / a)
      20      e = 0 < -a + 500849970701012771LL + (unsigned long) -a;
      21    else
      22      f = 4081116982543369LL & a;
      23  }
      24  
      25  int
      26  main ()
      27  {
      28    asm volatile ("" : : : "memory");
      29    foo ();
      30    if (f != 2818598057803777LL)
      31      __builtin_abort ();
      32    return 0;
      33  }