[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / Object / Lanai / yaml2obj-elf-lanai-rel.yaml
blobb5e6465a0e67aae0c0c3672bb04bdcad4dd812fb
1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-readobj -r %t | FileCheck %s
4 # CHECK:      Relocations [
5 # CHECK-NEXT:   Section (2) .rel.text {
6 # CHECK-NEXT:     0x0 R_LANAI_32 main 0x0
7 # CHECK-NEXT:     0x4 R_LANAI_NONE - 0x0
8 # CHECK-NEXT:     0x8 R_LANAI_21 - 0x0
9 # CHECK-NEXT:     0xC R_LANAI_21_F - 0x0
10 # CHECK-NEXT:     0x10 R_LANAI_25 - 0x0
11 # CHECK-NEXT:     0x14 R_LANAI_HI16 - 0x0
12 # CHECK-NEXT:     0x18 R_LANAI_LO16 - 0x0
13 # CHECK-NEXT:   }
14 # CHECK-NEXT: ]
16 !ELF
17 FileHeader:
18   Class:           ELFCLASS32
19   Data:            ELFDATA2LSB
20   Type:            ET_REL
21   Machine:         EM_LANAI
22 Sections:
23   - Type:            SHT_PROGBITS
24     Name:            .text
25     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
26     AddressAlign:    0x04
27     Content:         0000000000000000
28   - Type:            SHT_REL
29     Name:            .rel.text
30     Link:            .symtab
31     Info:            .text
32     AddressAlign:    0x04
33     Relocations:
34       - Offset:          0x0
35         Symbol:          main
36         Type:            R_LANAI_32
37       - Offset:          0x4
38         Type:            R_LANAI_NONE
39       - Offset:          0x8
40         Type:            R_LANAI_21
41       - Offset:          0xC
42         Type:            R_LANAI_21_F
43       - Offset:          0x10
44         Type:            R_LANAI_25
45       - Offset:          0x14
46         Type:            R_LANAI_HI16
47       - Offset:          0x18
48         Type:            R_LANAI_LO16
51 Symbols:
52   - Name:            .text
53     Type:            STT_SECTION
54     Section:         .text
55   - Name:            main
56     Type:            STT_FUNC
57     Section:         .text
58     Size:            0x08
59     Binding:         STB_GLOBAL