[PATCH] D51792: [AArch64] Attempt to parse expressions as adr/adrp operands
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 7 08:27:28 PDT 2018
dmgreen created this revision.
dmgreen added reviewers: t.p.northover, peter.smith, efriedma, olista01, jakehehrlich.
Herald added a reviewer: javed.absar.
Herald added a subscriber: kristof.beyls.
This tries to make use of evaluateAsRelocatable in AArch64AsmParser::classifySymbolRef to
parse more complex expressions as relocatable operands to ADR/ADRP's. It is hopefully
better than the existing code which only handles Symbol +- Constant.
Fixes PR38831
https://reviews.llvm.org/D51792
Files:
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
test/MC/AArch64/adr-badsyms.s
test/MC/AArch64/adr.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51792.164431.patch
Type: text/x-patch
Size: 4843 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180907/31d2f12a/attachment.bin>
More information about the llvm-commits
mailing list