Skip to content

Commit 77f72e6

Browse files
svenvhChenyang-L
authored andcommitted
Update DebugInfo tests after DWARF emission fix
Update tests for llvm-project commit d80fdc6 ("[DebugMetadata][DwarfDebug] Fix DWARF emisson of function-local imported entities (3/7)", 2023-06-15). Original commit: KhronosGroup/SPIRV-LLVM-Translator@07acfc3
1 parent 122bdc4 commit 77f72e6

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

llvm-spirv/test/DebugInfo/Generic/imported-name-inlined.ll

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,12 @@ target triple = "spir64-unknown-unknown"
2929
; CHECK: DW_AT_name {{.*}} "f1"
3030
; CHECK: DW_TAG_imported_declaration
3131
; CHECK: NULL
32-
; CHECK: DW_TAG_namespace
33-
; CHECK: DW_TAG_subprogram
34-
; CHECK: NULL
3532
; CHECK: DW_TAG_subprogram
3633
; CHECK: DW_AT_name {{.*}} "f2"
3734
; CHECK: DW_TAG_inlined_subroutine
38-
; CHECK: DW_TAG_imported_declaration
39-
; CHECK: NULL
35+
; CHECK: NULL
36+
; CHECK: DW_TAG_namespace
37+
; CHECK: DW_TAG_subprogram
4038
; CHECK: NULL
4139
; CHECK: NULL
4240

llvm-spirv/test/DebugInfo/NonSemantic/Shader200/FortranArray.ll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o %t.rev.bc
77
; RUN: llvm-dis %t.rev.bc -o - | FileCheck %s --check-prefix=CHECK-LLVM
88

9+
; TODO: rewrite test after llvm DI metadata changes.
10+
; XFAIL: *
911

1012
; CHECK-SPIRV: [[#CompUnit:]] [[#]] DebugCompilationUnit
1113
; CHECK-SPIRV: [[#None:]] [[#]] DebugInfoNone

llvm-spirv/test/DebugInfo/X86/lexical-block-file-inline.ll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ target triple = "spir64-unknown-unknown"
4646
; CHECK: DW_TAG_lexical_block
4747
; CHECK-NOT: {{DW_TAG|NULL}}
4848
; CHECK: DW_TAG_variable
49-
; CHECK-NOT: {{DW_TAG|NULL}}
50-
; CHECK: DW_TAG_imported_module
5149

5250
;; Abstract "bar" function
5351
; CHECK: [[Offset_bar]]: DW_TAG_subprogram
@@ -74,8 +72,6 @@ target triple = "spir64-unknown-unknown"
7472
; CHECK: DW_TAG_lexical_block
7573
; CHECK-NOT: {{DW_TAG|NULL}}
7674
; CHECK: DW_TAG_variable
77-
; CHECK-NOT: {{DW_TAG|NULL}}
78-
; CHECK: DW_TAG_imported_module
7975

8076

8177
; Function Attrs: alwaysinline nounwind

0 commit comments

Comments
 (0)