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

--- Comment #2 from Jiahao Xu <xujiahao at gcc dot gnu.org> ---
My previous understanding was wrong.  When SHIFT_COUNT_TRUNCATED is nonzero,
shift-count truncation should be handled by the shift instructions or library
routines themselves, rather than by the caller.

Fixing this by unconditionally truncating the shift count in libgcc (__lshrdi3,
__ashldi3, and __ashrdi3).  Posted v2 patch:
https://gcc.gnu.org/pipermail/gcc-patches/2026-December/742129.html

Reply via email to