Lines Matching refs:two
128 const APInt two(1, 2);
136 EXPECT_EQ(0u, two.getZExtValue());
137 EXPECT_EQ(0, two.getSExtValue());
140 EXPECT_EQ(zero, two);
143 EXPECT_EQ(two, neg_two);
152 EXPECT_EQ(two, one + one);
158 EXPECT_EQ(two, one - neg_one);
202 APInt two(8, 2);
206 EXPECT_EQ(nine.srem(two), one);
207 EXPECT_EQ(nine.srem(-two), one);
208 EXPECT_EQ((-nine).srem(two), -one);
209 EXPECT_EQ((-nine).srem(-two), -one);
211 APInt::sdivrem(nine, two, q, r);
214 APInt::sdivrem(-nine, two, q, r);
217 APInt::sdivrem(nine, -two, q, r);
220 APInt::sdivrem(-nine, -two, q, r);