[PowerPC] Fix label address calculation for ppc32
authorStrahinja Petrovic <strahinja.petrovic@rt-rk.com>
Tue, 19 Jun 2018 13:07:40 +0000 (13:07 +0000)
committerStrahinja Petrovic <strahinja.petrovic@rt-rk.com>
Tue, 19 Jun 2018 13:07:40 +0000 (13:07 +0000)
commitbb2b00bb80e0646a78847c7d7a916b69f1010f65
treeb352908c2e2c0d45ed33b62011432f7a07c93551
parent3de9664494777f30c1c50f8a8c9cb9b914b476fa
[PowerPC] Fix label address calculation for ppc32

This patch fixes calculating address of label on ppc32 (for -fPIC).

Differential Revision: https://reviews.llvm.org/D46582

llvm-svn: 335043
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/ppc-label.ll [new file with mode: 0644]