aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/Binary.cpp
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2022-05-02 20:56:51 +0200
committerEli Shokin <iii@linux.ibm.com>2022-05-02 20:57:55 +0200
commit7070c6a96b418874ac201c6e0ff2070c5c9669d3 (patch)
treede75e11d985287a28e1884e2692e5a08db3e1543 /llvm/lib/Object/Binary.cpp
parent747c6a0c734e618db8132b503f432d8274cc56b5 (diff)
downloadllvm-7070c6a96b418874ac201c6e0ff2070c5c9669d3.zip
llvm-7070c6a96b418874ac201c6e0ff2070c5c9669d3.tar.gz
llvm-7070c6a96b418874ac201c6e0ff2070c5c9669d3.tar.bz2
[SystemZ] Accept (. - 0x100000000) PCRel32 constants
Clang does not accept instructions like brasl %r0,.-0x100000000, because the second operand's right-hand-side (0x100000000) barely misses the acceptable range. However, since it's being subtracted, it makes sense to perform the range check on the negated value. Reviewed By: uweigand Differential Revision: https://reviews.llvm.org/D124780
Diffstat (limited to 'llvm/lib/Object/Binary.cpp')
0 files changed, 0 insertions, 0 deletions