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: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Aug 2003 13:39:48 -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
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From pinskia at physics dot uc dot edu 2003-08-06 13:39 -------
The code is wrong still you need to mark out as clobber early or in/out constraint.
This code produces the expected results:
int main() {
unsigned long long int a,b;
asm ("\n"
".intel_syntax noprefix\n"
" pxor %[out], %[out]\n"
" paddb %[out], %[in]\n"
: [out] "+y" (a)
: [in] "y" (b)
);
}