diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2013-04-25 01:21:25 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2013-04-25 01:21:25 +0000 |
commit | 089741479be03b625f5a8cc52e750b4e532338c6 (patch) | |
tree | e89b2b23fb2a397ae7d86a83c75c88db275b8b94 /lib/Target/Mips/MicroMipsInstrFormats.td | |
parent | aa27161a0126ff00e9a30c588dc7a690cc7371fd (diff) | |
download | llvm-089741479be03b625f5a8cc52e750b4e532338c6.tar.gz llvm-089741479be03b625f5a8cc52e750b4e532338c6.tar.bz2 llvm-089741479be03b625f5a8cc52e750b4e532338c6.tar.xz |
[mips] Add definitions of micromips load and store instructions.
Patch by Zoran Jovanovic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180241 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MicroMipsInstrFormats.td')
-rw-r--r-- | lib/Target/Mips/MicroMipsInstrFormats.td | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Target/Mips/MicroMipsInstrFormats.td b/lib/Target/Mips/MicroMipsInstrFormats.td index 63ecc99550..665b4d2d8b 100644 --- a/lib/Target/Mips/MicroMipsInstrFormats.td +++ b/lib/Target/Mips/MicroMipsInstrFormats.td @@ -98,3 +98,15 @@ class SRLV_FM_MM<bits<10> funct, bit rotate> : MMArch { let Inst{10} = rotate; let Inst{9-0} = funct; } + +class LW_FM_MM<bits<6> op> : MMArch { + bits<5> rt; + bits<21> addr; + + bits<32> Inst; + + let Inst{31-26} = op; + let Inst{25-21} = rt; + let Inst{20-16} = addr{20-16}; + let Inst{15-0} = addr{15-0}; +} |