[Bug inline-asm/97708] Inline asm does not use the local register asm specified with register ... asm() as input
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 3 20:10:39 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97708
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> ---
"g" constraint won't work here:
‘g’
Any register, memory or immediate integer operand is allowed, except for
registers that are not general registers.
---- CUT ---
Notice the last part: "registers that are not general register".
You need to use the "x" constraint here which is for sse register.
More information about the Gcc-bugs
mailing list