Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-dwarfutil / ELF / X86 / warning-pubnames.test
blobf6b939e918deb71b9a7aa0ddb561010f1496ed47
1 ## This test checks the warning message displayed if input file
2 ## contains .debug_pubnames section which is incompatible with
3 ## requested accelerator table.
5 # RUN: yaml2obj %s -o %t.o
7 # RUN: llvm-dwarfutil --garbage-collection %t.o %t1 2>&1 | FileCheck %s -DFILE=%t.o --check-prefix=WARN1
9 # RUN: llvm-dwarfutil --build-accelerator=DWARF --garbage-collection %t.o %t1 2>&1 | FileCheck %s -DFILE=%t.o --check-prefix=WARN2
11 # RUN: llvm-dwarfutil --build-accelerator=DWARF --no-garbage-collection %t.o %t1 2>&1 | FileCheck %s -DFILE=%t.o --check-prefix=WARN2
13 # WARN1: [[FILE]]: warning: '.debug_pubnames' will be deleted as no accelerator tables are requested
15 # WARN2: [[FILE]]: warning: '.debug_pubnames' will be replaced with requested .debug_names table
17 --- !ELF
18 FileHeader:
19   Class:    ELFCLASS64
20   Data:     ELFDATA2LSB
21   Type:     ET_REL
22   Machine:  EM_X86_64
23 Sections:
24   - Name:            .text
25     Type:            SHT_PROGBITS
26     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
27     Address:         0x1000
28     AddressAlign:    0x0000000000000010
29     Content:         "FFFFFFFF"
30   - Name:            .debug_pubnames
31     Type:            SHT_PROGBITS
32     Flags:           [  ]
33     Content:         "0000"
34 DWARF:
35   debug_abbrev:
36     - Table:
37       - Tag:      DW_TAG_compile_unit
38         Children: DW_CHILDREN_yes
39         Attributes:
40           - Attribute: DW_AT_producer
41             Form:      DW_FORM_string
42           - Attribute: DW_AT_language
43             Form:      DW_FORM_data2
44           - Attribute: DW_AT_name
45             Form:      DW_FORM_string
46           - Attribute: DW_AT_low_pc
47             Form:      DW_FORM_addr
48           - Attribute: DW_AT_high_pc
49             Form:      DW_FORM_data8
50   debug_info:
51     - Version: 5
52       UnitType:   DW_UT_compile
53       Entries:
54         - AbbrCode: 1
55           Values:
56             - CStr: by_hand
57             - Value:  0x04
58             - CStr: CU1
59             - Value:  0x1000
60             - Value:  0x4
61         - AbbrCode: 0
62 ...