Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / yaml2obj / ELF / sh-addralign.yaml
blob0cd6ea956723e06c8a3d66ea214f68acc190f0b6
1 ## Check that yaml2obj takes in account section AddressAlign field.
3 # RUN: yaml2obj %s -o %t
4 # RUN: llvm-readobj -S %t | FileCheck %s
6 # CHECK:      Section {
7 # CHECK:        Index:
8 # CHECK:        Name: .data
9 # CHECK-NEXT:   Type: SHT_PROGBITS
10 # CHECK-NEXT:   Flags [
11 # CHECK-NEXT:   ]
12 # CHECK-NEXT:   Address: 0x0
13 # CHECK-NEXT:   Offset: 0x{{[0-9A-F]*}}00
14 # CHECK-NEXT:   Size:
15 # CHECK-NEXT:   Link:
16 # CHECK-NEXT:   Info:
17 # CHECK-NEXT:   AddressAlignment: 256
18 # CHECK-NEXT:   EntrySize:
19 # CHECK-NEXT: }
21 !ELF
22 FileHeader:
23   Class: ELFCLASS64
24   Data:  ELFDATA2LSB
25   Type:  ET_REL
26 Sections:
27   - Name:         .data
28     Type:         SHT_PROGBITS
29     AddressAlign: 256