summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ADT/APIntTest.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-04-20 02:46:21 +0000
committerCraig Topper <craig.topper@gmail.com>2017-04-20 02:46:21 +0000
commit6fd0a5c99dbcd8b9eb8f6a6489d431d9852a8ee5 (patch)
treef70b6db03d55806ce1897342b4b4fb430003caf0 /llvm/unittests/ADT/APIntTest.cpp
parentbaa392e4e064d0cbaaf116f10e23c98a395c473a (diff)
downloadbcm5719-llvm-6fd0a5c99dbcd8b9eb8f6a6489d431d9852a8ee5.tar.gz
bcm5719-llvm-6fd0a5c99dbcd8b9eb8f6a6489d431d9852a8ee5.zip
Revert r300811 "[APInt] Add back the asserts that check that the APInt shift methods aren't called with values larger than BitWidth."
This is failing a self host debug build. llvm-svn: 300813
Diffstat (limited to 'llvm/unittests/ADT/APIntTest.cpp')
-rw-r--r--llvm/unittests/ADT/APIntTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/ADT/APIntTest.cpp b/llvm/unittests/ADT/APIntTest.cpp
index 7d451836ad9..0f1d2d6d8f9 100644
--- a/llvm/unittests/ADT/APIntTest.cpp
+++ b/llvm/unittests/ADT/APIntTest.cpp
@@ -2021,7 +2021,7 @@ TEST(APIntTest, LogicalRightShift) {
// Ensure we handle large shifts of multi-word.
const APInt neg_one(128, static_cast<uint64_t>(-1), true);
- EXPECT_EQ(0, neg_one.lshr(128));
+ EXPECT_EQ(0, neg_one.lshr(257));
}
TEST(APIntTest, LeftShift) {
@@ -2054,7 +2054,7 @@ TEST(APIntTest, LeftShift) {
// Ensure we handle large shifts of multi-word.
const APInt neg_one(128, static_cast<uint64_t>(-1), true);
- EXPECT_EQ(0, neg_one.shl(128));
+ EXPECT_EQ(0, neg_one.shl(257));
}
} // end anonymous namespace
OpenPOWER on IntegriCloud