diff options
author | Jack Carter <jack.carter@imgtec.com> | 2013-03-27 22:58:49 +0000 |
---|---|---|
committer | Jack Carter <jack.carter@imgtec.com> | 2013-03-27 22:58:49 +0000 |
commit | c8d65364223a04b179958a50a4bf0f89b21dd7d2 (patch) | |
tree | dd19c58af8080200fa1ad4b36512c248444b279c /test/MC | |
parent | dd40e8cd54805aa81c8548ac8c87755c562c1723 (diff) | |
download | external_llvm-c8d65364223a04b179958a50a4bf0f89b21dd7d2.zip external_llvm-c8d65364223a04b179958a50a4bf0f89b21dd7d2.tar.gz external_llvm-c8d65364223a04b179958a50a4bf0f89b21dd7d2.tar.bz2 |
Updated ELF relocation test for .eh_frame section
Made sure we were looking a correct section
Added Mips32/64 as an extra check
Updated llvm-objdump to generate symbolic info for Mips relocations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178190 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/ELF/fde-reloc.s | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/test/MC/ELF/fde-reloc.s b/test/MC/ELF/fde-reloc.s index 63ac976..c7e237e 100644 --- a/test/MC/ELF/fde-reloc.s +++ b/test/MC/ELF/fde-reloc.s @@ -1,5 +1,18 @@ -// RUN: llvm-mc -filetype=obj %s -o - -triple x86_64-pc-linux | llvm-objdump -r - | FileCheck --check-prefix=X86-64 %s -// RUN: llvm-mc -filetype=obj %s -o - -triple i686-pc-linux | llvm-objdump -r - | FileCheck --check-prefix=I686 %s +// This just tests that a relocation of the specified type shows up as the first +// relocation in the relocation section for .eh_frame when produced by the +// assembler. + +// RUN: llvm-mc -filetype=obj %s -o - -triple x86_64-pc-linux | \ +// RUN: llvm-objdump -r - | FileCheck --check-prefix=X86-64 %s + +// RUN: llvm-mc -filetype=obj %s -o - -triple i686-pc-linux | \ +// RUN: llvm-objdump -r - | FileCheck --check-prefix=I686 %s + +// RUN: llvm-mc -filetype=obj %s -o - -triple mips-unknown-unknown | \ +// RUN: llvm-objdump -r - | FileCheck --check-prefix=MIPS32 %s + +// RUN: llvm-mc -filetype=obj %s -o - -triple mips64-unknown-unknown | \ +// RUN: llvm-objdump -r - | FileCheck --check-prefix=MIPS64 %s // PR15448 @@ -7,5 +20,14 @@ func: .cfi_startproc .cfi_endproc -// X86-64: R_X86_64_PC32 -// I686: R_386_PC32 +// X86-64: RELOCATION RECORDS FOR [.eh_frame]: +// X86-64-NEXT: R_X86_64_PC32 + +// I686: RELOCATION RECORDS FOR [.eh_frame]: +// I686-NEXT: R_386_PC32 + +// MIPS32: RELOCATION RECORDS FOR [.eh_frame]: +// MIPS32-NEXT: R_MIPS_32 + +// MIPS64: RELOCATION RECORDS FOR [.eh_frame]: +// MIPS64-NEXT: R_MIPS_64 |