[mips] Correct microMIP's jump and add unconditional branch pseudo
authorSimon Dardis <simon.dardis@mips.com>
Thu, 9 Nov 2017 16:02:18 +0000 (16:02 +0000)
committerSimon Dardis <simon.dardis@mips.com>
Thu, 9 Nov 2017 16:02:18 +0000 (16:02 +0000)
commitc2d3e38ba6ee7e1ae61ed3682a17ee3c1690e15b
treea67104743414b27c69cbe2cb703b61b68e333359
parente5af5bde71e3730a2b5bfca6067764df13abdfc5
[mips] Correct microMIP's jump and add unconditional branch pseudo

Correct the definition of 'j' as being unavailable for microMIPS32R6 and
provide the 'b' assembly idiom for codegen purposes for microMIPS32r3.

Provide the necessary 'br' pattern for microMIPS32R6 as it now longer
incorrectly uses the 'j' instruction.

Reviewers: atanasyan

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

llvm-svn: 317801
llvm/lib/Target/Mips/MicroMips32r6InstrInfo.td
llvm/lib/Target/Mips/MicroMipsInstrInfo.td
llvm/lib/Target/Mips/MipsInstrInfo.td
llvm/lib/Target/Mips/MipsSEInstrInfo.cpp
llvm/test/CodeGen/Mips/br-jmp.ll
llvm/test/MC/Mips/j-macro-insn.s [new file with mode: 0644]