https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84861
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The problem is the top level asm does not go in the same partition as the functions which use the functions defined in the inline asm. There might be another bug about this already.