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

            Bug ID: 20056
           Summary: [AArch64] [Assembler] LDR x0, =<literal> not
                    recognized
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

AArch64 Assembler doesn't recognize pseudo asm "LDR Xd, =expr "

ARMv7 supports it

AArch64 test:
a.s:
.text 
ldr x0, =0x123

llvm-mc -arch aarch64 a.s
    .text

a.s:2:9: error: unknown token in expression
ldr x0, =0x123
        ^
a.s:2:9: error: invalid operand
ldr x0, =0x123

ARM v7 test:
b.s 
.text 
ldr r0, =0x123

llvm-mc -arch arm b.s 
    .text

    ldr    r0, .Ltmp0
    .align    2
.Ltmp0:
    .long    291


Description of the instruction:
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0802a/CJAHAIBC.html

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