brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · fa72c79 Raw
28 lines · plain
1; RUN: rm -rf %t2; RUN: mkdir %t3; RUN: cd %t4; RUN: llvm-mc -dwarf-version=4 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf4-df-call-site-change-low-pc-main.s \5; RUN: -split-dwarf-file=main.dwo -o main.o6; RUN: llvm-mc -dwarf-version=4 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf4-df-call-site-change-low-pc-helper.s \7; RUN: -split-dwarf-file=helper.dwo -o helper.o8; RUN: %clang %cflags -gdwarf-4 -O2 -gsplit-dwarf=split main.o helper.o -o main.exe9; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections10; RUN: llvm-dwarfdump --show-form --verbose --debug-info main.dwo &> %t/maindwo.txt11; RUN: cat %t/maindwo.txt | FileCheck -check-prefix=PRE-BOLT-DWO-MAIN %s12; RUN: llvm-dwarfdump --show-form --verbose --debug-info main.dwo.dwo &> %t/maindwodwo.txt13; RUN: cat %t/maindwodwo.txt | FileCheck -check-prefix=BOLT-DWO-MAIN %s14 15;; Tests that DW_AT_low_pc changes in DW_TAG_GNU_call_site.16 17; PRE-BOLT-DWO-MAIN: version = 0x000418; PRE-BOLT-DWO-MAIN: DW_TAG_GNU_call_site19; PRE-BOLT-DWO-MAIN-NEXT: DW_AT_abstract_origin20; PRE-BOLT-DWO-MAIN-NEXT: DW_AT_GNU_tail_call21; PRE-BOLT-DWO-MAIN-NEXT: DW_AT_low_pc [DW_FORM_GNU_addr_index] (indexed (00000004)22 23; BOLT-DWO-MAIN: version = 0x000424; BOLT-DWO-MAIN: DW_TAG_GNU_call_site25; BOLT-DWO-MAIN-NEXT: DW_AT_abstract_origin26; BOLT-DWO-MAIN-NEXT: DW_AT_GNU_tail_call27; BOLT-DWO-MAIN-NEXT: DW_AT_low_pc [DW_FORM_GNU_addr_index] (indexed (00000005)28