https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85546
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- I think this is a misconception of what a volatile asm is. Volatile says there may be additional side-effects the asm performs - it does _not_ mean the output depends on more than the inputs. Note I can't reproduce your findings but your instructions for reproduction are somewhat incomplete.