Skip to content

Commit 4bffbba

Browse files
authored
[UnitTests] Convert a test to use opaque pointers (#102668)
1 parent e91e0f5 commit 4bffbba

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

llvm/unittests/Analysis/ValueTrackingTest.cpp

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2766,11 +2766,11 @@ class IsBytewiseValueTest : public ValueTrackingTest,
27662766
const std::pair<const char *, const char *> IsBytewiseValueTests[] = {
27672767
{
27682768
"i8 0",
2769-
"i48* null",
2769+
"ptr null",
27702770
},
27712771
{
27722772
"i8 undef",
2773-
"i48* undef",
2773+
"ptr undef",
27742774
},
27752775
{
27762776
"i8 0",
@@ -2848,29 +2848,25 @@ const std::pair<const char *, const char *> IsBytewiseValueTests[] = {
28482848
"i8 -15",
28492849
"double 0xF1F1F1F1F1F1F1F1",
28502850
},
2851-
{
2852-
"i8 undef",
2853-
"i16* undef",
2854-
},
28552851
{
28562852
"i8 0",
2857-
"i16* inttoptr (i64 0 to i16*)",
2853+
"ptr inttoptr (i64 0 to ptr)",
28582854
},
28592855
{
28602856
"i8 -1",
2861-
"i16* inttoptr (i64 -1 to i16*)",
2857+
"ptr inttoptr (i64 -1 to ptr)",
28622858
},
28632859
{
28642860
"i8 -86",
2865-
"i16* inttoptr (i64 -6148914691236517206 to i16*)",
2861+
"ptr inttoptr (i64 -6148914691236517206 to ptr)",
28662862
},
28672863
{
28682864
"",
2869-
"i16* inttoptr (i48 -1 to i16*)",
2865+
"ptr inttoptr (i48 -1 to ptr)",
28702866
},
28712867
{
28722868
"i8 -1",
2873-
"i16* inttoptr (i96 -1 to i16*)",
2869+
"ptr inttoptr (i96 -1 to ptr)",
28742870
},
28752871
{
28762872
"i8 undef",
@@ -2980,19 +2976,19 @@ const std::pair<const char *, const char *> IsBytewiseValueTests[] = {
29802976
},
29812977
{
29822978
"i8 0",
2983-
"{i8, i64, i16*} zeroinitializer",
2979+
"{i8, i64, ptr} zeroinitializer",
29842980
},
29852981
{
29862982
"i8 undef",
2987-
"{i8, i64, i16*} undef",
2983+
"{i8, i64, ptr} undef",
29882984
},
29892985
{
29902986
"i8 -86",
2991-
"{i8, i64, i16*} {i8 -86, i64 -6148914691236517206, i16* undef}",
2987+
"{i8, i64, ptr} {i8 -86, i64 -6148914691236517206, ptr undef}",
29922988
},
29932989
{
29942990
"",
2995-
"{i8, i64, i16*} {i8 86, i64 -6148914691236517206, i16* undef}",
2991+
"{i8, i64, ptr} {i8 86, i64 -6148914691236517206, ptr undef}",
29962992
},
29972993
};
29982994

0 commit comments

Comments
 (0)