Lines Matching refs:APInt
31 ForeachNumInKnownBits(Known1, [&](const APInt &N1) { in TEST()
32 ForeachNumInKnownBits(Known2, [&](const APInt &N2) { in TEST()
33 ForeachNumInKnownBits(KnownCarry, [&](const APInt &Carry) { in TEST()
34 APInt Add = N1 + N2; in TEST()
62 ForeachNumInKnownBits(Known1, [&](const APInt &N1) { in TestAddSubExhaustive()
63 ForeachNumInKnownBits(Known2, [&](const APInt &N2) { in TestAddSubExhaustive()
65 APInt Res; in TestAddSubExhaustive()
123 ForeachNumInKnownBits(Known1, [&](const APInt &N1) { in TEST()
124 ForeachNumInKnownBits(Known2, [&](const APInt &N2) { in TEST()
125 APInt Res; in TEST()
268 ForeachNumInKnownBits(Known, [&](const APInt &N) { in TEST()
269 APInt Res = N * N; in TEST()
288 ForeachNumInKnownBits(Known, [&](const APInt &N) { in TEST()
289 APInt Res = N.abs(); in TEST()
325 ForeachNumInKnownBits(Known1, [&](const APInt &N1) { in TEST()
326 ForeachNumInKnownBits(Known2, [&](const APInt &N2) { in TEST()
400 APInt Min = APInt::getMaxValue(Bits); in TEST()
401 APInt Max = APInt::getMinValue(Bits); in TEST()
402 ForeachNumInKnownBits(Known, [&](const APInt &N) { in TEST()
414 APInt Min = APInt::getSignedMaxValue(Bits); in TEST()
415 APInt Max = APInt::getSignedMinValue(Bits); in TEST()
416 ForeachNumInKnownBits(Known, [&](const APInt &N) { in TEST()
429 ForeachNumInKnownBits(Known, [&](const APInt &N) { in TEST()
440 ForeachNumInKnownBits(Known, [&](const APInt &N) { in TEST()
451 APInt NegativeFitsNarrower(BaseSize, -4, /*isSigned*/ true); in TEST()
452 APInt NegativeDoesntFitNarrower(BaseSize, -28, /*isSigned*/ true); in TEST()
453 APInt PositiveFitsNarrower(BaseSize, 14); in TEST()
454 APInt PositiveDoesntFitNarrower(BaseSize, 36); in TEST()
455 auto InitKnownBits = [&](KnownBits &Res, const APInt &Input) { in TEST()
462 for (const APInt &Input : in TEST()
479 APInt CommonOne = APInt::getAllOnes(Bits); in TEST()
480 APInt CommonZero = APInt::getAllOnes(Bits); in TEST()
482 ForeachNumInKnownBits(Known, [&](const APInt &N) { in TEST()
483 APInt Ext = N << ExtBits; in TEST()
500 ForeachNumInKnownBits(Known1, [&](const APInt &N1) { in TEST()
501 ForeachNumInKnownBits(Known2, [&](const APInt &N2) { in TEST()