diff options
| author | Michael Gottesman <mgottesman@apple.com> | 2013-12-13 22:00:19 +0000 |
|---|---|---|
| committer | Michael Gottesman <mgottesman@apple.com> | 2013-12-13 22:00:19 +0000 |
| commit | e1fad2b5600ecb9dec92544a827277602e3f1055 (patch) | |
| tree | db2972cdca85bdb47fbe205f43aa4f1aca33d3e8 /llvm/unittests/ADT/APIntTest.cpp | |
| parent | a8df53f4ad63e463671eff757471962f77343d76 (diff) | |
| download | bcm5719-llvm-e1fad2b5600ecb9dec92544a827277602e3f1055.tar.gz bcm5719-llvm-e1fad2b5600ecb9dec92544a827277602e3f1055.zip | |
Remove APInt::extractBit since it is already implemented via operator[]. Change tests for extractBit to test operator[].
llvm-svn: 197277
Diffstat (limited to 'llvm/unittests/ADT/APIntTest.cpp')
| -rw-r--r-- | llvm/unittests/ADT/APIntTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/ADT/APIntTest.cpp b/llvm/unittests/ADT/APIntTest.cpp index 36cbd868a2e..5043aa0eec2 100644 --- a/llvm/unittests/ADT/APIntTest.cpp +++ b/llvm/unittests/ADT/APIntTest.cpp @@ -598,13 +598,13 @@ TEST(APIntTest, tcDecrement) { } } -TEST(APIntTest, extractBit) { +TEST(APIntTest, arrayAccess) { // Single word check. uint64_t E1 = 0x2CA7F46BF6569915ULL; APInt A1(64, E1); for (unsigned i = 0, e = 64; i < e; ++i) { EXPECT_EQ(bool(E1 & (1ULL << i)), - A1.extractBit(i)); + A1[i]); } // Multiword check. @@ -618,7 +618,7 @@ TEST(APIntTest, extractBit) { for (unsigned i = 0; i < 4; ++i) { for (unsigned j = 0; j < integerPartWidth; ++j) { EXPECT_EQ(bool(E2[i] & (1ULL << j)), - A2.extractBit(i*integerPartWidth + j)); + A2[i*integerPartWidth + j]); } } } |

