1 # REQUIRES: system-linux
3 # RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-locexpr-referrence-main.s -o %tmain.o
4 # RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-locexpr-referrence-helper.s -o %thelper.o
5 # RUN: %clang %cflags -dwarf-5 %tmain.o %thelper.o -o %t.exe -Wl,-q
6 # RUN: llvm-bolt %t.exe -o %t.bolt --update-debug-sections
7 # RUN: llvm-dwarfdump --show-form --verbose --debug-info %t.bolt | FileCheck --check-prefix=CHECK %s
9 # This test checks that we update relative DIE references with DW_OP_convert that are in locexpr.
11 # CHECK: version = 0x0005
12 # CHECK: DW_TAG_variable
13 # CHECK-NEXT: DW_AT_location
14 # CHECK-SAME: DW_OP_convert (0x00000028 -> 0x00000028)
15 # CHECK-SAME: DW_OP_convert (0x0000002c -> 0x0000002c)
16 # CHECK: version = 0x0005
17 # CHECK: DW_TAG_variable
18 # CHECK-NEXT: DW_AT_location
19 # CHECK-SAME: DW_OP_convert (0x00000028 -> 0x00000092)
20 # CHECK-SAME: DW_OP_convert (0x0000002c -> 0x00000096)
21 # CHECK: version = 0x0005