[arm] Add big-endian version of pcrel fixups for adr instructions
authorDimitry Andric <dimitry@andric.com>
Tue, 12 May 2020 10:33:15 +0000 (12:33 +0200)
committerDimitry Andric <dimitry@andric.com>
Tue, 12 May 2020 17:27:48 +0000 (19:27 +0200)
commitfc373522b044e0b150561204958f0d603fb4caba
tree75dff36ebaf68f88a049e4b260bffc40cdb3c32d
parent9f0b736126cb55f194f51c966b0db90aa4cbcd02
[arm] Add big-endian version of pcrel fixups for adr instructions

Summary:
In 2e24219d3cbf, a number of ARM pcrel fixups were resolved at assembly
time, to solve PR44929. This only covered little-endian ARM however, so
add similar fixups for big-endian ARM. Also extend the test case to
cover big-endian ARM.

Reviewers: hans, psmith, MaskRay

Reviewed By: psmith, MaskRay

Subscribers: kristof.beyls, hiraditya, danielkiss, emaste, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D79774
llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
llvm/test/MC/ARM/pcrel-global.s