mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-10 05:41:40 +00:00
Fix CodeGen/Generic/2007-02-23-DAGCombine-Miscompile.ll and PR1219
llvm-svn: 34551
This commit is contained in:
parent
e7afa2a6d9
commit
6faf9e8e97
@ -1459,11 +1459,11 @@ TargetLowering::SimplifySetCC(MVT::ValueType VT, SDOperand N0, SDOperand N1,
|
||||
case ISD::SETGT:
|
||||
case ISD::SETGE:
|
||||
// True if the sign bit of C1 is set.
|
||||
return DAG.getConstant((C1 & (1ULL << VSize)) != 0, VT);
|
||||
return DAG.getConstant((C1 & (1ULL << (VSize-1))) != 0, VT);
|
||||
case ISD::SETLT:
|
||||
case ISD::SETLE:
|
||||
// True if the sign bit of C1 isn't set.
|
||||
return DAG.getConstant((C1 & (1ULL << VSize)) == 0, VT);
|
||||
return DAG.getConstant((C1 & (1ULL << (VSize-1))) == 0, VT);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user