https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116734
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I still think the how the pattern for atomic_compare_and_swapsi is broken which is just causing issues elsewhere. I have no way to test a fix for atomic_compare_and_swapsi though.