diff options
author | Vladimir Medic <Vladimir.Medic@imgtec.com> | 2013-09-06 12:41:17 +0000 |
---|---|---|
committer | Vladimir Medic <Vladimir.Medic@imgtec.com> | 2013-09-06 12:41:17 +0000 |
commit | bf7f7b5e0eae40bb47a410c90f9f0885c0f38b2c (patch) | |
tree | 938d1c39bd480cfe3c9052bd147c86949da7d512 /lib/Target/Mips/MicroMipsInstrFormats.td | |
parent | a5eeb9da054bd76b38e18bedb9015bbaf20605e0 (diff) | |
download | llvm-bf7f7b5e0eae40bb47a410c90f9f0885c0f38b2c.tar.gz llvm-bf7f7b5e0eae40bb47a410c90f9f0885c0f38b2c.tar.bz2 llvm-bf7f7b5e0eae40bb47a410c90f9f0885c0f38b2c.tar.xz |
This patch adds support for microMIPS Move Conditional instructions. Test cases are included in patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190148 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MicroMipsInstrFormats.td')
-rw-r--r-- | lib/Target/Mips/MicroMipsInstrFormats.td | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Target/Mips/MicroMipsInstrFormats.td b/lib/Target/Mips/MicroMipsInstrFormats.td index 7d8c5135fa..2577fe681d 100644 --- a/lib/Target/Mips/MicroMipsInstrFormats.td +++ b/lib/Target/Mips/MicroMipsInstrFormats.td @@ -123,3 +123,18 @@ class LWL_FM_MM<bits<4> funct> { let Inst{15-12} = funct; let Inst{11-0} = addr{11-0}; } + +class CMov_F_I_FM_MM<bits<7> func> : MMArch { + bits<5> rd; + bits<5> rs; + bits<3> fcc; + + bits<32> Inst; + + let Inst{31-26} = 0x15; + let Inst{25-21} = rd; + let Inst{20-16} = rs; + let Inst{15-13} = fcc; + let Inst{12-6} = func; + let Inst{5-0} = 0x3b; +} |