[PowerPC] Fix incorrect PC Relative relocations for Big Endian
authorStefan Pintilie <stefanp@ca.ibm.com>
Tue, 9 Jun 2020 01:20:42 +0000 (20:20 -0500)
committerStefan Pintilie <stefanp@ca.ibm.com>
Tue, 9 Jun 2020 01:29:43 +0000 (20:29 -0500)
commitb4036329f1634f66273516840bedfaae1399f87d
treeaa14efdb3ef5188c08d829c51d08385d262b40f0
parent3c67b9516ae2b545e2b008ba6823c89eb64dc954
[PowerPC] Fix incorrect PC Relative relocations for Big Endian

Fix the incorrect PC Relative relocations for Big Endian for 34 bit offsets.
The offset should be zero for both BE and LE in this situation.

Differential Revision: https://reviews.llvm.org/D81033
llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp
llvm/test/MC/PowerPC/future-reloc.s