Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions test/DebugInfo/AMDGPU/diop-diexpression.ll
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@
; RUN: llvm-spirv -r %t.spv -o - | llvm-dis -o %t.ll
; RUN: llc -mcpu=gfx1030 -mtriple=amdgcn-amd-amdhsa -O0 -filetype=obj -o %t %t.ll
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s
; XFAIL: *

; REQUIRES: diop-diexpressions

;; Verify that we can produce valid dwarf from DIOp-based DIExpressions in a
;; simple program with a global and local variable.

; CHECK: DW_TAG_variable
; CHECK-NEXT: DW_AT_location ({{.*}} DW_OP_lit5, DW_OP_LLVM_user DW_OP_LLVM_form_aspace_address)
; CHECK-NEXT: DW_AT_name ("local")
; CHECK-NEXT: DW_AT_decl_file ("t.cpp")
; CHECK-NEXT: DW_AT_decl_line (4)
; CHECK-NEXT: DW_AT_type

; CHECK: DW_TAG_variable
; CHECK-DAG: DW_AT_name ("global")
; CHECK-NEXT: DW_AT_type
Expand All @@ -18,13 +24,6 @@
; CHECK-NEXT: DW_AT_decl_line (3)
; CHECK-NEXT: DW_AT_location ({{.*}} DW_OP_lit0, DW_OP_LLVM_user DW_OP_LLVM_form_aspace_address)

; CHECK: DW_TAG_variable
; CHECK-NEXT: DW_AT_location ({{.*}} DW_OP_lit5, DW_OP_LLVM_user DW_OP_LLVM_form_aspace_address)
; CHECK-NEXT: DW_AT_name ("local")
; CHECK-NEXT: DW_AT_decl_file ("t.cpp")
; CHECK-NEXT: DW_AT_decl_line (4)
; CHECK-NEXT: DW_AT_type

target triple = "spirv64-amd-amdhsa"

@global = hidden addrspace(1) externally_initialized global i32 42, align 4, !dbg !19
Expand Down
Loading