https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102448
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Tamar Christina from comment #2) > I have double checked the revision and it does start happening with it. > > Though I can only reproduce it with -flto. the codegen without lto seems > the same. > > Any ideas how to debug further? Since you identified the offending assembler see what's the corresponding source portion - there look at the .optimized gimple dumps and see when the bad code was introduced. I'll see if the issue reproduces on x86_64. What options are you using for aarch64 besides -flto and which -march?