https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100056
--- Comment #6 from Luc Van Oostenryck <luc.vanoostenryck at gmail dot com> --- (In reply to Jakub Jelinek from comment #3) > Created attachment 50583 [details] > gcc11-pr100056.patch > > Untested fix. OTOH, for the signed case things seems to be OK unless the sign extension is one of the register sizes (8, 16 & 32). See the updated testcases in attachment.