https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118572
--- Comment #4 from Peter Damianov <peter0x44 at disroot dot org> --- It gets optimized correctly with `-funsigned-char`, so I think this is something signedness related.
peter0x44 at disroot dot org via Gcc-bugs Mon, 20 Jan 2025 11:26:14 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118572
--- Comment #4 from Peter Damianov <peter0x44 at disroot dot org> --- It gets optimized correctly with `-funsigned-char`, so I think this is something signedness related.