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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to