mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
Add an argument to APInt's magic udiv calculation to specify the number of bits that are known zero in the divided number.
This will come in handy soon. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127828 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -348,6 +348,8 @@ TEST(APIntTest, magicu) {
|
||||
EXPECT_EQ(APInt(32, 5).magicu().s, 2U);
|
||||
EXPECT_EQ(APInt(32, 7).magicu().m, APInt(32, "24924925", 16));
|
||||
EXPECT_EQ(APInt(32, 7).magicu().s, 3U);
|
||||
EXPECT_EQ(APInt(64, 25).magicu(1).m, APInt(64, "A3D70A3D70A3D70B", 16));
|
||||
EXPECT_EQ(APInt(64, 25).magicu(1).s, 4U);
|
||||
}
|
||||
|
||||
#ifdef GTEST_HAS_DEATH_TEST
|
||||
|
Reference in New Issue
Block a user