[llvm-bugs] [Bug 31431] New: [AsmParser] Using .set/.equ defined symbol doesn't work with optional shift/extend operands.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Dec 19 12:46:44 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=31431

            Bug ID: 31431
           Summary: [AsmParser] Using .set/.equ defined symbol doesn't
                    work with optional shift/extend operands.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: mcrosier at codeaurora.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

{7220}> more test.s
.equ FOO, 4
orr x3, x3, x13, lsl #4
orr x3, x3, x13, lsl #FOO
orr x3, x3, #FOO
add x0, x0, #FOO


{7221}> llvm-mc -triple aarch64-none-linux-gnu test.s
        .text
FOO = 4
        orr     x3, x3, x13, lsl #4
test.s:3:23: error: expected integer shift amount
orr x3, x3, x13, lsl #FOO
                      ^
        orr     x3, x3, #0x4
        add     x0, x0, #4              // =4

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161219/9b8aff70/attachment.html>


More information about the llvm-bugs mailing list