diff options
author | Simon Dardis <simon.dardis@mips.com> | 2018-05-01 13:06:49 +0000 |
---|---|---|
committer | Simon Dardis <simon.dardis@mips.com> | 2018-05-01 13:06:49 +0000 |
commit | 3d562fb9758599fe9ee5fee555a97e133a3c0613 (patch) | |
tree | 2f7b909f9d7e0fc65a44fa627b18de56fe711b04 /llvm/lib/Target/Mips/MipsLongBranch.cpp | |
parent | 57f2b185ac010f47e977785af2acfc51d41808b7 (diff) | |
download | bcm5719-llvm-3d562fb9758599fe9ee5fee555a97e133a3c0613.tar.gz bcm5719-llvm-3d562fb9758599fe9ee5fee555a97e133a3c0613.zip |
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
>
llvm-svn: 331259
Diffstat (limited to 'llvm/lib/Target/Mips/MipsLongBranch.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsLongBranch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsLongBranch.cpp b/llvm/lib/Target/Mips/MipsLongBranch.cpp index e6ecbe9b5f6..bc5f0df211e 100644 --- a/llvm/lib/Target/Mips/MipsLongBranch.cpp +++ b/llvm/lib/Target/Mips/MipsLongBranch.cpp @@ -285,7 +285,7 @@ void MipsLongBranch::expandToLongBranch(MBBInfo &I) { const unsigned BalOp = Subtarget.hasMips32r6() ? Subtarget.inMicroMipsMode() ? Mips::BALC_MMR6 : Mips::BALC - : Mips::BAL_BR; + : Subtarget.inMicroMipsMode() ? Mips::BAL_BR_MM : Mips::BAL_BR; if (!ABI.IsN64()) { // Pre R6: |