https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114437
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
These constraints don't do what think it does.
You can see the behavior by doing:
asm volatile("#%0 %1" : "+m,r"(arg) : : "memory");
You get:
#arg(%rip) .LC0(%rip)
Which is correct as `1` is stored in `.LC0(%rip)`.