Lines Matching refs:reverseBits
1840 TEST(APIntTest, reverseBits) { in TEST() argument
1841 EXPECT_EQ(1, APInt(1, 1).reverseBits()); in TEST()
1842 EXPECT_EQ(0, APInt(1, 0).reverseBits()); in TEST()
1844 EXPECT_EQ(3, APInt(2, 3).reverseBits()); in TEST()
1845 EXPECT_EQ(3, APInt(2, 3).reverseBits()); in TEST()
1847 EXPECT_EQ(0xb, APInt(4, 0xd).reverseBits()); in TEST()
1848 EXPECT_EQ(0xd, APInt(4, 0xb).reverseBits()); in TEST()
1849 EXPECT_EQ(0xf, APInt(4, 0xf).reverseBits()); in TEST()
1851 EXPECT_EQ(0x30, APInt(7, 0x6).reverseBits()); in TEST()
1852 EXPECT_EQ(0x5a, APInt(7, 0x2d).reverseBits()); in TEST()
1854 EXPECT_EQ(0x0f, APInt(8, 0xf0).reverseBits()); in TEST()
1855 EXPECT_EQ(0xf0, APInt(8, 0x0f).reverseBits()); in TEST()
1857 EXPECT_EQ(0x0f0f, APInt(16, 0xf0f0).reverseBits()); in TEST()
1858 EXPECT_EQ(0xf0f0, APInt(16, 0x0f0f).reverseBits()); in TEST()
1860 EXPECT_EQ(0x0f0f0f0f, APInt(32, 0xf0f0f0f0).reverseBits()); in TEST()
1861 EXPECT_EQ(0xf0f0f0f0, APInt(32, 0x0f0f0f0f).reverseBits()); in TEST()
1863 EXPECT_EQ(0x402880a0 >> 1, APInt(31, 0x05011402).reverseBits()); in TEST()
1865 EXPECT_EQ(0x0f0f0f0f, APInt(32, 0xf0f0f0f0).reverseBits()); in TEST()
1866 EXPECT_EQ(0xf0f0f0f0, APInt(32, 0x0f0f0f0f).reverseBits()); in TEST()
1868 EXPECT_EQ(0x0f0f0f0f0f0f0f0f, APInt(64, 0xf0f0f0f0f0f0f0f0).reverseBits()); in TEST()
1869 EXPECT_EQ(0xf0f0f0f0f0f0f0f0, APInt(64, 0x0f0f0f0f0f0f0f0f).reverseBits()); in TEST()
1876 EXPECT_EQ(Y, X.reverseBits()); in TEST()
1877 EXPECT_EQ(X, Y.reverseBits()); in TEST()