https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80808 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Can you try adding "flags" as a clobber on those inline-asm. I suspect that might causing something here.