[llvm-bugs] [Bug 45781] New: assembler doesn't accept label arithmetic in immediate

via llvm-bugs llvm-bugs at lists.llvm.org
Sat May 2 23:32:58 PDT 2020


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

            Bug ID: 45781
           Summary: assembler doesn't accept label arithmetic in immediate
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: roland at hack.frob.com
                CC: arnaud.degrandmaison at arm.com,
                    llvm-bugs at lists.llvm.org, smithp352 at googlemail.com,
                    Ties.Stuij at arm.com

clang --target=aarch64-linux on this .s file:


```
.text                                                                           
.pushsection .other,"a",%progbits                                               
0:.skip 2                                                                       
1:                                                                              
.popsection                                                                     
mov x0, #1b - 0b                                                                
```

fails with `error: expected compatible register or logical immediate`

The GNU assembler accepts this input.  The LLVM assembler accepts the
equivalent construct for x86.

-- 
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/20200503/c82f0ec8/attachment-0001.html>


More information about the llvm-bugs mailing list