Lines Matching refs:Overflow
1934 APInt APInt::sadd_ov(const APInt &RHS, bool &Overflow) const { in sadd_ov()
1936 Overflow = isNonNegative() == RHS.isNonNegative() && in sadd_ov()
1941 APInt APInt::uadd_ov(const APInt &RHS, bool &Overflow) const { in uadd_ov()
1943 Overflow = Res.ult(RHS); in uadd_ov()
1947 APInt APInt::ssub_ov(const APInt &RHS, bool &Overflow) const { in ssub_ov()
1949 Overflow = isNonNegative() != RHS.isNonNegative() && in ssub_ov()
1954 APInt APInt::usub_ov(const APInt &RHS, bool &Overflow) const { in usub_ov()
1956 Overflow = Res.ugt(*this); in usub_ov()
1960 APInt APInt::sdiv_ov(const APInt &RHS, bool &Overflow) const { in sdiv_ov()
1962 Overflow = isMinSignedValue() && RHS.isAllOnes(); in sdiv_ov()
1966 APInt APInt::smul_ov(const APInt &RHS, bool &Overflow) const { in smul_ov()
1970 Overflow = Res.sdiv(RHS) != *this || in smul_ov()
1973 Overflow = false; in smul_ov()
1977 APInt APInt::umul_ov(const APInt &RHS, bool &Overflow) const { in umul_ov()
1979 Overflow = true; in umul_ov()
1984 Overflow = Res.isNegative(); in umul_ov()
1989 Overflow = true; in umul_ov()
1994 APInt APInt::sshl_ov(const APInt &ShAmt, bool &Overflow) const { in sshl_ov()
1995 return sshl_ov(ShAmt.getLimitedValue(getBitWidth()), Overflow); in sshl_ov()
1998 APInt APInt::sshl_ov(unsigned ShAmt, bool &Overflow) const { in sshl_ov()
1999 Overflow = ShAmt >= getBitWidth(); in sshl_ov()
2000 if (Overflow) in sshl_ov()
2004 Overflow = ShAmt >= countl_zero(); in sshl_ov()
2006 Overflow = ShAmt >= countl_one(); in sshl_ov()
2011 APInt APInt::ushl_ov(const APInt &ShAmt, bool &Overflow) const { in ushl_ov()
2012 return ushl_ov(ShAmt.getLimitedValue(getBitWidth()), Overflow); in ushl_ov()
2015 APInt APInt::ushl_ov(unsigned ShAmt, bool &Overflow) const { in ushl_ov()
2016 Overflow = ShAmt >= getBitWidth(); in ushl_ov()
2017 if (Overflow) in ushl_ov()
2020 Overflow = ShAmt > countl_zero(); in ushl_ov()
2026 bool Overflow; in sadd_sat() local
2027 APInt Res = sadd_ov(RHS, Overflow); in sadd_sat()
2028 if (!Overflow) in sadd_sat()
2036 bool Overflow; in uadd_sat() local
2037 APInt Res = uadd_ov(RHS, Overflow); in uadd_sat()
2038 if (!Overflow) in uadd_sat()
2045 bool Overflow; in ssub_sat() local
2046 APInt Res = ssub_ov(RHS, Overflow); in ssub_sat()
2047 if (!Overflow) in ssub_sat()
2055 bool Overflow; in usub_sat() local
2056 APInt Res = usub_ov(RHS, Overflow); in usub_sat()
2057 if (!Overflow) in usub_sat()
2064 bool Overflow; in smul_sat() local
2065 APInt Res = smul_ov(RHS, Overflow); in smul_sat()
2066 if (!Overflow) in smul_sat()
2077 bool Overflow; in umul_sat() local
2078 APInt Res = umul_ov(RHS, Overflow); in umul_sat()
2079 if (!Overflow) in umul_sat()
2090 bool Overflow; in sshl_sat() local
2091 APInt Res = sshl_ov(RHS, Overflow); in sshl_sat()
2092 if (!Overflow) in sshl_sat()
2104 bool Overflow; in ushl_sat() local
2105 APInt Res = ushl_ov(RHS, Overflow); in ushl_sat()
2106 if (!Overflow) in ushl_sat()