AMDGPU: Allow f16/bf16 for DS_READ_TR16_B64 gfx950 builtins (#118297)
[llvm-project.git] / llvm / test / tools / llvm-objdump / relocation-xindex-symbol.test
blobc292b2cfd65ab2ef235c9185769dd9fc70ff1fa0
1 ## Test that llvm-objdump can handle SHN_XINDEX. The relocation points to a section
2 ## symbol that has st_shndx == SHN_XINDEX. To print the section name llvm-objdump
3 ## has to use the SHT_SYMTAB_SHNDX section.
5 # RUN: yaml2obj %s -o %t
6 # RUN: llvm-objdump -r %t | FileCheck %s
8 # CHECK:      RELOCATION RECORDS FOR [.text]:
9 # CHECK-NEXT: OFFSET           TYPE                     VALUE
10 # CHECK-NEXT: 0000000000000000 R_X86_64_32              bar
12 --- !ELF
13 FileHeader:
14   Class:   ELFCLASS64
15   Data:    ELFDATA2LSB
16   Type:    ET_REL
17   Machine: EM_X86_64
18 Sections:
19   - Name: .text
20     Type: SHT_PROGBITS
21   - Name: .rela.text
22     Type: SHT_RELA
23     Info: .text
24     Relocations:
25       - Offset: 0x0000000000000000
26         Symbol: bar
27         Type:   R_X86_64_32
28   - Name: bar
29     Type: SHT_PROGBITS
30   - Name:    .symtab_shndx
31     Type:    SHT_SYMTAB_SHNDX
32     Link:    .symtab
33     Entries: [ 0, 3 ]
34 Symbols:
35   - Name:  bar
36     Type:  STT_SECTION
37     Index: SHN_XINDEX