Added support for cmp, test, and conditional move instructions.
llvm-svn: 24756
diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
index 2966b19..842341a 100644
--- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
@@ -364,7 +364,8 @@
MVT::ValueType NVT = Node->getValueType(0);
unsigned Opc;
- if (Node->getOpcode() >= ISD::BUILTIN_OP_END)
+ if (Node->getOpcode() >= ISD::BUILTIN_OP_END &&
+ Node->getOpcode() < X86ISD::FIRST_NUMBER)
return N; // Already selected.
switch (Node->getOpcode()) {