[llvm] [KnownBits] Implement knownbits lshr/ashr with exact flag (PR #84254)

via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 7 09:00:42 PST 2024


================
@@ -320,6 +320,22 @@ TEST(KnownBitsTest, AbsDiffSpecialCase) {
   EXPECT_EQ(0b0000ul, Res.Zero.getZExtValue());
 }
 
+TEST(KnownBitsTest, ShrExactSpecialCase) {
----------------
goldsteinn wrote:

This was just to show a case where exact provides info that non-exact doesn't. But ill change this to an IR test where the codegen actually varies @dtcxzyw's request.

https://github.com/llvm/llvm-project/pull/84254


More information about the llvm-commits mailing list