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


bkausbk at web dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


------- Additional Comments From bkausbk at web dot de  2003-08-06 13:34 -------
Ok, -mmmx will compile the code, but compilation is wrong. It will produce 
wrong MMX code. The given file will be compiled as:

	sub	esp, 24
	movq	mm0, QWORD PTR [ebp-16]
/APP
.intel_syntax noprefix
	pxor mm0, mm0
	paddb mm0, mm0
/NO_APP
	movq	QWORD PTR [ebp-24], mm0
	mov	eax, DWORD PTR [ebp-24]
	mov	edx, DWORD PTR [ebp-20]
	mov	DWORD PTR [ebp-8], eax
	mov	DWORD PTR [ebp-4], edx

variable "a" and "b" shouldn't be both assigned to MM0. At least the %[out] 
should be assigned to another MMX register. Also GCC 3.4 produces such code.


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