1# REQUIRES: system-linux 2 3# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-do-no-convert-low-pc-high-pc-to-ranges.s -o %t1.o 4# RUN: %clang %cflags %t1.o -o %t.exe -Wl,-q 5# RUN: llvm-bolt %t.exe -o %t.bolt --update-debug-sections 6# RUN: llvm-dwarfdump --show-form --verbose --debug-info %t.exe | FileCheck --check-prefix=PRECHECK %s 7# RUN: llvm-dwarfdump --show-form --verbose --debug-info %t.bolt | FileCheck --check-prefix=POSTCHECK %s 8 9## This test checks that we do not convert low_pc/high_pc to ranges for DW_TAG_inlined_subroutine, 10## when there is only one output range entry. 11 12# PRECHECK: DW_TAG_inlined_subroutine 13# PRECHECK: DW_AT_abstract_origin 14# PRECHECK: DW_AT_low_pc [DW_FORM_addrx] (indexed (00000001) 15# PRECHECK: DW_AT_high_pc [DW_FORM_data4] (0x00000002) 16 17# POSTCHECK: DW_TAG_inlined_subroutine 18# POSTCHECK: DW_AT_abstract_origin 19# POSTCHECK: DW_AT_low_pc [DW_FORM_addrx] (indexed (00000002) 20# POSTCHECK: DW_AT_high_pc [DW_FORM_data4] (0x00000002) 21