From 979a21e766eaea8881ee8b3b26c24b0771a8dfcf Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 10 Aug 2005 03:40:09 +0000 Subject: [PATCH] Fix a bug compiling: select (i32 < i32), f32, f32 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22747 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCISelPattern.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Target/PowerPC/PPCISelPattern.cpp b/lib/Target/PowerPC/PPCISelPattern.cpp index fa7518d0454..095afc647a9 100644 --- a/lib/Target/PowerPC/PPCISelPattern.cpp +++ b/lib/Target/PowerPC/PPCISelPattern.cpp @@ -2140,6 +2140,7 @@ unsigned ISel::SelectExpr(SDOperand N, bool Recording) { ISD::CondCode CC; if (Cond->getOpcode() == ISD::SETCC && !MVT::isInteger(N.getOperand(1).getValueType()) && + !MVT::isInteger(Cond->getOperand(1).getValueType()) && cast(Cond->getOperand(2))->get() != ISD::SETEQ && cast(Cond->getOperand(2))->get() != ISD::SETNE) { MVT::ValueType VT = Cond->getOperand(0).getValueType(); -- 2.34.1