Hi Sebastian, > Please find attached the patch amended following your recommendations. > The number of new functions for _sync is reduced by 3x. > I tested the patch on Graviton2 aarch64-linux. > I also checked by hand that the outline functions in libgcc look similar to > what GCC produces for the inline version.
Yes this looks good to me (still needs maintainer approval). One minor nitpick, a few of the tests check for __aarch64_cas2 - this should be __aarch64_cas2_sync. Note the patch still needs an appropriate commit message. Cheers, Wilco