Lines Matching refs:Overflow
2015 APInt APInt::sadd_ov(const APInt &RHS, bool &Overflow) const { in sadd_ov()
2017 Overflow = isNonNegative() == RHS.isNonNegative() && in sadd_ov()
2022 APInt APInt::uadd_ov(const APInt &RHS, bool &Overflow) const { in uadd_ov()
2024 Overflow = Res.ult(RHS); in uadd_ov()
2028 APInt APInt::ssub_ov(const APInt &RHS, bool &Overflow) const { in ssub_ov()
2030 Overflow = isNonNegative() != RHS.isNonNegative() && in ssub_ov()
2035 APInt APInt::usub_ov(const APInt &RHS, bool &Overflow) const { in usub_ov()
2037 Overflow = Res.ugt(*this); in usub_ov()
2041 APInt APInt::sdiv_ov(const APInt &RHS, bool &Overflow) const { in sdiv_ov()
2043 Overflow = isMinSignedValue() && RHS.isAllOnesValue(); in sdiv_ov()
2047 APInt APInt::smul_ov(const APInt &RHS, bool &Overflow) const { in smul_ov()
2051 Overflow = Res.sdiv(RHS) != *this || Res.sdiv(*this) != RHS; in smul_ov()
2053 Overflow = false; in smul_ov()
2057 APInt APInt::umul_ov(const APInt &RHS, bool &Overflow) const { in umul_ov()
2061 Overflow = Res.udiv(RHS) != *this || Res.udiv(*this) != RHS; in umul_ov()
2063 Overflow = false; in umul_ov()
2067 APInt APInt::sshl_ov(const APInt &ShAmt, bool &Overflow) const { in sshl_ov()
2068 Overflow = ShAmt.uge(getBitWidth()); in sshl_ov()
2069 if (Overflow) in sshl_ov()
2073 Overflow = ShAmt.uge(countLeadingZeros()); in sshl_ov()
2075 Overflow = ShAmt.uge(countLeadingOnes()); in sshl_ov()
2080 APInt APInt::ushl_ov(const APInt &ShAmt, bool &Overflow) const { in ushl_ov()
2081 Overflow = ShAmt.uge(getBitWidth()); in ushl_ov()
2082 if (Overflow) in ushl_ov()
2085 Overflow = ShAmt.ugt(countLeadingZeros()); in ushl_ov()