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: unassignedb...@nondot.org
          Reporter: rol...@hack.frob.com
                CC: arnaud.degrandmai...@arm.com,
                    llvm-bugs@lists.llvm.org, smithp...@googlemail.com,
                    ties.st...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to