[llvm-shlib] Fix the version naming style of libLLVM for Windows (#85710)
[llvm-project.git] / bolt / test / X86 / dwarf4-df-do-no-convert-low-pc-high-pc-to-ranges.test
blob95c1c747a3d04e78813d500665a86ef4c2a4aca7
1 ; REQUIRES: system-linux
3 ; RUN: rm -rf %t
4 ; RUN: mkdir %t
5 ; RUN: cd %t
7 ; RUN: llvm-mc -split-dwarf-file=main.dwo -dwarf-version=4 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf4-df-do-no-convert-low-pc-high-pc-to-ranges.s -o main.o
8 ; RUN: %clang %cflags -gsplit-dwarf=split main.o -o main.exe -Wl,-q
9 ; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections
10 ; RUN: llvm-dwarfdump --show-form --verbose --debug-info main.dwo | FileCheck --check-prefix=PRECHECK %s
11 ; RUN: llvm-dwarfdump --show-form --verbose --debug-info main.dwo.dwo | FileCheck --check-prefix=POSTCHECK %s
13 ; This test checks that we do not convert low_pc/high_pc to ranges for DW_TAG_inlined_subroutine,
14 ; when there is only one output range entry.
16 ; PRECHECK: DW_TAG_inlined_subroutine
17 ; PRECHECK: DW_AT_abstract_origin
18 ; PRECHECK: DW_AT_low_pc [DW_FORM_GNU_addr_index] (indexed (00000001)
19 ; PRECHECK: DW_AT_high_pc [DW_FORM_data4] (0x00000002)
21 ; POSTCHECK: DW_TAG_inlined_subroutine
22 ; POSTCHECK: DW_AT_abstract_origin
23 ; POSTCHECK: DW_AT_low_pc [DW_FORM_GNU_addr_index] (indexed (00000003)
24 ; POSTCHECK: DW_AT_high_pc [DW_FORM_data4] (0x00000002)