Lines Matching refs:Overflow
1926 APInt APInt::sadd_ov(const APInt &RHS, bool &Overflow) const { in sadd_ov()
1928 Overflow = isNonNegative() == RHS.isNonNegative() && in sadd_ov()
1933 APInt APInt::uadd_ov(const APInt &RHS, bool &Overflow) const { in uadd_ov()
1935 Overflow = Res.ult(RHS); in uadd_ov()
1939 APInt APInt::ssub_ov(const APInt &RHS, bool &Overflow) const { in ssub_ov()
1941 Overflow = isNonNegative() != RHS.isNonNegative() && in ssub_ov()
1946 APInt APInt::usub_ov(const APInt &RHS, bool &Overflow) const { in usub_ov()
1948 Overflow = Res.ugt(*this); in usub_ov()
1952 APInt APInt::sdiv_ov(const APInt &RHS, bool &Overflow) const { in sdiv_ov()
1954 Overflow = isMinSignedValue() && RHS.isAllOnes(); in sdiv_ov()
1958 APInt APInt::smul_ov(const APInt &RHS, bool &Overflow) const { in smul_ov()
1962 Overflow = Res.sdiv(RHS) != *this || in smul_ov()
1965 Overflow = false; in smul_ov()
1969 APInt APInt::umul_ov(const APInt &RHS, bool &Overflow) const { in umul_ov()
1971 Overflow = true; in umul_ov()
1976 Overflow = Res.isNegative(); in umul_ov()
1981 Overflow = true; in umul_ov()
1986 APInt APInt::sshl_ov(const APInt &ShAmt, bool &Overflow) const { in sshl_ov()
1987 Overflow = ShAmt.uge(getBitWidth()); in sshl_ov()
1988 if (Overflow) in sshl_ov()
1992 Overflow = ShAmt.uge(countLeadingZeros()); in sshl_ov()
1994 Overflow = ShAmt.uge(countLeadingOnes()); in sshl_ov()
1999 APInt APInt::ushl_ov(const APInt &ShAmt, bool &Overflow) const { in ushl_ov()
2000 Overflow = ShAmt.uge(getBitWidth()); in ushl_ov()
2001 if (Overflow) in ushl_ov()
2004 Overflow = ShAmt.ugt(countLeadingZeros()); in ushl_ov()
2010 bool Overflow; in sadd_sat() local
2011 APInt Res = sadd_ov(RHS, Overflow); in sadd_sat()
2012 if (!Overflow) in sadd_sat()
2020 bool Overflow; in uadd_sat() local
2021 APInt Res = uadd_ov(RHS, Overflow); in uadd_sat()
2022 if (!Overflow) in uadd_sat()
2029 bool Overflow; in ssub_sat() local
2030 APInt Res = ssub_ov(RHS, Overflow); in ssub_sat()
2031 if (!Overflow) in ssub_sat()
2039 bool Overflow; in usub_sat() local
2040 APInt Res = usub_ov(RHS, Overflow); in usub_sat()
2041 if (!Overflow) in usub_sat()
2048 bool Overflow; in smul_sat() local
2049 APInt Res = smul_ov(RHS, Overflow); in smul_sat()
2050 if (!Overflow) in smul_sat()
2061 bool Overflow; in umul_sat() local
2062 APInt Res = umul_ov(RHS, Overflow); in umul_sat()
2063 if (!Overflow) in umul_sat()
2070 bool Overflow; in sshl_sat() local
2071 APInt Res = sshl_ov(RHS, Overflow); in sshl_sat()
2072 if (!Overflow) in sshl_sat()
2080 bool Overflow; in ushl_sat() local
2081 APInt Res = ushl_ov(RHS, Overflow); in ushl_sat()
2082 if (!Overflow) in ushl_sat()