https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114843
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note I just happened to finish a build of aarch64 so I was able to create the preprocessed source of unwind-dw2.i really quick. And then I just read the aarch64.cc to see the saving of x0 happened due to __builtin_eh_return . That is how I got a testcase so quickly. If I read the assembly correctly a few other targets are broken too; let me file a bug report for each of them ..