[llvm-shlib] Fix the version naming style of libLLVM for Windows (#85710)
[llvm-project.git] / bolt / test / X86 / dwarf5-df-call-site-change-low-pc.test
blobea717a5e0888dc362ba2858b0908c46b0fe9f3c8
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/dwarf5-df-call-site-change-low-pc-main.s \
5 ; RUN: -split-dwarf-file=main.dwo -o main.o
6 ; RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-df-call-site-change-low-pc-helper.s \
7 ; RUN: -split-dwarf-file=helper.dwo -o helper.o
8 ; RUN: %clang %cflags -gdwarf-5 -O2 -gsplit-dwarf=split main.o helper.o -o main.exe
9 ; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections
10 ; RUN: llvm-dwarfdump --show-form --verbose --debug-info main.dwo &> %t/maindwo.txt
11 ; RUN: cat %t/maindwo.txt | FileCheck -check-prefix=PRE-BOLT-DWO-MAIN %s
12 ; RUN: llvm-dwarfdump --show-form --verbose --debug-info main.dwo.dwo &> %t/maindwodwo.txt
13 ; RUN: cat %t/maindwodwo.txt | FileCheck -check-prefix=BOLT-DWO-MAIN %s
15 ; Tests that DW_AT_low_pc changes in DW_TAG_call_site.
17 ; PRE-BOLT-DWO-MAIN: version = 0x0005
18 ; PRE-BOLT-DWO-MAIN: DW_TAG_call_site
19 ; PRE-BOLT-DWO-MAIN-NEXT: DW_AT_call_origin
20 ; PRE-BOLT-DWO-MAIN-NEXT: DW_AT_call_tail_call
21 ; PRE-BOLT-DWO-MAIN-NEXT: DW_AT_call_pc [DW_FORM_addrx] (indexed (00000003)
23 ; BOLT-DWO-MAIN: version = 0x0005
24 ; BOLT-DWO-MAIN: DW_TAG_call_site
25 ; BOLT-DWO-MAIN-NEXT: DW_AT_call_origin
26 ; BOLT-DWO-MAIN-NEXT: DW_AT_call_tail_call
27 ; BOLT-DWO-MAIN-NEXT: DW_AT_call_pc [DW_FORM_addrx] (indexed (00000004)