================ @@ -2520,6 +2520,62 @@ TEST(APIntTest, setAllBits) { EXPECT_EQ(128u, i128.popcount()); } +TEST(APIntTest, clearBits) { ---------------- liamsemeria wrote: thats very helpful thanks for the tip! https://github.com/llvm/llvm-project/pull/137098