[llvm] [unittets] Convert a test to use opaque pointers (PR #102668)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 9 12:34:20 PDT 2024
https://github.com/s-barannikov created https://github.com/llvm/llvm-project/pull/102668
None
>From 596e55e7a24abd422a245d7e9cc43786130b648b Mon Sep 17 00:00:00 2001
From: Sergei Barannikov <barannikov88 at gmail.com>
Date: Fri, 9 Aug 2024 22:33:46 +0300
Subject: [PATCH] [unittets] Convert a test to use opaque pointers
---
llvm/unittests/Analysis/ValueTrackingTest.cpp | 26 ++++++++-----------
1 file changed, 11 insertions(+), 15 deletions(-)
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