aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2019-11-02 09:38:25 +0100
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2019-11-04 10:38:18 +0100
commit580310ff0c57a62edd0c07aacfa4969809649444 (patch)
tree98fcb1900c85b7aa3793a40766aeda7000c3b8ab /llvm/lib/Support/VirtualFileSystem.cpp
parent2be17087f8c38934b7fc9208ae6cf4e9b4d44f4b (diff)
downloadllvm-580310ff0c57a62edd0c07aacfa4969809649444.zip
llvm-580310ff0c57a62edd0c07aacfa4969809649444.tar.gz
llvm-580310ff0c57a62edd0c07aacfa4969809649444.tar.bz2
[SystemZ] Improve handling of huge PC relative immediate offsets.
Demand that an immediate offset to a PC relative address fits in 32 bits, or else load it into a register and perform a separate add. Verify in the assembler that such immediate offsets fit the bitwidth. Even though the final address of a Load Address Relative Long may fit in 32 bits even with a >32 bit offset (depending on where the symbol lives relative to PC), the GNU toolchain demands the offset by itself to be in range. This patch adapts the same behavior for llvm. Review: Ulrich Weigand https://reviews.llvm.org/D69749
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions