From 8644290085c8badc61324743c6123428e2fd8e84 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Thu, 13 Aug 2020 11:12:52 +0200 Subject: [PATCH] [test] XFAIL two tests with inlining debug info issues on Sparc Currently only two test failures remain on Sparc, both `sparcv9-sun-solaris2.11` and `sparc64-unknown-linux-gnu`: LLVM :: DebugInfo/Generic/debug-label-inline.ll LLVM :: Linker/subprogram-linkonce-weak.ll They seem related in that debug info isn't generated for instruction bundles (like `retl+add` in the delay slot). I've filed separate bugs for both files (Bug 47129 and 47131), though it's probably the same issue. This patch `XFAIL`s the tests. Tested on `sparcv9-sun-solaris2.11` and `amd64-pc-solaris2.11`. Differential Revision: https://reviews.llvm.org/D85827 --- test/DebugInfo/Generic/debug-label-inline.ll | 3 +++ test/Linker/subprogram-linkonce-weak.ll | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/test/DebugInfo/Generic/debug-label-inline.ll b/test/DebugInfo/Generic/debug-label-inline.ll index 426ce79b435..42b61762845 100644 --- a/test/DebugInfo/Generic/debug-label-inline.ll +++ b/test/DebugInfo/Generic/debug-label-inline.ll @@ -1,5 +1,8 @@ ; RUN: llc -O0 -filetype=obj -o - %s | llvm-dwarfdump -v - | FileCheck %s ; +; Bug 47129 +; XFAIL: sparc +; ; CHECK: .debug_info contents: ; CHECK: [[LABEL_ORIGIN:0x[0-9a-zA-Z]+]]:{{ *}}DW_TAG_label ; CHECK-NEXT: DW_AT_name [DW_FORM_strp] {{.*}}"top" diff --git a/test/Linker/subprogram-linkonce-weak.ll b/test/Linker/subprogram-linkonce-weak.ll index edd8a9e3a05..7d52e89b062 100644 --- a/test/Linker/subprogram-linkonce-weak.ll +++ b/test/Linker/subprogram-linkonce-weak.ll @@ -3,7 +3,10 @@ ; RUN: llvm-link %S/Inputs/subprogram-linkonce-weak.ll %s -S -o %t2 ; RUN: FileCheck %s -check-prefix=WL -check-prefix=CHECK <%t2 ; REQUIRES: default_triple - +; +; Bug 47131 +; XFAIL: sparc +; ; This testcase tests the following flow: ; - File A defines a linkonce version of @foo which has inlined into @bar. ; - File B defines a weak version of @foo (different definition).