https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104688
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Besides missing AMD response, it isn't fully fixed, because the change is on the libatomic side only. So we still pay the cost to call those functions (and often PLT cost too) and return from them. For GCC 13, we should add some option that optionally reverts the change to use library calls all the time, and default that option for -march= Intel CPUs with AVX support or something similar (perhaps only if AVX is also enabled).