reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
2551 EXPECT_EQ(0, APIntOps::RoundingSDiv(Zero, A, APInt::Rounding::UP)); 2552 EXPECT_EQ(0, APIntOps::RoundingSDiv(Zero, A, APInt::Rounding::DOWN)); 2553 EXPECT_EQ(0, APIntOps::RoundingSDiv(Zero, A, APInt::Rounding::TOWARD_ZERO)); 2562 APInt Quo = APIntOps::RoundingSDiv(A, B, APInt::Rounding::UP); 2564 EXPECT_TRUE(Prod.uge(A)); 2565 if (Prod.ugt(A)) { 2566 EXPECT_TRUE(((Quo - 1).sext(16) * B.sext(16)).ult(A)); 2570 APInt Quo = APIntOps::RoundingSDiv(A, B, APInt::Rounding::DOWN); 2572 EXPECT_TRUE(Prod.ule(A)); 2573 if (Prod.ult(A)) { 2574 EXPECT_TRUE(((Quo + 1).sext(16) * B.sext(16)).ugt(A)); 2578 APInt Quo = A.sdiv(B); 2579 EXPECT_EQ(Quo, APIntOps::RoundingSDiv(A, B, APInt::Rounding::TOWARD_ZERO));