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
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
17 # NORELAX-RELOC: Section (4) .rela.eh_frame {
18 # NORELAX-RELOC-NEXT: 0x1C R_RISCV_32_PCREL - 0x0
19 # NORELAX-RELOC-NEXT: }