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


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)
        );
}


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