Lines Matching refs:reverseBits
1072 TEST(APIntTest, reverseBits) { in TEST() argument
1073 EXPECT_EQ(1, APInt(1, 1).reverseBits()); in TEST()
1074 EXPECT_EQ(0, APInt(1, 0).reverseBits()); in TEST()
1076 EXPECT_EQ(3, APInt(2, 3).reverseBits()); in TEST()
1077 EXPECT_EQ(3, APInt(2, 3).reverseBits()); in TEST()
1079 EXPECT_EQ(0xb, APInt(4, 0xd).reverseBits()); in TEST()
1080 EXPECT_EQ(0xd, APInt(4, 0xb).reverseBits()); in TEST()
1081 EXPECT_EQ(0xf, APInt(4, 0xf).reverseBits()); in TEST()
1083 EXPECT_EQ(0x30, APInt(7, 0x6).reverseBits()); in TEST()
1084 EXPECT_EQ(0x5a, APInt(7, 0x2d).reverseBits()); in TEST()
1086 EXPECT_EQ(0x0f, APInt(8, 0xf0).reverseBits()); in TEST()
1087 EXPECT_EQ(0xf0, APInt(8, 0x0f).reverseBits()); in TEST()
1089 EXPECT_EQ(0x0f0f, APInt(16, 0xf0f0).reverseBits()); in TEST()
1090 EXPECT_EQ(0xf0f0, APInt(16, 0x0f0f).reverseBits()); in TEST()
1092 EXPECT_EQ(0x0f0f0f0f, APInt(32, 0xf0f0f0f0).reverseBits()); in TEST()
1093 EXPECT_EQ(0xf0f0f0f0, APInt(32, 0x0f0f0f0f).reverseBits()); in TEST()
1095 EXPECT_EQ(0x402880a0 >> 1, APInt(31, 0x05011402).reverseBits()); in TEST()
1097 EXPECT_EQ(0x0f0f0f0f, APInt(32, 0xf0f0f0f0).reverseBits()); in TEST()
1098 EXPECT_EQ(0xf0f0f0f0, APInt(32, 0x0f0f0f0f).reverseBits()); in TEST()
1100 EXPECT_EQ(0x0f0f0f0f0f0f0f0f, APInt(64, 0xf0f0f0f0f0f0f0f0).reverseBits()); in TEST()
1101 EXPECT_EQ(0xf0f0f0f0f0f0f0f0, APInt(64, 0x0f0f0f0f0f0f0f0f).reverseBits()); in TEST()
1108 EXPECT_EQ(Y, X.reverseBits()); in TEST()
1109 EXPECT_EQ(X, Y.reverseBits()); in TEST()