This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/11819] rejects-valid: GCC inline assembler rejects valid MMX constraints
- From: "bkausbk at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Aug 2003 14:08:22 -0000
- Subject: [Bug inline-asm/11819] rejects-valid: GCC inline assembler rejects valid MMX constraints
- References: <20030806022500.11819.bkausbk@web.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11819
------- Additional Comments From bkausbk at web dot de 2003-08-06 14:08 -------
But as far as I understand constraints, it should also be possible to use "=y"
constraint.
With "+y" compiler also keep the original value that was stored in "a" before
asm() call. But this isn't needed sometimes. Like it is possible for general
purpose registers it should also be possible for MMX registers. Correct code
for "=y" should be:
movq -16(%ebp), %mm1
/APP
.intel_syntax noprefix
pxor %mm0, %mm0
paddb %mm0, %mm1
/NO_APP
movq %mm0, -8(%ebp)