Lines Matching refs:OtherVal

75   APSInt OtherVal = Other.getValue();  in compare()  local
77 bool OtherSigned = OtherVal.isSigned(); in compare()
84 OtherVal = OtherVal.extOrTrunc(CommonWidth); in compare()
87 OtherVal = OtherVal.shl(Other.getLsbWeight() - CommonLsb); in compare()
90 if (ThisVal.sgt(OtherVal)) in compare()
92 else if (ThisVal.slt(OtherVal)) in compare()
95 if (ThisVal.ugt(OtherVal)) in compare()
97 else if (ThisVal.ult(OtherVal)) in compare()
102 else if (ThisVal.ugt(OtherVal)) in compare()
104 else if (ThisVal.ult(OtherVal)) in compare()
108 if (OtherVal.isSignBitSet()) in compare()
110 else if (ThisVal.ugt(OtherVal)) in compare()
112 else if (ThisVal.ult(OtherVal)) in compare()
187 APSInt OtherVal = ConvertedOther.getValue(); in add() local
192 Result = CommonFXSema.isSigned() ? ThisVal.sadd_sat(OtherVal) in add()
193 : ThisVal.uadd_sat(OtherVal); in add()
195 Result = ThisVal.isSigned() ? ThisVal.sadd_ov(OtherVal, Overflowed) in add()
196 : ThisVal.uadd_ov(OtherVal, Overflowed); in add()
211 APSInt OtherVal = ConvertedOther.getValue(); in sub() local
216 Result = CommonFXSema.isSigned() ? ThisVal.ssub_sat(OtherVal) in sub()
217 : ThisVal.usub_sat(OtherVal); in sub()
219 Result = ThisVal.isSigned() ? ThisVal.ssub_ov(OtherVal, Overflowed) in sub()
220 : ThisVal.usub_ov(OtherVal, Overflowed); in sub()
235 APSInt OtherVal = ConvertedOther.getValue(); in mul() local
242 OtherVal = OtherVal.sext(Wide); in mul()
245 OtherVal = OtherVal.zext(Wide); in mul()
257 Result = ThisVal.smul_ov(OtherVal, Overflowed) in mul()
260 Result = ThisVal.umul_ov(OtherVal, Overflowed) in mul()
292 APSInt OtherVal = ConvertedOther.getValue(); in div() local
302 OtherVal = OtherVal.sext(Wide); in div()
305 OtherVal = OtherVal.zext(Wide); in div()
313 OtherVal = OtherVal.shl(CommonFXSema.getLsbWeight()); in div()
317 APInt::sdivrem(ThisVal, OtherVal, Result, Rem); in div()
320 if (ThisVal.isNegative() != OtherVal.isNegative() && !Rem.isZero()) in div()
323 Result = ThisVal.udiv(OtherVal); in div()