diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-12-21 23:17:36 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-12-21 23:17:36 +0000 |
commit | e8bc10b902f15eb4a12b810d5ab06a2755e7f990 (patch) | |
tree | ee1213fa3931936edbe0455e1519cb0ec2ab05af /lib/Target/Mips/MipsInstrFormats.td | |
parent | aa7c9cd1814ad080c7f8e5c2c4434c206e0ea66d (diff) | |
download | llvm-e8bc10b902f15eb4a12b810d5ab06a2755e7f990.tar.gz llvm-e8bc10b902f15eb4a12b810d5ab06a2755e7f990.tar.bz2 llvm-e8bc10b902f15eb4a12b810d5ab06a2755e7f990.tar.xz |
[mips] Refactor SYNC and multiply/divide instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170955 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsInstrFormats.td')
-rw-r--r-- | lib/Target/Mips/MipsInstrFormats.td | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsInstrFormats.td b/lib/Target/Mips/MipsInstrFormats.td index 56e784e6b9..b21b107180 100644 --- a/lib/Target/Mips/MipsInstrFormats.td +++ b/lib/Target/Mips/MipsInstrFormats.td @@ -410,6 +410,29 @@ class BGEZAL_FM<bits<5> funct> { let Inst{15-0} = offset; } +class SYNC_FM { + bits<5> stype; + + bits<32> Inst; + + let Inst{31-26} = 0; + let Inst{10-6} = stype; + let Inst{5-0} = 0xf; +} + +class MULT_FM<bits<6> op, bits<6> funct> { + bits<5> rs; + bits<5> rt; + + bits<32> Inst; + + let Inst{31-26} = op; + let Inst{25-21} = rs; + let Inst{20-16} = rt; + let Inst{15-6} = 0; + let Inst{5-0} = funct; +} + //===----------------------------------------------------------------------===// // // FLOATING POINT INSTRUCTION FORMATS |