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 13:34:50 -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
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.