Searched refs:ADDCARRY (Results 1 - 25 of 28) sorted by relevance

12

/freebsd-11-stable/sys/arm/arm/
H A Din_cksum.c59 #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) macro
70 ADDCARRY(sum); \
88 ADDCARRY(sum);
/freebsd-11-stable/sys/netpfil/pf/
H A Din4_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]; (void)ADDCARRY(sum);}
/freebsd-11-stable/contrib/tcpdump/
H A Din_cksum.c4 * Tahoe/CGI version of ADDCARRY(x) macro instead of from portable version.
53 #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-11-stable/sys/netinet/
H A Din_cksum.c45 #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) macro
46 #define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);}
/freebsd-11-stable/sys/i386/i386/
H A Din_cksum.c55 #undef ADDCARRY macro
56 #define ADDCARRY(x) if ((x) > 0xffff) (x) -= 0xffff macro
73 ADDCARRY(sum); \
76 #define REDUCE {sum = (sum & 0xffff) + (sum >> 16); ADDCARRY(sum);}
182 ADDCARRY(sum);
/freebsd-11-stable/sys/arm64/arm64/
H A Din_cksum.c59 #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) macro
70 ADDCARRY(sum); \
177 ADDCARRY(sum);
/freebsd-11-stable/sys/amd64/amd64/
H A Din_cksum.c59 #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) macro
70 ADDCARRY(sum); \
177 ADDCARRY(sum);
/freebsd-11-stable/sys/powerpc/powerpc/
H A Din_cksum.c59 #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) macro
70 ADDCARRY(sum); \
185 ADDCARRY(sum);
/freebsd-11-stable/sys/riscv/riscv/
H A Din_cksum.c59 #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) macro
70 ADDCARRY(sum); \
177 ADDCARRY(sum);
/freebsd-11-stable/sys/mips/mips/
H A Din_cksum.c57 #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) macro
68 ADDCARRY(sum); \
183 ADDCARRY(sum);
/freebsd-11-stable/sys/netinet6/
H A Din6_cksum.c80 #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) macro
81 #define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; (void)ADDCARRY(sum);}
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DISDOpcodes.h221 /// FIXME: These nodes are deprecated in favor of ADDCARRY and SUBCARRY.
223 /// toward the use of ADDCARRY/SUBCARRY and will eventually be removed.
243 ADDCARRY, SUBCARRY, enumerator in enum:llvm::ISD::NodeType
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.h99 SADDO, SSUBO, UADDO, USUBO, ADDCARRY, SUBCARRY,
H A DSystemZISelLowering.cpp182 setOperationAction(ISD::ADDCARRY, VT, Custom);
3639 while (Carry.getOpcode() == ISD::ADDCARRY)
3650 // Lower ADDCARRY/SUBCARRY nodes.
3671 case ISD::ADDCARRY:
3675 BaseOp = SystemZISD::ADDCARRY;
5140 case ISD::ADDCARRY:
5327 OPCODE(ADDCARRY);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGDumper.cpp291 case ISD::ADDCARRY: return "addcarry";
H A DLegalizeIntegerTypes.cpp150 case ISD::ADDCARRY:
1101 // Handle promotion for the ADDE/SUBE/ADDCARRY/SUBCARRY nodes. Notice that
1103 // the ADDCARRY/SUBCARRY nodes in that the third operand is carry Boolean.
1111 // An ADDCARRY can generate carry only if any of the operands has its
1308 case ISD::ADDCARRY:
1904 case ISD::ADDCARRY:
2277 N->getOpcode() == ISD::ADD ? ISD::ADDCARRY : ISD::SUBCARRY,
2284 Hi = DAG.getNode(ISD::ADDCARRY, dl, VTList, HiOps);
2449 CarryOp = ISD::ADDCARRY;
H A DDAGCombiner.cpp1521 case ISD::ADDCARRY: return visitADDCARRY(N);
2396 if (V.getOpcode() != ISD::ADDCARRY && V.getOpcode() != ISD::SUBCARRY &&
2497 if (N1.getOpcode() == ISD::ADDCARRY && isNullConstant(N1.getOperand(1)) &&
2499 return DAG.getNode(ISD::ADDCARRY, DL, N1->getVTList(),
2503 if (TLI.isOperationLegalOrCustom(ISD::ADDCARRY, VT))
2505 return DAG.getNode(ISD::ADDCARRY, DL,
2656 if (N1.getOpcode() == ISD::ADDCARRY && isNullConstant(N1.getOperand(1))) {
2660 return DAG.getNode(ISD::ADDCARRY, SDLoc(N), N->getVTList(), N0, Y,
2665 if (TLI.isOperationLegalOrCustom(ISD::ADDCARRY, VT))
2667 return DAG.getNode(ISD::ADDCARRY, SDLo
[all...]
H A DTargetLowering.cpp5885 Next = DAG.getNode(ISD::ADDCARRY, dl, DAG.getVTList(VT, BoolType), Next,
5899 Hi = DAG.getNode(ISD::ADDCARRY, dl, DAG.getVTList(HiLoVT, BoolType), Hi,
7404 unsigned OpcCarry = IsAdd ? ISD::ADDCARRY : ISD::SUBCARRY;
H A DLegalizeDAG.cpp3440 case ISD::ADDCARRY:
3446 bool IsAdd = Node->getOpcode() == ISD::ADDCARRY;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp1400 setOperationAction(ISD::ADDCARRY, VT, Expand);
1403 setOperationAction(ISD::ADDCARRY, MVT::i64, Custom);
2842 if (Opc == ISD::ADDCARRY)
2915 case ISD::ADDCARRY:
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp1712 SDValue Add1_Lo = DAG.getNode(ISD::ADDCARRY, DL, HalfCarryVT, Rcp_Lo,
1714 SDValue Add1_Hi = DAG.getNode(ISD::ADDCARRY, DL, HalfCarryVT, Rcp_Hi,
1727 SDValue Add2_Lo = DAG.getNode(ISD::ADDCARRY, DL, HalfCarryVT, Add1_Lo,
1729 SDValue Add2_HiC = DAG.getNode(ISD::ADDCARRY, DL, HalfCarryVT, Add1_HiNc,
1731 SDValue Add2_Hi = DAG.getNode(ISD::ADDCARRY, DL, HalfCarryVT, Add2_HiC,
H A DSIISelLowering.cpp247 setOperationAction(ISD::ADDCARRY, MVT::i32, Legal);
255 setOperationAction(ISD::ADDCARRY, MVT::i64, Legal);
717 setTargetDAGCombine(ISD::ADDCARRY);
9557 Opc == ISD::ANY_EXTEND || Opc == ISD::ADDCARRY)
9573 Opc = (Opc == ISD::SIGN_EXTEND) ? ISD::SUBCARRY : ISD::ADDCARRY;
9576 case ISD::ADDCARRY: {
9581 return DAG.getNode(ISD::ADDCARRY, SDLoc(N), RHS->getVTList(), Args);
9614 Opc = (Opc == ISD::SIGN_EXTEND) ? ISD::ADDCARRY : ISD::SUBCARRY;
9647 if ((LHSOpc == ISD::ADD && Opc == ISD::ADDCARRY) ||
9994 case ISD::ADDCARRY
[all...]
H A DAMDGPUISelDAGToDAG.cpp767 case ISD::ADDCARRY:
1066 unsigned Opc = N->getOpcode() == ISD::ADDCARRY ? AMDGPU::V_ADDC_U32_e64
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringBase.cpp672 // ADDCARRY operations default to expand
673 setOperationAction(ISD::ADDCARRY, VT, Expand);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp1046 setOperationAction(ISD::ADDCARRY, MVT::i32, Custom);
8838 if (Op.getOpcode() == ISD::ADDCARRY) {
9352 case ISD::ADDCARRY:
14523 // (ADDCARRY (SUB x, y), t:0, t:1)
14529 // The final ADDCARRY computes
14539 Res = DAG.getNode(ISD::ADDCARRY, dl, VTs, Sub, Neg, Carry);
16474 if (!isOperationLegalOrCustom(ISD::ADDCARRY, HalfT) ||
16490 Hi = DAG.getNode(ISD::ADDCARRY, dl, VTList, Tmp, Hi,

Completed in 356 milliseconds

12