mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Fix a bug in the set(I,E)/reset(I,E) methods that I recently added. The boundary condition for checking if I and E were in the same word were incorrect, and, beyond that, the mask computation was not using a wide enough constant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166015 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -322,6 +322,16 @@ TYPED_TEST(BitVectorTest, RangeOps) {
|
||||
EXPECT_FALSE(D.test(0));
|
||||
EXPECT_TRUE( D.test(1));
|
||||
EXPECT_TRUE( D.test(2));
|
||||
|
||||
TypeParam E;
|
||||
E.resize(128);
|
||||
E.reset();
|
||||
E.set(1, 33);
|
||||
|
||||
EXPECT_FALSE(E.test(0));
|
||||
EXPECT_TRUE( E.test(1));
|
||||
EXPECT_TRUE( E.test(32));
|
||||
EXPECT_FALSE(E.test(33));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user