https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64313
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- Created attachment 34485 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34485&action=edit patch The middle-end approach, testing on x86_64-linux, verified that it fixes the testcase on aarch64-elf.