[JITLink][MachO][AArch64] More PAGEOFF12 relocation fixes.
authorLang Hames <lhames@gmail.com>
Thu, 6 Aug 2020 04:07:45 +0000 (21:07 -0700)
committerLang Hames <lhames@gmail.com>
Thu, 6 Aug 2020 04:09:45 +0000 (21:09 -0700)
commitba8683f29290f9ccc16b9403d537241c1e25c4f9
tree2e08d8cbd3d094f9875e77c92d04108bfe1471a6
parent4fccdd5c85d05b3b03d029f533762e233259573c
[JITLink][MachO][AArch64] More PAGEOFF12 relocation fixes.

Correctly sign extend the addend, and fix implicit shift operand decoding
(it incorrectly returned 0 for some cases), and check that the initial
encoded immediate is 0.
llvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp
llvm/test/ExecutionEngine/JITLink/AArch64/MachO_arm64_relocations.s