[X86] Include %rip for 32-bit RIP-relative relocs for x32
authorHarald van Dijk <harald@gigawatt.nl>
Sat, 21 Nov 2020 17:20:20 +0000 (09:20 -0800)
committerFangrui Song <i@maskray.me>
Sat, 21 Nov 2020 17:20:20 +0000 (09:20 -0800)
commit4629afa101d48bf347dfdd9d08796faeb489cd5f
tree9fc71b354425595624bc5d6b33467b0c9489c236
parent5318f6c427c78c5737745acb18cae45b623cc067
[X86] Include %rip for 32-bit RIP-relative relocs for x32

%rip was only included for 64-bit RIP-relative relocations, but needs to be included for 32-bit as well.

Reviewed By: MaskRay, RKSimon

Differential Revision: https://reviews.llvm.org/D91339
llvm/lib/Target/X86/X86FastISel.cpp
llvm/test/CodeGen/X86/pic.ll