(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.c-torture/
execute/
pr84169.c
       1  /* PR rtl-optimization/84169 */
       2  
       3  #ifdef __SIZEOF_INT128__
       4  typedef unsigned __int128 T;
       5  #else
       6  typedef unsigned long long T;
       7  #endif
       8  
       9  T b;
      10  
      11  static __attribute__ ((noipa)) T
      12  foo (T c, T d, T e, T f, T g, T h)
      13  {
      14    __builtin_mul_overflow ((unsigned char) h, -16, &h);
      15    return b + h;
      16  }
      17  
      18  int
      19  main ()
      20  {
      21    T x = foo (0, 0, 0, 0, 0, 4);
      22    if (x != -64)
      23      __builtin_abort ();
      24    return 0;
      25  }