Lines Matching refs:byteSwap
1819 TEST(APIntTest, byteSwap) { in TEST() argument
1820 EXPECT_EQ(0x00000000, APInt(16, 0x0000).byteSwap()); in TEST()
1821 EXPECT_EQ(0x0000010f, APInt(16, 0x0f01).byteSwap()); in TEST()
1822 EXPECT_EQ(0x00ff8000, APInt(24, 0x0080ff).byteSwap()); in TEST()
1823 EXPECT_EQ(0x117700ff, APInt(32, 0xff007711).byteSwap()); in TEST()
1824 EXPECT_EQ(0x228811aaffULL, APInt(40, 0xffaa118822ULL).byteSwap()); in TEST()
1825 EXPECT_EQ(0x050403020100ULL, APInt(48, 0x000102030405ULL).byteSwap()); in TEST()
1826 EXPECT_EQ(0xff050403020100ULL, APInt(56, 0x000102030405ffULL).byteSwap()); in TEST()
1827 EXPECT_EQ(0xff050403020100aaULL, APInt(64, 0xaa000102030405ffULL).byteSwap()); in TEST()
1834 EXPECT_EQ(Y, X.byteSwap()); in TEST()
1835 EXPECT_EQ(X, Y.byteSwap()); in TEST()