mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Fix BitVectorTest on 32-bit hosts after r247972.
We can't apply two words of 32-bit mask in the small case where the internal storage is just one 32-bit word. llvm-svn: 247974
This commit is contained in:
parent
c155166785
commit
4c0fa3700e
@ -235,12 +235,12 @@ TYPED_TEST(BitVectorTest, PortableBitMask) {
|
||||
const uint32_t Mask1[] = { 0x80000000, 6, 5 };
|
||||
|
||||
A.resize(10);
|
||||
A.setBitsInMask(Mask1, 2);
|
||||
A.setBitsInMask(Mask1, 1);
|
||||
EXPECT_EQ(10u, A.size());
|
||||
EXPECT_FALSE(A.test(0));
|
||||
|
||||
A.resize(32);
|
||||
A.setBitsInMask(Mask1, 2);
|
||||
A.setBitsInMask(Mask1, 1);
|
||||
EXPECT_FALSE(A.test(0));
|
||||
EXPECT_TRUE(A.test(31));
|
||||
EXPECT_EQ(1u, A.count());
|
||||
|
Loading…
x
Reference in New Issue
Block a user