[LLVMbugs] [Bug 3862] New: Invalid operand for inline asm constraint 'I'!

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Mar 23 07:43:52 PDT 2009


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

           Summary: Invalid operand for inline asm constraint 'I'!
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: ARM
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: ed at 80386.nl
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 3696


After some experimenting with cross compilation to the ARM, I'm seeing this
compiler error:

Invalid operand for inline asm constraint 'I'!

I suspect this is the offending macro:

#define __with_interrupts_disabled(expr) \
        do {                                            \
                u_int cpsr_save, tmp;                   \
                                                        \
                __asm __volatile(                       \
                        "mrs  %0, cpsr;"                \
                        "orr  %1, %0, %2;"              \
                        "msr  cpsr_all, %1;"            \
                        : "=r" (cpsr_save), "=r" (tmp)  \
                        : "I" (I32_bit | F32_bit)               \
                        : "cc" );               \
                (expr);                         \
                 __asm __volatile(              \
                        "msr  cpsr_all, %0"     \
                        : /* no output */       \
                        : "r" (cpsr_save)       \
                        : "cc" );               \
        } while(0)


-- 
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