aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Analysis/ValueTrackingTest.cpp
diff options
context:
space:
mode:
authorSergei Barannikov <barannikov88@gmail.com>2024-08-10 00:54:29 +0300
committerGitHub <noreply@github.com>2024-08-10 00:54:29 +0300
commit4bffbba7e97ff35ffa55941836bcc0612a7e9a04 (patch)
tree48f9064b30f13ed85788222a10ac29415b32f256 /llvm/unittests/Analysis/ValueTrackingTest.cpp
parente91e0f52895e2b23bd690a86dbaafd979e027d29 (diff)
downloadllvm-4bffbba7e97ff35ffa55941836bcc0612a7e9a04.zip
llvm-4bffbba7e97ff35ffa55941836bcc0612a7e9a04.tar.gz
llvm-4bffbba7e97ff35ffa55941836bcc0612a7e9a04.tar.bz2
[UnitTests] Convert a test to use opaque pointers (#102668)
Diffstat (limited to 'llvm/unittests/Analysis/ValueTrackingTest.cpp')
-rw-r--r--llvm/unittests/Analysis/ValueTrackingTest.cpp26
1 files changed, 11 insertions, 15 deletions
diff --git a/llvm/unittests/Analysis/ValueTrackingTest.cpp b/llvm/unittests/Analysis/ValueTrackingTest.cpp
index a30db46..34e682c 100644
--- a/llvm/unittests/Analysis/ValueTrackingTest.cpp
+++ b/llvm/unittests/Analysis/ValueTrackingTest.cpp
@@ -2766,11 +2766,11 @@ protected:
const std::pair<const char *, const char *> IsBytewiseValueTests[] = {
{
"i8 0",
- "i48* null",
+ "ptr null",
},
{
"i8 undef",
- "i48* undef",
+ "ptr undef",
},
{
"i8 0",
@@ -2849,28 +2849,24 @@ const std::pair<const char *, const char *> IsBytewiseValueTests[] = {
"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}",
},
};