https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128997
Jeffrey A. Law <law at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[15/16/17 Regression] |[14/15/16 Regression]
|riscv64: wrong code at -Os: |riscv64: wrong code at -Os:
|(int)(g >> 16) is 0 for an |(int)(g >> 16) is 0 for an
|__int128 g of 1 << 16 |__int128 g of 1 << 16
--- Comment #3 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Fixed on the trunk. Markers updated appropriately. Given the core bug is
actually older then gcc-15, I'm adding gcc-14 marker as well since this is a
good backport candidate.