Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / X86 / dwarf5-df-inlined-subroutine-range-0.test
blobc0e5cb3339ead84563323b4e111fc9a9dc93bdbb
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-inlined-subroutine-range-0-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: llvm-dwarfdump --debug-addr main.exe.bolt > log.txt
9 ; RUN: llvm-dwarfdump --debug-info --verbose --show-form main.dwo.dwo >> log.txt
10 ; RUN: cat log.txt | FileCheck -check-prefix=BOLT-MAIN %s
12 ; Tests whether BOLT handles correctly DW_TAG_inlined_subroutine when DW_AT_ranges is 0,
13 ; and split dwarf is enabled.
15 ; BOLT-MAIN: 0x
16 ; BOLT-MAIN: 0x
17 ; BOLT-MAIN: 0x0000000000000000
18 ; BOLT-MAIN: DW_TAG_inlined_subroutine
19 ; BOLT-MAIN: DW_AT_abstract_origin [DW_FORM_ref4]  (cu + 0x0044 => {0x00000044} "_Z7doStuffi")
20 ; BOLT-MAIN: DW_AT_call_file
21 ; BOLT-MAIN: DW_AT_call_line
22 ; BOLT-MAIN: DW_AT_call_column
23 ; BOLT-MAIN: DW_AT_low_pc [DW_FORM_addrx]  (indexed (00000002) address = <unresolved>)
24 ; BOLT-MAIN: DW_AT_high_pc [DW_FORM_data4] (0x0000002d)
26 ; BOLT-MAIN: DW_TAG_inlined_subroutine
27 ; BOLT-MAIN: DW_AT_abstract_origin [DW_FORM_ref4]  (cu + 0x005a => {0x0000005a} "_Z11doStuffSamei")
28 ; BOLT-MAIN: DW_AT_call_file [DW_FORM_data1] (0x00)
29 ; BOLT-MAIN: DW_AT_call_line [DW_FORM_data1] (16)
30 ; BOLT-MAIN: DW_AT_call_column [DW_FORM_data1] (0x1d)
31 ; BOLT-MAIN: DW_AT_low_pc [DW_FORM_addrx]  (indexed (00000002) address = <unresolved>)
32 ; BOLT-MAIN: DW_AT_high_pc [DW_FORM_data4] (0x00000042)