[llvm] 7b8ed2b - [OpaquePtr] Split force-opaque-pointers test (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 25 02:16:45 PDT 2021
Author: Nikita Popov
Date: 2021-06-25T11:16:35+02:00
New Revision: 7b8ed2b8b6cb19f8f6aebd1f95702f96f23efea9
URL: https://github.com/llvm/llvm-project/commit/7b8ed2b8b6cb19f8f6aebd1f95702f96f23efea9
DIFF: https://github.com/llvm/llvm-project/commit/7b8ed2b8b6cb19f8f6aebd1f95702f96f23efea9.diff
LOG: [OpaquePtr] Split force-opaque-pointers test (NFC)
Separate out the case that uses llvm-dis without
--force-opaque-pointers. This will generally produce a different
result from the other cases, because things like global symbol
pointers will be non-opaque in this case.
Added:
llvm/test/Other/force-opaque-ptrs-typed-dis.ll
Modified:
llvm/test/Other/force-opaque-ptrs.ll
Removed:
################################################################################
diff --git a/llvm/test/Other/force-opaque-ptrs-typed-dis.ll b/llvm/test/Other/force-opaque-ptrs-typed-dis.ll
new file mode 100644
index 000000000000..7af67c6beab6
--- /dev/null
+++ b/llvm/test/Other/force-opaque-ptrs-typed-dis.ll
@@ -0,0 +1,13 @@
+; RUN: llvm-as --force-opaque-pointers < %s | llvm-dis | FileCheck %s
+
+; CHECK: @g = external global i16
+ at g = external global i16
+
+define void @f(i32* %p) {
+; CHECK-LABEL: @f(
+; CHECK-NEXT: [[A:%.*]] = alloca i17, align 4
+; CHECK-NEXT: ret void
+;
+ %a = alloca i17
+ ret void
+}
diff --git a/llvm/test/Other/force-opaque-ptrs.ll b/llvm/test/Other/force-opaque-ptrs.ll
index f8d5b8e06539..530b8fb04c14 100644
--- a/llvm/test/Other/force-opaque-ptrs.ll
+++ b/llvm/test/Other/force-opaque-ptrs.ll
@@ -1,5 +1,4 @@
-; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: llvm-as --force-opaque-pointers < %s | llvm-dis | FileCheck %s
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
; RUN: llvm-as < %s | llvm-dis --force-opaque-pointers | FileCheck %s
; RUN: opt --force-opaque-pointers < %s -S | FileCheck %s
@@ -7,7 +6,8 @@
@g = external global i16
define void @f(i32* %p) {
-; CHECK-LABEL: @f(
+; CHECK-LABEL: define {{[^@]+}}@f
+; CHECK-SAME: (ptr [[P:%.*]]) {
; CHECK-NEXT: [[A:%.*]] = alloca i17, align 4
; CHECK-NEXT: ret void
;
More information about the llvm-commits
mailing list