https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128699

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2026-11-24
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
_BitInt(255)
foo (_BitInt(255) a)
{
  return -a;
}

int
bar (int t)
{
  return (_BitInt(192)) (unsigned _BitInt(129)) foo (t) / 2;
}

ICEs similarly on x86_64.  There are way too many casts:
  _1 = (_BitInt(255)) t_5(D);
  _7 = -_1;
  _2 = (unsigned _BitInt(129)) _7;
  _3 = (_BitInt(192)) _2;
  _4 = _3 >> 1;
and seems we decide to handle everything above together in one loop - only _4
gets a partition and underlying variable.

int
foo (int t)
{
  _BitInt(255) b = t;
  _BitInt(255) c = -b;
  return (_BitInt(192)) (unsigned _BitInt(129)) c / 2;
}
ICEs too, so it isn't about inlining adding stuff that isn't cleaned up.  Of
course, promotion/demotion pass would be able to narrow the first 2 to unsigned
_BitInt(129) rather than 255.

Reply via email to