[InstCombine] Signed saturation patterns
[llvm-core.git] / test / tools / yaml2obj / relocation-unsupported-machine.yaml
blob3943e64d14ef8cb35faa9076cb18692eede19649
1 ## Show that yaml2obj is able to write relocations for an unknown e_machine properly.
3 # RUN: yaml2obj %s -o %t1
4 # RUN: llvm-readelf %t1 --relocations | FileCheck %s
6 # CHECK: Relocation section '.rela.text' at offset 0x40 contains 2 entries:
7 # CHECK:      Offset            Info             Type    Symbol's Value  Symbol's Name + Addend
8 # CHECK-NEXT: 0000000000000001  0000000000000002 Unknown                                 0
9 # CHECK-NEXT: 0000000000000003  0000000000000004 Unknown                                 0
11 --- !ELF
12 FileHeader:
13   Class:   ELFCLASS64
14   Data:    ELFDATA2MSB
15   Type:    ET_REL
16   Machine: 0x1234
17 Sections:
18   - Name: .rela.text
19     Type: SHT_RELA
20     Relocations:
21       - Offset: 0x1
22         Type:   0x2
23       - Offset: 0x3
24         Type:   0x4