[LLVMbugs] [Bug 5891] New: unsupported inline asm: input with type * matching output with type *

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Dec 27 07:26:30 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=5891

           Summary: unsupported inline asm: input with type * matching
                    output with type *
           Product: libraries
           Version: 2.6
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jirislaby at gmail.com
                CC: llvmbugs at cs.uiuc.edu


int x(void)
{
        unsigned long in;
        int out;
        asm("insn %0" : "=r" (out) : "0" (in));

        return out;
}

$ clang -S -o /dev/null d.c -O2
d.c:5:36: error: unsupported inline asm: input with type 'unsigned long'
matching output with type 'int'
        asm("insn %0" : "=r" (out) : "0" (in));
                              ~~~         ^~
1 diagnostic generated.

$ llvm-gcc -S -o /dev/null d.c -O2 
d.c: In function 'x':
d.c:5: error: unsupported inline asm: input constraint with a matching output
constraint of incompatible type!



No specs say, that back-references must have the same size. They refer solely
to the constraints.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list