mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-02 02:55:35 +00:00
80-col cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132863 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9a09ca348f
commit
b3e009a165
@ -573,9 +573,9 @@ SDValue DAGTypeLegalizer::PromoteIntRes_XMULO(SDNode *N, unsigned ResNo) {
|
|||||||
DebugLoc DL = N->getDebugLoc();
|
DebugLoc DL = N->getDebugLoc();
|
||||||
EVT SmallVT = LHS.getValueType();
|
EVT SmallVT = LHS.getValueType();
|
||||||
|
|
||||||
// To determine if the result overflowed in a larger type, we extend the input
|
// To determine if the result overflowed in a larger type, we extend the
|
||||||
// to the larger type, do the multiply, then check the high bits of the result
|
// input to the larger type, do the multiply, then check the high bits of
|
||||||
// to see if the overflow happened.
|
// the result to see if the overflow happened.
|
||||||
if (N->getOpcode() == ISD::SMULO) {
|
if (N->getOpcode() == ISD::SMULO) {
|
||||||
LHS = SExtPromotedInteger(LHS);
|
LHS = SExtPromotedInteger(LHS);
|
||||||
RHS = SExtPromotedInteger(RHS);
|
RHS = SExtPromotedInteger(RHS);
|
||||||
@ -585,8 +585,8 @@ SDValue DAGTypeLegalizer::PromoteIntRes_XMULO(SDNode *N, unsigned ResNo) {
|
|||||||
}
|
}
|
||||||
SDValue Mul = DAG.getNode(ISD::MUL, DL, LHS.getValueType(), LHS, RHS);
|
SDValue Mul = DAG.getNode(ISD::MUL, DL, LHS.getValueType(), LHS, RHS);
|
||||||
|
|
||||||
// Overflow occurred iff the high part of the result does not zero/sign-extend
|
// Overflow occurred iff the high part of the result does not
|
||||||
// the low part.
|
// zero/sign-extend the low part.
|
||||||
SDValue Overflow;
|
SDValue Overflow;
|
||||||
if (N->getOpcode() == ISD::UMULO) {
|
if (N->getOpcode() == ISD::UMULO) {
|
||||||
// Unsigned overflow occurred iff the high part is non-zero.
|
// Unsigned overflow occurred iff the high part is non-zero.
|
||||||
@ -2789,4 +2789,3 @@ SDValue DAGTypeLegalizer::PromoteIntOp_CONCAT_VECTORS(SDNode *N) {
|
|||||||
return DAG.getNode(ISD::BUILD_VECTOR, dl, N->getValueType(0),
|
return DAG.getNode(ISD::BUILD_VECTOR, dl, N->getValueType(0),
|
||||||
&NewOps[0], NewOps.size());
|
&NewOps[0], NewOps.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user