[llvm-shlib] Fix the version naming style of libLLVM for Windows (#85710)
[llvm-project.git] / bolt / test / X86 / dwarf4-df-change-in-dw-op-gnu-addr-index-main.test
blob5173c890f66abcf236014cc462977e8ff292d852
1 ; RUN: rm -rf %t
2 ; RUN: mkdir %t
3 ; RUN: cd %t
4 ; RUN: llvm-mc -dwarf-version=4 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf4-df-change-in-dw-op-gnu-addr-index-main.s \
5 ; RUN: -split-dwarf-file=main.dwo -o main.o
6 ; RUN: %clang %cflags -gdwarf-5 -gsplit-dwarf=split main.o -o main.exe
7 ; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections
8 ; RUN: not llvm-dwarfdump --show-form --verbose --debug-info main.dwo &> %t/maindwo.txt
9 ; RUN: cat %t/maindwo.txt | FileCheck -check-prefix=PRE-BOLT-DWO-MAIN %s
10 ; RUN: not llvm-dwarfdump --show-form --verbose --debug-info main.dwo.dwo &> %t/maindwodwo.txt
11 ; RUN: cat %t/maindwodwo.txt | FileCheck -check-prefix=BOLT-DWO-MAIN %s
13 ; Tests that new indices are assigned to DW_OP_GNU_addr_index.
15 ; PRE-BOLT-DWO-MAIN: version = 0x0004
16 ; PRE-BOLT-DWO-MAIN: DW_AT_location [DW_FORM_exprloc]  (DW_OP_GNU_addr_index 0x0)
17 ; PRE-BOLT-DWO-MAIN: DW_AT_location [DW_FORM_exprloc]  (DW_OP_GNU_addr_index 0x1)
18 ; PRE-BOLT-DWO-MAIN: DW_AT_location [DW_FORM_exprloc]  (DW_OP_GNU_addr_index 0x2)
20 ; BOLT-DWO-MAIN: version = 0x0004
21 ; BOLT-DWO-MAIN: DW_AT_location [DW_FORM_exprloc]  (DW_OP_GNU_addr_index 0x1)
22 ; BOLT-DWO-MAIN: DW_AT_location [DW_FORM_exprloc]  (DW_OP_GNU_addr_index 0x6)
23 ; BOLT-DWO-MAIN: DW_AT_location [DW_FORM_exprloc]  (DW_OP_GNU_addr_index 0x7)