[Bug inline-asm/11819] rejects-valid: GCC inline assembler rejects valid MMX constraints
bkausbk at web dot de
gcc-bugzilla@gcc.gnu.org
Wed Aug 6 13:34:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list