mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-31 11:32:42 +00:00
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
This commit is contained in:
parent
94f4032448
commit
979a21e766
@ -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<CondCodeSDNode>(Cond->getOperand(2))->get() != ISD::SETEQ &&
|
||||
cast<CondCodeSDNode>(Cond->getOperand(2))->get() != ISD::SETNE) {
|
||||
MVT::ValueType VT = Cond->getOperand(0).getValueType();
|
||||
|
Loading…
x
Reference in New Issue
Block a user