https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103882
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |inline-asm Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- You either need to mark fail as noinline or you need to use extended inline-asm to mark a0 as clobbered in the inline-asm. Or you need to have the inline-asm save/restore a0.