Fix a bug in my patch for legalizing to fsel. It cannot handle seteq/setne,
authorChris Lattner <sabre@nondot.org>
Tue, 30 Aug 2005 00:45:18 +0000 (00:45 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Aug 2005 00:45:18 +0000 (00:45 +0000)
which I failed to include when I moved the code over.  This fixes
MallocBench/gs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23140 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp

index 57bf66e9ef5d7122bbb95acac035e88850ed091b..dad4c9fd2ec8ec023f192c04992593aa1a7c4e9b 100644 (file)
@@ -111,6 +111,10 @@ SDOperand PPC32TargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
     if (MVT::isFloatingPoint(Op.getOperand(0).getValueType()) &&
         MVT::isFloatingPoint(Op.getOperand(2).getValueType())) {
       ISD::CondCode CC = cast<CondCodeSDNode>(Op.getOperand(4))->get();
+      
+      // Cannot handle SETEQ/SETNE.
+      if (CC == ISD::SETEQ || CC == ISD::SETNE) break;
+      
       MVT::ValueType ResVT = Op.getValueType();
       MVT::ValueType CmpVT = Op.getOperand(0).getValueType();
       SDOperand LHS = Op.getOperand(0), RHS = Op.getOperand(1);