Skip to content

Commit 4ad8f4d

Browse files
author
anoopkg6
committed
1. Moved getCCResult above SystemZTargetLowering::LowerAsmOutputForConstraint.
2. Removed flag_output_operand_cc*. 3. Renamed systemz_asm_flag_outut.c to systemz_asm_flag_output.c.
1 parent 10c60fa commit 4ad8f4d

14 files changed

+8
-17858
lines changed

llvm/lib/Target/SystemZ/SystemZISelLowering.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,14 +1523,6 @@ SystemZTargetLowering::getConstraintType(StringRef Constraint) const {
15231523
return TargetLowering::getConstraintType(Constraint);
15241524
}
15251525

1526-
// Convert condition code in CCReg to an i32 value.
1527-
static SDValue getCCResult(SelectionDAG &DAG, SDValue CCReg) {
1528-
SDLoc DL(CCReg);
1529-
SDValue IPM = DAG.getNode(SystemZISD::IPM, DL, MVT::i32, CCReg);
1530-
return DAG.getNode(ISD::SRL, DL, MVT::i32, IPM,
1531-
DAG.getConstant(SystemZ::IPM_CC, DL, MVT::i32));
1532-
}
1533-
15341526
TargetLowering::ConstraintWeight
15351527
SystemZTargetLowering::getSingleConstraintMatchWeight(
15361528
AsmOperandInfo &Info, const char *Constraint) const {
@@ -1754,6 +1746,14 @@ Register SystemZTargetLowering::getExceptionSelectorRegister(
17541746
return Subtarget.isTargetXPLINK64() ? SystemZ::R2D : SystemZ::R7D;
17551747
}
17561748

1749+
// Convert condition code in CCReg to an i32 value.
1750+
static SDValue getCCResult(SelectionDAG &DAG, SDValue CCReg) {
1751+
SDLoc DL(CCReg);
1752+
SDValue IPM = DAG.getNode(SystemZISD::IPM, DL, MVT::i32, CCReg);
1753+
return DAG.getNode(ISD::SRL, DL, MVT::i32, IPM,
1754+
DAG.getConstant(SystemZ::IPM_CC, DL, MVT::i32));
1755+
}
1756+
17571757
// Lower @cc targets via setcc.
17581758
SDValue SystemZTargetLowering::LowerAsmOutputForConstraint(
17591759
SDValue &Chain, SDValue &Glue, const SDLoc &DL,

0 commit comments

Comments
 (0)