diff options
-rw-r--r-- | polly/unittests/Isl/IslTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/unittests/Isl/IslTest.cpp b/polly/unittests/Isl/IslTest.cpp index 8bdd94824ab..c8bc0fcb3ec 100644 --- a/polly/unittests/Isl/IslTest.cpp +++ b/polly/unittests/Isl/IslTest.cpp @@ -140,7 +140,7 @@ TEST(Isl, APIntToIslVal) { { APInt APNOne(32, (1ull << 32) - 1, false); auto IslNOne = valFromAPInt(IslCtx, APNOne, false); - auto IslRef = isl::val(IslCtx, (1ull << 32) - 1); + auto IslRef = isl::val(IslCtx, 32).two_exp().sub_ui(1); EXPECT_EQ(IslNOne, IslRef); } @@ -227,7 +227,7 @@ TEST(Isl, IslValToAPInt) { } { - auto IslNOne = isl::val(IslCtx, (1ull << 32) - 1); + auto IslNOne = isl::val(IslCtx, 32).two_exp().sub_ui(1); auto APNOne = APIntFromVal(IslNOne); EXPECT_EQ((1ull << 32) - 1, APNOne); EXPECT_EQ(33u, APNOne.getBitWidth()); |