[SelectOpt] Support ADD and SUB with zext operands. (#115489)
[llvm-project.git] / llvm / test / Object / AArch64 / yaml2obj-elf-aarch64-rel.yaml
blobc40a900d18432ec16496290b2197b67bfc4995cd
1 # RUN: yaml2obj %s -o %t
2 # RUN: obj2yaml  %t | FileCheck %s
4 # CHECK:      - Name:            .rela.text
5 # CHECK-NEXT:   Type:            SHT_RELA
6 # CHECK-NEXT:    Link:            .symtab
7 # CHECK-NEXT:    AddressAlign:    0x8
8 # CHECK-NEXT:    Info:            .text
9 # CHECK-NEXT:    Relocations:
10 # CHECK-NEXT:      - Symbol:          main
11 # CHECK-NEXT:        Type:            R_AARCH64_ABS64
12 # CHECK-NEXT:      - Offset:          0x8
13 # CHECK-NEXT:        Symbol:          main
14 # CHECK-NEXT:        Type:            R_AARCH64_TLSGD_ADR_PREL21
16 !ELF
17 FileHeader:
18   Class:           ELFCLASS64
19   Data:            ELFDATA2LSB
20   Type:            ET_REL
21   Machine:         EM_AARCH64
22 Sections:
23   - Type:            SHT_PROGBITS
24     Name:            .text
25     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
26     AddressAlign:    0x04
27     Content:         00000000000000000000000000000000
28   - Type:            SHT_RELA
29     Name:            .rela.text
30     Link:            .symtab
31     Info:            .text
32     AddressAlign:    0x08
33     Relocations:
34       - Symbol:          main
35         Type:            R_AARCH64_ABS64
36         Addend:          0
37       - Offset:          8
38         Symbol:          main
39         Type:            R_AARCH64_TLSGD_ADR_PREL21
40         Addend:          0
42 Symbols:
43   - Name:            .text
44     Type:            STT_SECTION
45     Section:         .text
46   - Name:            main
47     Type:            STT_FUNC
48     Section:         .text
49     Size:            0x08
50     Binding:         STB_GLOBAL