https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114597
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The value that goes into the second operand of the inline-asm is correct. But since you don't mark the inline-asm as reading the memory location, gcc thinks you are not reading it (which is correct based on the definition of how inline-asm works). So invalid.