aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/MipsSubtarget.cpp
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2008-08-13 07:13:40 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2008-08-13 07:13:40 +0000
commit739e441311410796d66e6d72426ef0344e0be98f (patch)
tree029e452e4cd86b0b3b2b56045def326531c1cf9c /lib/Target/Mips/MipsSubtarget.cpp
parentd16aba22c9eca0b2576a5fe5507f3c8ab378942e (diff)
downloadexternal_llvm-739e441311410796d66e6d72426ef0344e0be98f.zip
external_llvm-739e441311410796d66e6d72426ef0344e0be98f.tar.gz
external_llvm-739e441311410796d66e6d72426ef0344e0be98f.tar.bz2
Removed SELECT_CC custom lowering. This is not needed anymore, the SELECT node
is lowered properly and covers everything LowerSELECT_CC did. Added method printUnsignedImm in AsmPrinter to print uimm16 operands. This avoid the ugly instruction by instruction checking in printOperand. Added a swap instruction present in the allegrex core. Added two conditional instructions present in the allegrex core : MOVZ and MOVN. They both allow a more efficient SELECT operation for integers. Also added SELECT patterns to optimize MOVZ and MOVN usage. The brcond and setcc patterns were cleaned: redundant and suboptimal patterns were removed. The suboptimals were replaced by more efficient ones. Fixed some instructions that were using immZExt16 instead of immSExt16. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54724 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsSubtarget.cpp')
-rw-r--r--lib/Target/Mips/MipsSubtarget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsSubtarget.cpp b/lib/Target/Mips/MipsSubtarget.cpp
index b1e1806..df069f6 100644
--- a/lib/Target/Mips/MipsSubtarget.cpp
+++ b/lib/Target/Mips/MipsSubtarget.cpp
@@ -58,6 +58,8 @@ MipsSubtarget::MipsSubtarget(const TargetMachine &TM, const Module &M,
HasVFPU = true; // Enables Allegrex Vector FPU (not supported yet)
HasSEInReg = true;
HasBitCount = true;
+ HasSwap = true;
+ HasCondMov = true;
}
// Abicall is the default for O32 ABI and is ignored