1# RUN: llvm-mc --filetype=obj --triple=loongarch64 -mattr=-relax %s -o %t.o 2# RUN: llvm-readobj -r %t.o | FileCheck --check-prefix=RELOC %s 3# RUN: llvm-dwarfdump --debug-frame %t.o | FileCheck --check-prefix=DWARFDUMP %s 4 5# RELOC: Relocations [ 6# RELOC-NEXT: .rela.eh_frame { 7# RELOC-NEXT: 0x1C R_LARCH_32_PCREL .text 0x0 8# RELOC-NEXT: } 9# RELOC-NEXT: ] 10# DWARFDUMP: DW_CFA_advance_loc: 4 11# DWARFDUMP-NEXT: DW_CFA_def_cfa_offset: +8 12# DWARFDUMP-NEXT: DW_CFA_advance_loc: 8 13# DWARFDUMP-NEXT: DW_CFA_def_cfa_offset: +8 14 15 .text 16 .globl test 17 .p2align 2 18 .type test,@function 19test: 20 .cfi_startproc 21 nop 22 .cfi_def_cfa_offset 8 23 .p2align 3 24 nop 25 .cfi_def_cfa_offset 8 26 nop 27 .cfi_endproc 28