Add relocation types for Hexagon processor; patch by Sidney Manning <sidneym@codeauro...
[oota-llvm.git] / test / Object / objdump-relocations.test
1 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.coff-i386 \
2 RUN:              | FileCheck %s -check-prefix COFF-i386
3 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.coff-x86-64 \
4 RUN:              | FileCheck %s -check-prefix COFF-x86-64
5 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-i386 \
6 RUN:              | FileCheck %s -check-prefix ELF-i386
7 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-x86-64 \
8 RUN:              | FileCheck %s -check-prefix ELF-x86-64
9 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-hexagon \
10 RUN:              | FileCheck %s -check-prefix ELF-hexagon
11
12 COFF-i386: .text
13 COFF-i386: IMAGE_REL_I386_DIR32 L_.str
14 COFF-i386: IMAGE_REL_I386_REL32 _puts
15 COFF-i386: IMAGE_REL_I386_REL32 _SomeOtherFunction
16
17 COFF-x86-64: .text
18 COFF-x86-64: IMAGE_REL_AMD64_REL32 L.str
19 COFF-x86-64: IMAGE_REL_AMD64_REL32 puts
20 COFF-x86-64: IMAGE_REL_AMD64_REL32 SomeOtherFunction
21
22 ELF-i386: .text
23 ELF-i386: R_386_32
24 ELF-i386: R_386_PC32
25 ELF-i386: R_386_PC32
26
27 ELF-x86-64: .text
28 ELF-x86-64: R_X86_64_32S .rodata.str1.1
29 ELF-x86-64: R_X86_64_PC32 puts
30 ELF-x86-64: R_X86_64_PC32 SomeOtherFunction
31
32 ELF-hexagon: .text
33 ELF-hexagon: R_HEX_GOTREL_HI16 .main
34 ELF-hexagon: R_HEX_GOTREL_LO16 .main
35 ELF-hexagon: R_HEX_HI16 puts
36 ELF-hexagon: R_HEX_LO16 puts
37 ELF-hexagon: R_HEX_B15_PCREL testf
38 ELF-hexagon: R_HEX_B22_PCREL puts