summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MipsInstrFormats.td
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-12-20 04:10:13 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-12-20 04:10:13 +0000
commitc4889013553a4e407e110d1f76d9b6cf1396e702 (patch)
tree0356f9314f85b46e90602e18ff6a73335a4c227f /lib/Target/Mips/MipsInstrFormats.td
parentcef95f702a5586781e5f812078a5c57f6f0e962b (diff)
[mips] Refactor conditional branch instructions with two register operands.
Separate encoding information from the rest. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsInstrFormats.td')
-rw-r--r--lib/Target/Mips/MipsInstrFormats.td13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsInstrFormats.td b/lib/Target/Mips/MipsInstrFormats.td
index 512dcff28fa..58103831a8f 100644
--- a/lib/Target/Mips/MipsInstrFormats.td
+++ b/lib/Target/Mips/MipsInstrFormats.td
@@ -252,6 +252,19 @@ class SRLV_FM<bits<6> funct, bit rotate> {
let Inst{5-0} = funct;
}
+class BEQ_FM<bits<6> op> {
+ bits<5> rs;
+ bits<5> rt;
+ bits<16> offset;
+
+ bits<32> Inst;
+
+ let Inst{31-26} = op;
+ let Inst{25-21} = rs;
+ let Inst{20-16} = rt;
+ let Inst{15-0} = offset;
+}
+
//===----------------------------------------------------------------------===//
//
// FLOATING POINT INSTRUCTION FORMATS