diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-12-13 01:41:15 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-12-13 01:41:15 +0000 |
commit | 5c3739927900af1bf5f5cdcbb3ebead2d89cd943 (patch) | |
tree | ae05569e1e3c310c7325dcafa6e2894d8226dfb9 /lib/Target/Mips/MipsInstrFormats.td | |
parent | 9a65a01eeb97cdc10ca6b97ade3f9f8aba11fa9f (diff) | |
download | llvm-5c3739927900af1bf5f5cdcbb3ebead2d89cd943.tar.gz llvm-5c3739927900af1bf5f5cdcbb3ebead2d89cd943.tar.bz2 llvm-5c3739927900af1bf5f5cdcbb3ebead2d89cd943.tar.xz |
[mips] Modify definitions of floating point conditional move instructions.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170080 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsInstrFormats.td')
-rw-r--r-- | lib/Target/Mips/MipsInstrFormats.td | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsInstrFormats.td b/lib/Target/Mips/MipsInstrFormats.td index 97fdab9e18..e4d0a2067f 100644 --- a/lib/Target/Mips/MipsInstrFormats.td +++ b/lib/Target/Mips/MipsInstrFormats.td @@ -482,3 +482,50 @@ class CEQS_FM<bits<5> fmt> { let Inst{7-4} = 0x3; let Inst{3-0} = cond; } + +class CMov_I_F_FM<bits<6> funct, bits<5> fmt> { + bits<5> fd; + bits<5> fs; + bits<5> rt; + + bits<32> Inst; + + let Inst{31-26} = 0x11; + let Inst{25-21} = fmt; + let Inst{20-16} = rt; + let Inst{15-11} = fs; + let Inst{10-6} = fd; + let Inst{5-0} = funct; +} + +class CMov_F_I_FM<bit tf> { + bits<5> rd; + bits<5> rs; + + bits<32> Inst; + + let Inst{31-26} = 0; + let Inst{25-21} = rs; + let Inst{20-18} = 0; // cc + let Inst{17} = 0; + let Inst{16} = tf; + let Inst{15-11} = rd; + let Inst{10-6} = 0; + let Inst{5-0} = 1; +} + +class CMov_F_F_FM<bits<5> fmt, bit tf> { + bits<5> fd; + bits<5> fs; + + bits<32> Inst; + + let Inst{31-26} = 0x11; + let Inst{25-21} = fmt; + let Inst{20-18} = 0; // cc + let Inst{17} = 0; + let Inst{16} = tf; + let Inst{15-11} = fs; + let Inst{10-6} = fd; + let Inst{5-0} = 0x11; +} |