[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / MC / RISCV / fde-reloc.s
blob335594de3aba6ca5fd59867b47685d62ee70da5d
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
6 func:
7 .cfi_startproc
8 ret
9 .cfi_endproc
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: }
17 # NORELAX-RELOC: Section (4) .rela.eh_frame {
18 # NORELAX-RELOC-NEXT: 0x1C R_RISCV_32_PCREL - 0x0
19 # NORELAX-RELOC-NEXT: }