[llvm] [unittets] Convert a test to use opaque pointers (PR #102668)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 9 12:34:49 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-analysis
Author: Sergei Barannikov (s-barannikov)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/102668.diff
1 Files Affected:
- (modified) llvm/unittests/Analysis/ValueTrackingTest.cpp (+11-15)
``````````diff
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}",
},
};
``````````
</details>
https://github.com/llvm/llvm-project/pull/102668
More information about the llvm-commits
mailing list