Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UnitTests] Convert a test to use opaque pointers #102668

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 11 additions & 15 deletions llvm/unittests/Analysis/ValueTrackingTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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}",
},
};

Expand Down
Loading