summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/AArch64/label-arithmetic-elf.s
Commit message (Collapse)AuthorAgeFilesLines
* [AArch64] Attempt to parse more operands as expressionsDavid Green2018-09-181-0/+2
| | | | | | | | | | | | | | This tries to make use of evaluateAsRelocatable in AArch64AsmParser::classifySymbolRef to parse more complex expressions as relocatable operands. It is hopefully better than the existing code which only handles Symbol +- Constant. This allows us to parse more complex adr/adrp, mov, ldr/str and add operands. It also loosens the requirements on parsing addends in ld/st and mov's and adds a number of tests. Differential Revision: https://reviews.llvm.org/D51792 llvm-svn: 342455
* [AArch64] Allow label arithmetic with add/sub/cmpDiana Picus2016-10-111-0/+96
Allow instructions such as 'cmp w0, #(end - start)' by folding the expression into a constant. For ELF, we fold only if the symbols are in the same section. For MachO, we fold if the expression contains only symbols that are not linker visible. Fixes https://llvm.org/bugs/show_bug.cgi?id=18920 Differential Revision: https://reviews.llvm.org/D23834 llvm-svn: 283862
OpenPOWER on IntegriCloud