[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / obj2yaml / relocation-unsupported-machine.yaml
blobe55420f07b3930448e5c5fe0abc23d0dcdddc40c
1 ## Show that obj2yaml is able to dump relocations when `e_machine` is unknown.
3 # RUN: yaml2obj %s -o %t1
4 # RUN: obj2yaml %t1 | FileCheck %s
6 # CHECK:      --- !ELF
7 # CHECK-NEXT: FileHeader:
8 # CHECK-NEXT:   Class:   ELFCLASS64
9 # CHECK-NEXT:   Data:    ELFDATA2MSB
10 # CHECK-NEXT:   Type:    ET_REL
11 # CHECK-NEXT:   Machine: 0x1234
12 # CHECK-NEXT: Sections:
13 # CHECK-NEXT:   - Name:    .rela.text
14 # CHECK-NEXT:     Type:    SHT_RELA
15 # CHECK-NEXT:     Link:    .symtab
16 # CHECK-NEXT:     EntSize: 0x0000000000000018
17 # CHECK-NEXT:     Relocations:
18 # CHECK-NEXT:       - Offset: 0x0000000000000001
19 # CHECK-NEXT:         Symbol: ''
20 # CHECK-NEXT:         Type:   0x00000002
21 # CHECK-NEXT:       - Offset: 0x0000000000000003
22 # CHECK-NEXT:         Symbol: ''
23 # CHECK-NEXT:         Type:   0x00000004
25 --- !ELF
26 FileHeader:
27   Class:   ELFCLASS64
28   Data:    ELFDATA2MSB
29   Type:    ET_REL
30   Machine: 0x1234
31 Sections:
32   - Name: .rela.text
33     Type: SHT_RELA
34     Relocations:
35       - Offset: 0x1
36         Type:   0x2
37       - Offset: 0x3
38         Type:   0x4