xref: /llvm-project/llvm/test/MC/LoongArch/Relocations/fde-reloc.s (revision b18cdeac79d0e084ac735fb1b9bbfd464d3d030c)
1# RUN: llvm-mc --filetype=obj --triple=loongarch64 < %s \
2# RUN:     | llvm-readobj -r - | FileCheck %s
3
4## Ensure that the eh_frame records the symbolic difference with
5## the R_LARCH_32_PCREL relocation.
6
7func:
8 .cfi_startproc
9  ret
10 .cfi_endproc
11
12# CHECK:   Section (4) .rela.eh_frame {
13# CHECK-NEXT:   0x1C R_LARCH_32_PCREL .text 0x0
14# CHECK-NEXT: }
15