https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67145
--- Comment #15 from Segher Boessenkool <segher at gcc dot gnu.org> --- Thanks Richard, that is a much safer solution for now. FWIW, your original patch regressed at least code generation for 0xffffffff00000000ULL - a on powerpc (-m32), and various other things change (although the end result is the same for trivial testcases). It's not just rs6000 btw, at least the sh backend has the same issues.