diff options
author | Reed Kotler <rkotler@mips.com> | 2013-02-20 05:45:15 +0000 |
---|---|---|
committer | Reed Kotler <rkotler@mips.com> | 2013-02-20 05:45:15 +0000 |
commit | 65692c809efa46337bf80f12b1795e785a6e7207 (patch) | |
tree | f9f6d1833ac565de99fd963ba50bb3ba60bd36ef /lib/Target/Mips/Mips16InstrInfo.h | |
parent | d326d05fb9c794e93fc7fc0601028f196600f7e2 (diff) | |
download | llvm-65692c809efa46337bf80f12b1795e785a6e7207.tar.gz llvm-65692c809efa46337bf80f12b1795e785a6e7207.tar.bz2 llvm-65692c809efa46337bf80f12b1795e785a6e7207.tar.xz |
Expand pseudos/macros:
SltCCRxRy16, SltiCCRxImmX16, SltiuCCRxImmX16, SltuCCRxRy16
$T8 shows up as register $24 when emitted from C++ code so we had
to change some tests that were already there for this functionality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175593 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/Mips16InstrInfo.h')
-rw-r--r-- | lib/Target/Mips/Mips16InstrInfo.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Target/Mips/Mips16InstrInfo.h b/lib/Target/Mips/Mips16InstrInfo.h index 2699a1c39e..0048fff5e6 100644 --- a/lib/Target/Mips/Mips16InstrInfo.h +++ b/lib/Target/Mips/Mips16InstrInfo.h @@ -123,6 +123,20 @@ private: MachineBasicBlock &MBB, MachineBasicBlock::iterator I, unsigned BtOpc, unsigned CmpiOpc, unsigned CmpiXOpc) const; + void ExpandFEXT_CCRX16_ins( + MachineBasicBlock &MBB, MachineBasicBlock::iterator I, + unsigned SltOpc) const; + + void ExpandFEXT_CCRXI16_ins( + MachineBasicBlock &MBB, MachineBasicBlock::iterator I, + unsigned SltiOpc, unsigned SltiXOpc) const; + + static unsigned + whichOp8_or_16uimm (unsigned shortOp, unsigned longOp, int64_t Imm); + + static unsigned + whichOp8u_or_16simm (unsigned shortOp, unsigned longOp, int64_t Imm); + }; } |