[LLVMbugs] [Bug 11853] New: ARM: IT instruction rejected in inline asm

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 25 06:48:54 PST 2012


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

             Bug #: 11853
           Summary: ARM: IT instruction rejected in inline asm
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: mans at mansr.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Inline asm statements using the Thumb2 IT instruction are rejected.

Simple test case:
void foo(void)
{
    __asm__ ("it    eq     \n"
             "moveq r0, r0 \n");
}

Error:
it.c:3:14: error: invalid operand for instruction
    __asm__ ("it    eq     \n"
             ^
<inline asm>:1:8: note: instantiated into assembly here
        it    eq     
              ^
1 error generated.

Although a Thumb2 instruction, the IT mnemonic shall be permitted in
ARM mode, and the condition verified to match the condition code(s)
on the following instruction(s).

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