[llvm-bugs] [Bug 38831] New: AArch64 assembly gives error in one case but not in other equivalent case.

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 4 12:04:12 PDT 2018


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

            Bug ID: 38831
           Summary: AArch64 assembly gives error in one case but not in
                    other equivalent case.
           Product: libraries
           Version: trunk
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: jakehehrlich at google.com
                CC: llvm-bugs at lists.llvm.org

The following instruction assembles successfully

```
adr x9, IMAGE_LOAD_START + 987136
```

but somehow the following does not

```
adr x9, (0xffffffff000f1000 - 0xffffffff00000000 + IMAGE_LOAD_START)
```

Regardless of how IMAGE_LOAD_START is defined these should resolved to the same
value.

I'll try and post a more complete and simpler reproducer later rather than one
pulled almost directly from real code however simple it may be.

-- 
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/20180904/af630a96/attachment.html>


More information about the llvm-bugs mailing list