Lines Matching refs:OtherVal
66 APSInt OtherVal = Other.getValue(); in compare() local
68 bool OtherSigned = OtherVal.isSigned(); in compare()
70 unsigned OtherWidth = OtherVal.getBitWidth(); in compare()
79 OtherVal = OtherVal.extOrTrunc(CommonWidth); in compare()
83 OtherVal = OtherVal.shl(CommonScale - OtherScale); in compare()
86 if (ThisVal.sgt(OtherVal)) in compare()
88 else if (ThisVal.slt(OtherVal)) in compare()
91 if (ThisVal.ugt(OtherVal)) in compare()
93 else if (ThisVal.ult(OtherVal)) in compare()
98 else if (ThisVal.ugt(OtherVal)) in compare()
100 else if (ThisVal.ult(OtherVal)) in compare()
104 if (OtherVal.isSignBitSet()) in compare()
106 else if (ThisVal.ugt(OtherVal)) in compare()
108 else if (ThisVal.ult(OtherVal)) in compare()
182 APSInt OtherVal = ConvertedOther.getValue(); in add() local
187 Result = CommonFXSema.isSigned() ? ThisVal.sadd_sat(OtherVal) in add()
188 : ThisVal.uadd_sat(OtherVal); in add()
190 Result = ThisVal.isSigned() ? ThisVal.sadd_ov(OtherVal, Overflowed) in add()
191 : ThisVal.uadd_ov(OtherVal, Overflowed); in add()
206 APSInt OtherVal = ConvertedOther.getValue(); in sub() local
211 Result = CommonFXSema.isSigned() ? ThisVal.ssub_sat(OtherVal) in sub()
212 : ThisVal.usub_sat(OtherVal); in sub()
214 Result = ThisVal.isSigned() ? ThisVal.ssub_ov(OtherVal, Overflowed) in sub()
215 : ThisVal.usub_ov(OtherVal, Overflowed); in sub()
230 APSInt OtherVal = ConvertedOther.getValue(); in mul() local
237 OtherVal = OtherVal.sext(Wide); in mul()
240 OtherVal = OtherVal.zext(Wide); in mul()
252 Result = ThisVal.smul_ov(OtherVal, Overflowed) in mul()
255 Result = ThisVal.umul_ov(OtherVal, Overflowed) in mul()
287 APSInt OtherVal = ConvertedOther.getValue(); in div() local
294 OtherVal = OtherVal.sext(Wide); in div()
297 OtherVal = OtherVal.zext(Wide); in div()
306 APInt::sdivrem(ThisVal, OtherVal, Result, Rem); in div()
309 if (ThisVal.isNegative() != OtherVal.isNegative() && !Rem.isZero()) in div()
312 Result = ThisVal.udiv(OtherVal); in div()