]> granicus.if.org Git - llvm/commit
[mips] Lift the assertion on the types that can be used with MipsGPRel
authorSimon Dardis <simon.dardis@imgtec.com>
Fri, 11 Aug 2017 14:36:05 +0000 (14:36 +0000)
committerSimon Dardis <simon.dardis@imgtec.com>
Fri, 11 Aug 2017 14:36:05 +0000 (14:36 +0000)
commit9ac295da5f10f680a3d9f931d9c5ff6ab141e582
tree19b7781fb879d3bf0f0492e5c2a28410d03af12b
parent607da6dafc856451774ac16f746bc40f18f7e758
[mips] Lift the assertion on the types that can be used with MipsGPRel

Post commit review of rL308619 highlighted the need for handling N64
with -fno-pic. Testing reveale a stale assert when generating a GP
relative addressing mode.

This patch removes that assert and adds the necessary patterns for
MIPS64 to perform gp relative addressing with -fno-pic
(and the implicit -mno-abicalls + -mgpopt).

Reviewers: atanasyan, nitesh.jain

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310713 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/Mips64InstrInfo.td
lib/Target/Mips/MipsISelLowering.cpp
lib/Target/Mips/MipsISelLowering.h
lib/Target/Mips/MipsInstrInfo.td
test/CodeGen/Mips/2008-07-15-SmallSection.ll