Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-objcopy / grouped-options.test
blobc361a88bd3b8fbfa26dc7ee88b310be27f9f50c2
1 ## This test checks that both grouped and ungrouped options (-S -x and -Sx)
2 ## produce exactly the same result given the same input.
4 # RUN: yaml2obj %s -o %t
5 # RUN: llvm-strip -S -x -o %t-strip-separated %t
6 # RUN: llvm-strip -Sx -o %t-strip-grouped %t
7 # RUN: cmp %t-strip-separated %t-strip-grouped
9 # RUN: llvm-objcopy -S -x %t %t-objcopy-separated
10 # RUN: llvm-objcopy -Sx %t %t-objcopy-grouped
11 # RUN: cmp %t-objcopy-separated %t-objcopy-grouped
13 !ELF
14 FileHeader:
15   Class:           ELFCLASS64
16   Data:            ELFDATA2LSB
17   Type:            ET_REL
18   Machine:         EM_X86_64
19 Sections:
20   - Name:            .debugGlobal
21     Type:            SHT_PROGBITS
22     Content:         "00000000"
23   - Name:            .text
24     Type:            SHT_PROGBITS
25     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
26     Address:         0x1000
27     AddressAlign:    0x0000000000000010
28     Size:            64
29 Symbols:
30   - Name:     Local
31     Type:     STT_FUNC
32     Section:  .text
33     Value:    0x1000
34     Size:     8
35   - Name:     LocalSection
36     Type:     STT_SECTION
37     Section:  .text
38   - Name:     LocalFile
39     Type:     STT_FILE
40   - Name:     Global
41     Type:     STT_FUNC
42     Size:     8
43     Section:  .text
44     Value:    0x1010
45     Binding:  STB_GLOBAL
46   - Name:     Weak
47     Type:     STT_FUNC
48     Size:     8
49     Section:  .text
50     Value:    0x1008
51   - Name:    debugGlobal
52     Section: .debugGlobal
53     Binding:  STB_GLOBAL