OSDN Git Service

Reland r331175: "[mips] Fix the predicates of jump and branch and link instructions"
authorSimon Dardis <simon.dardis@mips.com>
Tue, 1 May 2018 13:06:49 +0000 (13:06 +0000)
committerSimon Dardis <simon.dardis@mips.com>
Tue, 1 May 2018 13:06:49 +0000 (13:06 +0000)
commit8766b180e3fed3f5e63365d21aa5ce4b535b2bef
tree75876e7e0130df50988849cb2ba8b5a479c7790f
parent332212679ea5efa5618063305cffb780384045c8
Reland r331175: "[mips] Fix the predicates of jump and branch and link instructions"

The previous version of this patch restricted the 'jal' instruction to MIPS and
microMIPSr3. microMIPS32r6 does not have this instruction and instead uses jal
as an alias for balc.

Original commit message:
> Reviewers: smaksimovic, atanasyan, abeserminji
>
> Differential Revision: https://reviews.llvm.org/D46114
>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331259 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MicroMips32r6InstrInfo.td
lib/Target/Mips/MicroMipsInstrInfo.td
lib/Target/Mips/MipsInstrInfo.td
lib/Target/Mips/MipsLongBranch.cpp
test/CodeGen/Mips/br-jmp.ll