[mips] [IAS] Add support for BNE and BEQ with an immediate operand.
authorToma Tabacu <toma.tabacu@imgtec.com>
Tue, 9 Jun 2015 10:34:31 +0000 (10:34 +0000)
committerToma Tabacu <toma.tabacu@imgtec.com>
Tue, 9 Jun 2015 10:34:31 +0000 (10:34 +0000)
commitdc2af2605fe3f800f14d5f060b39c37c220e990f
tree3cdf26b5dd4b034b26654a450ddabc1f3f70d28a
parent4b0e9f114c89d537147a19d7fc677c385f5dba34
[mips] [IAS] Add support for BNE and BEQ with an immediate operand.

Summary:
For some branches, GAS accepts an immediate instead of the 2nd register operand.
We only implement this for BNE and BEQ for now. Other branch instructions can be added later, if needed.

Reviewers: dsanders

Reviewed By: dsanders

Subscribers: seanbruno, emaste, llvm-commits

Differential Revision: http://reviews.llvm.org/D9666

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239396 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
lib/Target/Mips/Mips64InstrInfo.td
test/MC/Mips/mips-expansions-bad.s
test/MC/Mips/mips-expansions.s
test/MC/Mips/mips64-expansions.s
test/MC/Mips/set-nomacro.s