[llvm] 4bffbba - [UnitTests] Convert a test to use opaque pointers (#102668)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 9 14:54:33 PDT 2024


Author: Sergei Barannikov
Date: 2024-08-10T00:54:29+03:00
New Revision: 4bffbba7e97ff35ffa55941836bcc0612a7e9a04

URL: https://github.com/llvm/llvm-project/commit/4bffbba7e97ff35ffa55941836bcc0612a7e9a04
DIFF: https://github.com/llvm/llvm-project/commit/4bffbba7e97ff35ffa55941836bcc0612a7e9a04.diff

LOG: [UnitTests] Convert a test to use opaque pointers (#102668)

Added: 
    

Modified: 
    llvm/unittests/Analysis/ValueTrackingTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Analysis/ValueTrackingTest.cpp b/llvm/unittests/Analysis/ValueTrackingTest.cpp
index a30db468c77291..34e682cd23e290 100644
--- a/llvm/unittests/Analysis/ValueTrackingTest.cpp
+++ b/llvm/unittests/Analysis/ValueTrackingTest.cpp
@@ -2766,11 +2766,11 @@ class IsBytewiseValueTest : public ValueTrackingTest,
 const std::pair<const char *, const char *> IsBytewiseValueTests[] = {
     {
         "i8 0",
-        "i48* null",
+        "ptr null",
     },
     {
         "i8 undef",
-        "i48* undef",
+        "ptr undef",
     },
     {
         "i8 0",
@@ -2848,29 +2848,25 @@ const std::pair<const char *, const char *> IsBytewiseValueTests[] = {
         "i8 -15",
         "double 0xF1F1F1F1F1F1F1F1",
     },
-    {
-        "i8 undef",
-        "i16* undef",
-    },
     {
         "i8 0",
-        "i16* inttoptr (i64 0 to i16*)",
+        "ptr inttoptr (i64 0 to ptr)",
     },
     {
         "i8 -1",
-        "i16* inttoptr (i64 -1 to i16*)",
+        "ptr inttoptr (i64 -1 to ptr)",
     },
     {
         "i8 -86",
-        "i16* inttoptr (i64 -6148914691236517206 to i16*)",
+        "ptr inttoptr (i64 -6148914691236517206 to ptr)",
     },
     {
         "",
-        "i16* inttoptr (i48 -1 to i16*)",
+        "ptr inttoptr (i48 -1 to ptr)",
     },
     {
         "i8 -1",
-        "i16* inttoptr (i96 -1 to i16*)",
+        "ptr inttoptr (i96 -1 to ptr)",
     },
     {
         "i8 undef",
@@ -2980,19 +2976,19 @@ const std::pair<const char *, const char *> IsBytewiseValueTests[] = {
     },
     {
         "i8 0",
-        "{i8, i64, i16*} zeroinitializer",
+        "{i8, i64, ptr} zeroinitializer",
     },
     {
         "i8 undef",
-        "{i8, i64, i16*} undef",
+        "{i8, i64, ptr} undef",
     },
     {
         "i8 -86",
-        "{i8, i64, i16*} {i8 -86, i64 -6148914691236517206, i16* undef}",
+        "{i8, i64, ptr} {i8 -86, i64 -6148914691236517206, ptr undef}",
     },
     {
         "",
-        "{i8, i64, i16*} {i8 86, i64 -6148914691236517206, i16* undef}",
+        "{i8, i64, ptr} {i8 86, i64 -6148914691236517206, ptr undef}",
     },
 };
 


        


More information about the llvm-commits mailing list