Reapply [DebugInfo] Re-engineer a test to be stricter, add XFails
authorJeremy Morse <jeremy.morse@sony.com>
Wed, 10 Feb 2021 10:27:00 +0000 (10:27 +0000)
committerJeremy Morse <jeremy.morse@sony.com>
Wed, 10 Feb 2021 10:46:58 +0000 (10:46 +0000)
Was e05c10380ce, reverted in d7d0b17de77, see D95617 for details. I've
added "arm64" to the XFail list (as well as aarch64), will follow up on
the mailing list about whether there's anything else to be done.

llvm/test/DebugInfo/Generic/missing-abstract-variable.ll

index 0cdfe0b..4089e67 100644 (file)
@@ -1,5 +1,11 @@
 ; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
 
+; The formal parameter 'b' for Function 'x' when inlined within 'a' is lost on
+; powerpc64 (and on x86_64 at at least -O2). Presumably this is a SelectionDAG
+; issue.
+; FIXME: arm64 is an alias for aarch64 on macs, apparently?
+; XFAIL: powerpc64, aarch64, arm64
+
 ; Build from the following source with clang -O2.
 
 ; The important details are that 'x's abstract definition is first built during
@@ -78,6 +84,7 @@
 ; fastisel succeeds).
 ; CHECK:     DW_TAG_formal_parameter
 ; CHECK-NOT: DW_TAG
+; CHECK:       DW_AT_location
 ; CHECK:       DW_AT_abstract_origin {{.*}} "b"
 
 ; CHECK-NOT: {{DW_TAG|NULL}}