Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / Object / Lanai / yaml2obj-elf-lanai-rel.yaml
blob182897a3dc35ac238e98e080900b331e43499d8b
1 # RUN: yaml2obj %s -o %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
7 # CHECK-NEXT:     0x4 R_LANAI_NONE -
8 # CHECK-NEXT:     0x8 R_LANAI_21 -
9 # CHECK-NEXT:     0xC R_LANAI_21_F -
10 # CHECK-NEXT:     0x10 R_LANAI_25 -
11 # CHECK-NEXT:     0x14 R_LANAI_HI16 -
12 # CHECK-NEXT:     0x18 R_LANAI_LO16 -
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       - Symbol:          main
35         Type:            R_LANAI_32
36       - Offset:          0x4
37         Type:            R_LANAI_NONE
38       - Offset:          0x8
39         Type:            R_LANAI_21
40       - Offset:          0xC
41         Type:            R_LANAI_21_F
42       - Offset:          0x10
43         Type:            R_LANAI_25
44       - Offset:          0x14
45         Type:            R_LANAI_HI16
46       - Offset:          0x18
47         Type:            R_LANAI_LO16
50 Symbols:
51   - Name:            .text
52     Type:            STT_SECTION
53     Section:         .text
54   - Name:            main
55     Type:            STT_FUNC
56     Section:         .text
57     Size:            0x08
58     Binding:         STB_GLOBAL