Home
last modified time | relevance | path

Searched refs:ADDCARRY (Results 1 – 24 of 24) sorted by relevance

/freebsd-13.1/sys/arm/arm/
H A Din_cksum_machdep.c61 #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) macro
72 ADDCARRY(sum); \
90 ADDCARRY(sum); in in_addword()
/freebsd-13.1/sys/i386/i386/
H A Din_cksum_machdep.c57 #undef ADDCARRY
58 #define ADDCARRY(x) if ((x) > 0xffff) (x) -= 0xffff macro
75 ADDCARRY(sum); \
78 #define REDUCE {sum = (sum & 0xffff) + (sum >> 16); ADDCARRY(sum);}
184 ADDCARRY(sum); in in_addword()
/freebsd-13.1/sys/netpfil/pf/
H A Din4_cksum.c79 #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) macro
80 #define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; (void)ADDCARRY(sum);}
/freebsd-13.1/sys/netinet/
H A Din_cksum.c66 #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) macro
77 ADDCARRY(sum); \
192 ADDCARRY(sum); in in_addword()
/freebsd-13.1/contrib/tcpdump/
H A Din_cksum.c53 #define ADDCARRY(x) {if ((x) > 65535) (x) -= 65535;} macro
54 #define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);}
/freebsd-13.1/sys/netinet6/
H A Din6_cksum.c82 #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) macro
83 #define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; (void)ADDCARRY(sum);}
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DISDOpcodes.h290 ADDCARRY, enumerator
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.h100 SADDO, SSUBO, UADDO, USUBO, ADDCARRY, SUBCARRY, enumerator
H A DSystemZISelLowering.cpp186 setOperationAction(ISD::ADDCARRY, VT, Custom); in SystemZTargetLowering()
3757 while (Carry.getOpcode() == ISD::ADDCARRY) in isAddCarryChain()
3789 case ISD::ADDCARRY: in lowerADDSUBCARRY()
3793 BaseOp = SystemZISD::ADDCARRY; in lowerADDSUBCARRY()
5467 case ISD::ADDCARRY: in LowerOperation()
5633 OPCODE(ADDCARRY); in getTargetNodeName()
H A DSystemZOperators.td286 def z_addcarry_1 : SDNode<"SystemZISD::ADDCARRY", SDT_ZBinaryWithCarry>;
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeIntegerTypes.cpp164 case ISD::ADDCARRY: in PromoteIntegerResult()
1535 case ISD::ADDCARRY: in PromoteIntegerOperand()
2196 case ISD::ADDCARRY: in ExpandIntegerResult()
2601 N->getOpcode() == ISD::ADD ? ISD::ADDCARRY : ISD::SUBCARRY, in ExpandIntRes_ADDSUB()
2608 Hi = DAG.getNode(ISD::ADDCARRY, dl, VTList, HiOps); in ExpandIntRes_ADDSUB()
2773 CarryOp = ISD::ADDCARRY; in ExpandIntRes_UADDSUBO()
2849 unsigned CarryOp = N->getOpcode() == ISD::SADDO_CARRY ? ISD::ADDCARRY in ExpandIntRes_SADDSUBO_CARRY()
2979 ISD::ADDCARRY, TLI.getTypeToExpandTo(*DAG.getContext(), NVT)); in ExpandIntRes_ABS()
2987 Hi = DAG.getNode(ISD::ADDCARRY, dl, VTList, Hi, Sign, Lo.getValue(1)); in ExpandIntRes_ABS()
H A DSelectionDAGDumper.cpp301 case ISD::ADDCARRY: return "addcarry"; in getOperationName()
H A DDAGCombiner.cpp1624 case ISD::ADDCARRY: return visitADDCARRY(N); in visit()
2713 return DAG.getNode(ISD::ADDCARRY, DL, N1->getVTList(), in visitADDLikeCommutative()
2717 if (TLI.isOperationLegalOrCustom(ISD::ADDCARRY, VT)) in visitADDLikeCommutative()
2719 return DAG.getNode(ISD::ADDCARRY, DL, in visitADDLikeCommutative()
2861 if (TLI.isOperationLegalOrCustom(ISD::ADDCARRY, VT)) in visitUADDOLike()
2985 if (Carry0.getOpcode() == ISD::ADDCARRY && in combineADDCARRYDiamond()
3002 return DAG.getNode(ISD::ADDCARRY, DL, N->getVTList(), X, in combineADDCARRYDiamond()
3146 return DAG.getNode(ISD::ADDCARRY, SDLoc(N), N->getVTList(), in visitADDCARRYLike()
3589 if (TLI.isOperationLegalOrCustom(ISD::ADDCARRY, VT)) { in visitSUB()
3595 return DAG.getNode(ISD::ADDCARRY, DL, in visitSUB()
[all …]
H A DLegalizeDAG.cpp3394 case ISD::ADDCARRY: in ExpandNode()
3400 bool IsAdd = Node->getOpcode() == ISD::ADDCARRY; in ExpandNode()
H A DTargetLowering.cpp6429 Next = DAG.getNode(ISD::ADDCARRY, dl, DAG.getVTList(VT, BoolType), Next, in expandMUL_LOHI()
6443 Hi = DAG.getNode(ISD::ADDCARRY, dl, DAG.getVTList(HiLoVT, BoolType), Hi, in expandMUL_LOHI()
8360 unsigned OpcCarry = IsAdd ? ISD::ADDCARRY : ISD::SUBCARRY; in expandUADDSUBO()
H A DSelectionDAG.cpp3341 case ISD::ADDCARRY: in computeKnownBits()
3361 else if (Opcode == ISD::ADDCARRY) in computeKnownBits()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelDAGToDAG.cpp803 case ISD::ADDCARRY: in Select()
1153 unsigned Opc = N->getOpcode() == ISD::ADDCARRY ? AMDGPU::V_ADDC_U32_e64 in SelectAddcSubb()
1160 unsigned Opc = N->getOpcode() == ISD::ADDCARRY ? AMDGPU::S_ADD_CO_PSEUDO in SelectAddcSubb()
1176 if ((IsAdd && (UI->getOpcode() != ISD::ADDCARRY)) || in SelectUADDO_USUBO()
H A DAMDGPUISelLowering.cpp1901 SDValue Add1_Lo = DAG.getNode(ISD::ADDCARRY, DL, HalfCarryVT, Rcp_Lo, in LowerUDIVREM64()
1903 SDValue Add1_Hi = DAG.getNode(ISD::ADDCARRY, DL, HalfCarryVT, Rcp_Hi, in LowerUDIVREM64()
1916 SDValue Add2_Lo = DAG.getNode(ISD::ADDCARRY, DL, HalfCarryVT, Add1_Lo, in LowerUDIVREM64()
1918 SDValue Add2_HiC = DAG.getNode(ISD::ADDCARRY, DL, HalfCarryVT, Add1_HiNc, in LowerUDIVREM64()
1920 SDValue Add2_Hi = DAG.getNode(ISD::ADDCARRY, DL, HalfCarryVT, Add2_HiC, in LowerUDIVREM64()
H A DSIISelLowering.cpp255 setOperationAction(ISD::ADDCARRY, MVT::i32, Legal); in SITargetLowering()
263 setOperationAction(ISD::ADDCARRY, MVT::i64, Legal); in SITargetLowering()
838 setTargetDAGCombine(ISD::ADDCARRY); in SITargetLowering()
10372 Opc == ISD::ANY_EXTEND || Opc == ISD::ADDCARRY) in performAddCombine()
10388 Opc = (Opc == ISD::SIGN_EXTEND) ? ISD::SUBCARRY : ISD::ADDCARRY; in performAddCombine()
10391 case ISD::ADDCARRY: { in performAddCombine()
10396 return DAG.getNode(ISD::ADDCARRY, SDLoc(N), RHS->getVTList(), Args); in performAddCombine()
10429 Opc = (Opc == ISD::SIGN_EXTEND) ? ISD::ADDCARRY : ISD::SUBCARRY; in performSubCombine()
10462 if ((LHSOpc == ISD::ADD && Opc == ISD::ADDCARRY) || in performAddCarrySubCarryCombine()
10815 case ISD::ADDCARRY: in PerformDAGCombine()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp1559 setOperationAction(ISD::ADDCARRY, VT, Expand); in HexagonTargetLowering()
1562 setOperationAction(ISD::ADDCARRY, MVT::i64, Custom); in HexagonTargetLowering()
3114 if (Opc == ISD::ADDCARRY) in LowerAddSubCarry()
3187 case ISD::ADDCARRY: in LowerOperation()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringBase.cpp804 setOperationAction(ISD::ADDCARRY, VT, Expand); in initActions()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp1106 setOperationAction(ISD::ADDCARRY, MVT::i32, Custom); in ARMTargetLowering()
9529 if (Op.getOpcode() == ISD::ADDCARRY) { in LowerADDSUBCARRY()
10187 case ISD::ADDCARRY: in LowerOperation()
17266 Res = DAG.getNode(ISD::ADDCARRY, dl, VTs, Sub, Neg, Carry); in PerformCMOVCombine()
19679 if (!isOperationLegalOrCustom(ISD::ADDCARRY, HalfT) || in lowerABS()
19695 Hi = DAG.getNode(ISD::ADDCARRY, dl, VTList, Tmp, Hi, in lowerABS()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp594 case ISD::ADDCARRY: in IsProfitableToFold()
H A DX86ISelLowering.cpp1959 setOperationAction(ISD::ADDCARRY, VT, Custom); in X86TargetLowering()
30036 bool IsAdd = Opc == ISD::ADDCARRY || Opc == ISD::SADDO_CARRY; in LowerADDSUBCARRY()
30554 case ISD::ADDCARRY: in LowerOperation()