https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94567
--- Comment #11 from Jeffrey A. Law <law at redhat dot com> --- Rather than extending that hack, I think just widening the mode when the sign bit is being tested (c#5) is simpler and easier to understand. The bits you're changing should be killed rather than extended to handle more cases.