[compiler-rt] [Support] Add KnownBits::computeForSubBorrow (PR #67788)
    Christian Kissig via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Oct  9 23:20:03 PDT 2023
    
    
  
================
@@ -213,6 +213,37 @@ TEST(KnownBitsTest, AddSubExhaustive) {
   TestAddSubExhaustive(false);
 }
 
+TEST(KnownBitsTest, SubBorrowExhaustive) {
+  unsigned Bits = 4;
+  ForeachKnownBits(Bits, [&](const KnownBits &Known1) {
+    ForeachKnownBits(Bits, [&](const KnownBits &Known2) {
+      ForeachKnownBits(1, [&](const KnownBits &KnownBorrow) {
+        // Explicitly compute known bits of the addition by trying all
----------------
christiankissig wrote:
Done
https://github.com/llvm/llvm-project/pull/67788
    
    
More information about the llvm-commits
mailing list