OSDN Git Service

Mips assembler: Add branch macro definitions
authorJack Carter <jack.carter@imgtec.com>
Thu, 16 May 2013 19:40:19 +0000 (19:40 +0000)
committerJack Carter <jack.carter@imgtec.com>
Thu, 16 May 2013 19:40:19 +0000 (19:40 +0000)
commit3209baefd4ab8242563118c37d8357bd9de6b421
treeaa5b2d77ecb369b9a9f25b2429835dc5d1e3b050
parent8401ed21aa7c8ca022aad4b83fc9c63c0b824720
Mips assembler: Add branch macro definitions

This patch adds bnez and beqz instructions which represent alias definitions for bne and beq instructions as follows:
bnez $rs,$imm => bne $rs,$zero,$imm
beqz $rs,$imm => beq $rs,$zero,$imm

The corresponding test cases are added.

Patch by Vladimir Medic

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182040 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/Mips64InstrInfo.td
lib/Target/Mips/MipsInstrInfo.td
test/MC/Mips/mips-jump-instructions.s