diff options
author | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2013-11-04 14:53:22 +0000 |
---|---|---|
committer | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2013-11-04 14:53:22 +0000 |
commit | 5c042162beb3c2dd556e00aab84c4278a69cd5b1 (patch) | |
tree | a42a4d0608dae1d976c304d4bd2ecc4979a2d569 /lib/Target/Mips/MicroMipsInstrFormats.td | |
parent | 6a907f8c7d6b440bbadaa9aaafb03b489673ae1f (diff) | |
download | llvm-5c042162beb3c2dd556e00aab84c4278a69cd5b1.tar.gz llvm-5c042162beb3c2dd556e00aab84c4278a69cd5b1.tar.bz2 llvm-5c042162beb3c2dd556e00aab84c4278a69cd5b1.tar.xz |
Support for microMIPS branch instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MicroMipsInstrFormats.td')
-rw-r--r-- | lib/Target/Mips/MicroMipsInstrFormats.td | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/Target/Mips/MicroMipsInstrFormats.td b/lib/Target/Mips/MicroMipsInstrFormats.td index 61a3788b90..4981608bf2 100644 --- a/lib/Target/Mips/MicroMipsInstrFormats.td +++ b/lib/Target/Mips/MicroMipsInstrFormats.td @@ -238,3 +238,40 @@ class JALR_FM_MM<bits<10> funct> : MMArch { let Inst{15-6} = funct; let Inst{5-0} = 0x3c; } + +class BEQ_FM_MM<bits<6> op> : MMArch { + bits<5> rs; + bits<5> rt; + bits<16> offset; + + bits<32> Inst; + + let Inst{31-26} = op; + let Inst{25-21} = rt; + let Inst{20-16} = rs; + let Inst{15-0} = offset; +} + +class BGEZ_FM_MM<bits<5> funct> : MMArch { + bits<5> rs; + bits<16> offset; + + bits<32> Inst; + + let Inst{31-26} = 0x10; + let Inst{25-21} = funct; + let Inst{20-16} = rs; + let Inst{15-0} = offset; +} + +class BGEZAL_FM_MM<bits<5> funct> : MMArch { + bits<5> rs; + bits<16> offset; + + bits<32> Inst; + + let Inst{31-26} = 0x10; + let Inst{25-21} = funct; + let Inst{20-16} = rs; + let Inst{15-0} = offset; +} |