Lines Matching refs:CTTZ
1092 setOperationAction(ISD::CTTZ, VT, Expand); in AArch64TargetLowering()
1152 setOperationAction(ISD::CTTZ, VT, Custom); in AArch64TargetLowering()
1397 setOperationAction(ISD::CTTZ, MVT::v1i64, Custom); in AArch64TargetLowering()
1419 setOperationAction(ISD::CTTZ, VT, Custom); in AArch64TargetLowering()
1642 setOperationAction(ISD::CTTZ, VT, Custom); in addTypeForFixedLengthSVE()
5609 case ISD::CTTZ: in LowerOperation()
18251 SDValue Zero, CTTZ; in foldCSELofCTTZ() local
18255 CTTZ = N->getOperand(1); in foldCSELofCTTZ()
18258 CTTZ = N->getOperand(0); in foldCSELofCTTZ()
18262 if ((CTTZ.getOpcode() != ISD::CTTZ && CTTZ.getOpcode() != ISD::TRUNCATE) || in foldCSELofCTTZ()
18263 (CTTZ.getOpcode() == ISD::TRUNCATE && in foldCSELofCTTZ()
18264 CTTZ.getOperand(0).getOpcode() != ISD::CTTZ)) in foldCSELofCTTZ()
18267 assert((CTTZ.getValueType() == MVT::i32 || CTTZ.getValueType() == MVT::i64) && in foldCSELofCTTZ()
18273 SDValue X = CTTZ.getOpcode() == ISD::TRUNCATE in foldCSELofCTTZ()
18274 ? CTTZ.getOperand(0).getOperand(0) in foldCSELofCTTZ()
18275 : CTTZ.getOperand(0); in foldCSELofCTTZ()
18280 unsigned BitWidth = CTTZ.getOpcode() == ISD::TRUNCATE in foldCSELofCTTZ()
18281 ? CTTZ.getOperand(0).getValueSizeInBits() in foldCSELofCTTZ()
18282 : CTTZ.getValueSizeInBits(); in foldCSELofCTTZ()
18284 DAG.getConstant(BitWidth - 1, SDLoc(N), CTTZ.getValueType()); in foldCSELofCTTZ()
18285 return DAG.getNode(ISD::AND, SDLoc(N), CTTZ.getValueType(), CTTZ, in foldCSELofCTTZ()