summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MicroMips32r6InstrFormats.td
diff options
context:
space:
mode:
authorZlatko Buljan <Zlatko.Buljan@imgtec.com>2016-05-19 07:31:28 +0000
committerZlatko Buljan <Zlatko.Buljan@imgtec.com>2016-05-19 07:31:28 +0000
commite663e34e799ff9d6b720be7774b6916d61667938 (patch)
treee73cdc2be1c1f9f3a91842abd4f452d440fc90fb /llvm/lib/Target/Mips/MicroMips32r6InstrFormats.td
parent5dbcd3bd07dd11c0dd62b5da440c8abbff886224 (diff)
downloadbcm5719-llvm-e663e34e799ff9d6b720be7774b6916d61667938.tar.gz
bcm5719-llvm-e663e34e799ff9d6b720be7774b6916d61667938.zip
[mips][microMIPS] Implement BC1EQZC, BC1NEZC, BC2EQZC and BC2NEZC instructions
Differential Revision: http://reviews.llvm.org/D18352 llvm-svn: 270030
Diffstat (limited to 'llvm/lib/Target/Mips/MicroMips32r6InstrFormats.td')
-rw-r--r--llvm/lib/Target/Mips/MicroMips32r6InstrFormats.td13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MicroMips32r6InstrFormats.td b/llvm/lib/Target/Mips/MicroMips32r6InstrFormats.td
index 6b2b37d2e29..d3044e19613 100644
--- a/llvm/lib/Target/Mips/MicroMips32r6InstrFormats.td
+++ b/llvm/lib/Target/Mips/MicroMips32r6InstrFormats.td
@@ -1004,3 +1004,16 @@ class CMP_BRANCH_OFF21_FM_MMR6<string opstr, bits<6> funct> : MipsR6Inst {
let Inst{25-21} = rs;
let Inst{20-0} = offset;
}
+
+class POOL32I_BRANCH_COP_1_2_FM_MMR6<string instr_asm, bits<5> funct>
+ : MMR6Arch<instr_asm> {
+ bits<5> rt;
+ bits<16> offset;
+
+ bits<32> Inst;
+
+ let Inst{31-26} = 0b010000;
+ let Inst{25-21} = funct;
+ let Inst{20-16} = rt;
+ let Inst{15-0} = offset;
+}
OpenPOWER on IntegriCloud