Mips direct object exception handling regression
[oota-llvm.git] / test / MC / Mips / fde-reloc.s
1 // This just tests that a relocation of the specified type shows up as the first
2 // relocation in the relocation section for .eh_frame when produced by the
3 // assembler.
4
5 // RUN: llvm-mc -filetype=obj %s -o - -triple mips-unknown-unknown | \
6 // RUN: llvm-objdump -r - | FileCheck --check-prefix=MIPS32 %s
7
8 // RUN: llvm-mc -filetype=obj %s -o - -triple mips64-unknown-unknown | \
9 // RUN: llvm-objdump -r - | FileCheck --check-prefix=MIPS64 %s
10
11 // PR15448
12
13 func:
14         .cfi_startproc
15         .cfi_endproc
16
17 // MIPS32: RELOCATION RECORDS FOR [.eh_frame]:
18 // MIPS32-NEXT: R_MIPS_32
19
20 // MIPS64: RELOCATION RECORDS FOR [.eh_frame]:
21 // MIPS64-NEXT: R_MIPS_64