1# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+relax < %s \ 2# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELAX-RELOC %s 3# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=-relax < %s \ 4# RUN: | llvm-readobj -r - | FileCheck -check-prefix=NORELAX-RELOC %s 5 6func: 7 .cfi_startproc 8 ret 9 .cfi_endproc 10 11# RELAX-RELOC: Section (4) .rela.eh_frame { 12# RELAX-RELOC-NEXT: 0x1C R_RISCV_32_PCREL - 0x0 13# RELAX-RELOC-NEXT: 0x20 R_RISCV_ADD32 - 0x0 14# RELAX-RELOC-NEXT: 0x20 R_RISCV_SUB32 - 0x0 15# RELAX-RELOC-NEXT: } 16 17# NORELAX-RELOC: Section (4) .rela.eh_frame { 18# NORELAX-RELOC-NEXT: 0x1C R_RISCV_32_PCREL - 0x0 19# NORELAX-RELOC-NEXT: } 20