Home
last modified time | relevance | path

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

12

/openbsd/sys/arch/hppa/hppa/
H A Din_cksum.c63 #define ADDCARRY {if (sum > 0xffff) sum -= 0xffff;} macro
64 #define REDUCE {sum = (sum & 0xffff) + (sum >> 16); ADDCARRY}
/openbsd/sys/arch/m88k/m88k/
H A Din_cksum.c47 #define ADDCARRY do { REDUCE; REDUCE; } while (0) macro
83 ADDCARRY; in in_cksum_internal()
/openbsd/sys/netinet/
H A Din_cksum.c46 #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) macro
47 #define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);}
H A Din4_cksum.c85 #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) macro
86 #define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);}
/openbsd/sys/arch/alpha/alpha/
H A Din_cksum.c53 #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) macro
64 ADDCARRY(sum); \
/openbsd/sys/netinet6/
H A Din6_cksum.c77 #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) macro
78 #define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);}
/openbsd/gnu/llvm/llvm/include/llvm/CodeGen/
H A DISDOpcodes.h303 ADDCARRY, enumerator
/openbsd/gnu/llvm/llvm/lib/Target/CSKY/
H A DCSKYISelDAGToDAG.cpp77 case ISD::ADDCARRY: in INITIALIZE_PASS()
H A DCSKYISelLowering.cpp54 setOperationAction(ISD::ADDCARRY, MVT::i32, Legal); in CSKYTargetLowering()
/openbsd/gnu/llvm/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.h101 SADDO, SSUBO, UADDO, USUBO, ADDCARRY, SUBCARRY, enumerator
H A DSystemZOperators.td279 def z_addcarry_1 : SDNode<"SystemZISD::ADDCARRY", SDT_ZBinaryWithCarry>;
H A DSystemZISelLowering.cpp189 setOperationAction(ISD::ADDCARRY, VT, Custom); in SystemZTargetLowering()
3994 while (Carry.getOpcode() == ISD::ADDCARRY) in isAddCarryChain()
4026 case ISD::ADDCARRY: in lowerADDSUBCARRY()
4030 BaseOp = SystemZISD::ADDCARRY; in lowerADDSUBCARRY()
5742 case ISD::ADDCARRY: in LowerOperation()
5938 OPCODE(ADDCARRY); in getTargetNodeName()
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelDAGToDAG.cpp531 case ISD::ADDCARRY: in Select()
893 unsigned Opc = N->getOpcode() == ISD::ADDCARRY ? AMDGPU::V_ADDC_U32_e64 in SelectAddcSubb()
900 unsigned Opc = N->getOpcode() == ISD::ADDCARRY ? AMDGPU::S_ADD_CO_PSEUDO in SelectAddcSubb()
916 if ((IsAdd && (UI->getOpcode() != ISD::ADDCARRY)) || in SelectUADDO_USUBO()
H A DSIISelLowering.cpp247 setOperationAction({ISD::ADDCARRY, ISD::SUBCARRY}, MVT::i32, Legal); in SITargetLowering()
253 setOperationAction({ISD::ADDCARRY, ISD::SUBCARRY}, MVT::i64, Legal); in SITargetLowering()
747 ISD::ADDCARRY, in SITargetLowering()
11159 Opc == ISD::ANY_EXTEND || Opc == ISD::ADDCARRY) in performAddCombine()
11175 Opc = (Opc == ISD::SIGN_EXTEND) ? ISD::SUBCARRY : ISD::ADDCARRY; in performAddCombine()
11178 case ISD::ADDCARRY: { in performAddCombine()
11183 return DAG.getNode(ISD::ADDCARRY, SDLoc(N), RHS->getVTList(), Args); in performAddCombine()
11216 Opc = (Opc == ISD::SIGN_EXTEND) ? ISD::ADDCARRY : ISD::SUBCARRY; in performSubCombine()
11249 if ((LHSOpc == ISD::ADD && Opc == ISD::ADDCARRY) || in performAddCarrySubCarryCombine()
11602 case ISD::ADDCARRY: in PerformDAGCombine()
H A DAMDGPUISelLowering.cpp1882 SDValue Add1_Lo = DAG.getNode(ISD::ADDCARRY, DL, HalfCarryVT, Rcp_Lo, in LowerUDIVREM64()
1884 SDValue Add1_Hi = DAG.getNode(ISD::ADDCARRY, DL, HalfCarryVT, Rcp_Hi, in LowerUDIVREM64()
1896 SDValue Add2_Lo = DAG.getNode(ISD::ADDCARRY, DL, HalfCarryVT, Add1_Lo, in LowerUDIVREM64()
1898 SDValue Add2_Hi = DAG.getNode(ISD::ADDCARRY, DL, HalfCarryVT, Add1_Hi, in LowerUDIVREM64()
/openbsd/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGDumper.cpp310 case ISD::ADDCARRY: return "addcarry"; in getOperationName()
H A DLegalizeIntegerTypes.cpp194 case ISD::ADDCARRY: in PromoteIntegerResult()
1693 case ISD::ADDCARRY: in PromoteIntegerOperand()
2515 case ISD::ADDCARRY: in ExpandIntegerResult()
2934 N->getOpcode() == ISD::ADD ? ISD::ADDCARRY : ISD::SUBCARRY, in ExpandIntRes_ADDSUB()
2943 : DAG.getNode(ISD::ADDCARRY, dl, VTList, HiOps); in ExpandIntRes_ADDSUB()
3104 CarryOp = ISD::ADDCARRY; in ExpandIntRes_UADDSUBO()
3180 unsigned CarryOp = N->getOpcode() == ISD::SADDO_CARRY ? ISD::ADDCARRY in ExpandIntRes_SADDSUBO_CARRY()
H A DDAGCombiner.cpp1703 case ISD::ADDCARRY: return visitADDCARRY(N); in visit()
2890 return DAG.getNode(ISD::ADDCARRY, DL, N1->getVTList(), in visitADDLikeCommutative()
2894 if (TLI.isOperationLegalOrCustom(ISD::ADDCARRY, VT)) in visitADDLikeCommutative()
2896 return DAG.getNode(ISD::ADDCARRY, DL, in visitADDLikeCommutative()
3038 if (TLI.isOperationLegalOrCustom(ISD::ADDCARRY, VT)) in visitUADDOLike()
3173 if (Carry0.getOpcode() == ISD::ADDCARRY && in combineADDCARRYDiamond()
3190 return DAG.getNode(ISD::ADDCARRY, DL, N->getVTList(), X, in combineADDCARRYDiamond()
3338 return DAG.getNode(ISD::ADDCARRY, SDLoc(N), N->getVTList(), in visitADDCARRYLike()
3785 if (TLI.isOperationLegalOrCustom(ISD::ADDCARRY, VT)) { in visitSUB()
3791 return DAG.getNode(ISD::ADDCARRY, DL, in visitSUB()
[all …]
H A DTargetLowering.cpp7212 Next = DAG.getNode(ISD::ADDCARRY, dl, DAG.getVTList(VT, BoolType), Next, in expandMUL_LOHI()
7226 Hi = DAG.getNode(ISD::ADDCARRY, dl, DAG.getVTList(HiLoVT, BoolType), Hi, in expandMUL_LOHI()
7375 if (isOperationLegalOrCustom(ISD::ADDCARRY, HiLoVT)) { in expandDIVREMByConstant()
7378 Sum = DAG.getNode(ISD::ADDCARRY, dl, VTList, Sum, in expandDIVREMByConstant()
9893 unsigned OpcCarry = IsAdd ? ISD::ADDCARRY : ISD::SUBCARRY; in expandUADDSUBO()
H A DLegalizeDAG.cpp3480 case ISD::ADDCARRY: in ExpandNode()
3486 bool IsAdd = Node->getOpcode() == ISD::ADDCARRY; in ExpandNode()
H A DSelectionDAG.cpp3621 case ISD::ADDCARRY: in computeKnownBits()
3642 else if (Opcode == ISD::ADDCARRY || Opcode == ISD::SADDO_CARRY) in computeKnownBits()
4228 case ISD::ADDCARRY: in ComputeNumSignBits()
/openbsd/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp1552 setOperationAction(ISD::ADDCARRY, VT, Expand); in HexagonTargetLowering()
1555 setOperationAction(ISD::ADDCARRY, MVT::i64, Custom); in HexagonTargetLowering()
3275 if (Opc == ISD::ADDCARRY) in LowerAddSubCarry()
3348 case ISD::ADDCARRY: in LowerOperation()
/openbsd/gnu/llvm/llvm/lib/CodeGen/
H A DTargetLoweringBase.cpp825 setOperationAction({ISD::ADDCARRY, ISD::SUBCARRY, ISD::SETCCCARRY, in initActions()
/openbsd/gnu/llvm/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp1127 setOperationAction(ISD::ADDCARRY, MVT::i32, Custom); in ARMTargetLowering()
9809 if (Op.getOpcode() == ISD::ADDCARRY) { in LowerADDSUBCARRY()
10480 case ISD::ADDCARRY: in LowerOperation()
18268 Res = DAG.getNode(ISD::ADDCARRY, dl, VTs, Sub, Neg, Carry); in PerformCMOVCombine()
/openbsd/gnu/llvm/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp649 case ISD::ADDCARRY: in IsProfitableToFold()

12