[OpaquePtr] Split force-opaque-pointers test (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 25 Jun 2021 09:08:19 +0000 (11:08 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 25 Jun 2021 09:16:35 +0000 (11:16 +0200)
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.

llvm/test/Other/force-opaque-ptrs-typed-dis.ll [new file with mode: 0644]
llvm/test/Other/force-opaque-ptrs.ll

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 (file)
index 0000000..7af67c6
--- /dev/null
@@ -0,0 +1,13 @@
+; RUN: llvm-as --force-opaque-pointers < %s | llvm-dis | FileCheck %s
+
+; CHECK: @g = external global i16
+@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
+}
index f8d5b8e..530b8fb 100644 (file)
@@ -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
 ;