This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug inline-asm/11819] rejects-valid: GCC inline assembler rejects valid MMX constraints


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]