xref: /llvm-project/bolt/test/X86/dwarf5-df-larger-batch-size.test (revision 9a3e66e314e698ffb08dba151bc098b6b8867c61)
1; RUN: rm -rf %t
2; RUN: mkdir %t
3; RUN: cd %t
4; RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-df-input-lowpc-ranges-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-input-lowpc-ranges-other.s \
7; RUN: -split-dwarf-file=mainOther.dwo -o other.o
8; RUN: %clang %cflags main.o other.o -o main.exe
9; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections --cu-processing-batch-size=1
10; RUN: llvm-bolt main.exe -o main-batch.exe.bolt --update-debug-sections --cu-processing-batch-size=2
11; RUN: llvm-dwarfdump --show-form --verbose --debug-info main.exe.bolt >> %t/foo.txt
12; RUN: cat %t/foo.txt | FileCheck -check-prefix=BOLT %s
13; RUN: llvm-dwarfdump --show-form --verbose --debug-info main.exe.bolt >> %t/foo-batch.txt
14; RUN: cat %t/foo-batch.txt | FileCheck -check-prefix=BOLT-BATCH %s
15
16;; Tests that BOLT correctly handles DWO name strings with larger batch sizes.
17
18; BOLT: DW_TAG_skeleton_unit
19; BOLT: DW_AT_dwo_name [DW_FORM_strx1]  (indexed (00000001) string = "main.dwo.dwo")
20
21; BOLT: DW_TAG_skeleton_unit
22; BOLT: DW_AT_dwo_name [DW_FORM_strx1]  (indexed (00000001) string = "mainOther.dwo.dwo")
23
24; BOLT-BATCH: DW_TAG_skeleton_unit
25; BOLT-BATCH: DW_AT_dwo_name [DW_FORM_strx1]  (indexed (00000001) string = "main.dwo.dwo")
26
27; BOLT-BATCH: DW_TAG_skeleton_unit
28; BOLT-BATCH: DW_AT_dwo_name [DW_FORM_strx1]  (indexed (00000001) string = "mainOther.dwo.dwo")
29