[LLVMbugs] [Bug 11855] New: ARM: inline asm does not support pre-UAL conditional LDRH etc

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 25 13:04:23 PST 2012


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

             Bug #: 11855
           Summary: ARM: inline asm does not support pre-UAL conditional
                    LDRH etc
           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


The inline asm parser should accept the old forms of conditional LDRH and
friends, e.g. LDREQH should be an alias for LDRHEQ.  GCC supports _only_
these forms in ARM mode, so this is essential for compatibility.

Test case:
void foo(void)
{
    __asm__ ("ldreqh r0, [r1]");
}

Fails like this:
asm.c:3:14: error: invalid instruction
    __asm__ ("ldreqh r0, [r1]");
             ^
<inline asm>:1:2: note: instantiated into assembly here
        ldreqh r0, [r1]
        ^
1 error generated.

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