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] New: 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

           Summary: rejects-valid: GCC inline assembler rejects valid MMX
                    constraints
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: inline-asm
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bkausbk at web dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: GCC 3.3
  GCC host triplet: x86 - Cygwin (Windows XP)
GCC target triplet: x86 - Cygwin

GCC 3.3 rejects valid MMX contraints in inline assembler

Following source should be possible:
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)
);

GCC returns:

mmx.c:2: error: impossible constraint in `asm'


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