1 # RUN: llvm-mc %s -triple riscv32 -mattr=+c -show-encoding \
2 # RUN: | FileCheck -check-prefix=CHECK-FIXUP %s
3 # RUN: llvm-mc -triple riscv32 -filetype=obj -mattr=+c < %s \
4 # RUN: | llvm-objdump -d -M no-aliases - | FileCheck -check-prefix=CHECK-INSTR %s
5 # RUN: llvm-mc -filetype=obj -mattr=+c -triple=riscv32 %s \
6 # RUN: | llvm-readobj -r | FileCheck %s -check-prefix=CHECK-REL
9 # CHECK-FIXUP: fixup A - offset: 0, value: .LBB0_2, kind: fixup_riscv_rvc_jump
12 # CHECK: fixup A - offset: 0, value: func1, kind: fixup_riscv_rvc_jump
13 # CHECK-INSTR: c.jal 6
15 # CHECK-FIXUP: fixup A - offset: 0, value: .LBB0_2, kind: fixup_riscv_rvc_branch
16 # CHECK-INSTR: c.beqz a3, -4
18 # CHECK-FIXUP: fixup A - offset: 0, value: .LBB0_2, kind: fixup_riscv_rvc_branch
19 # CHECK-INSTR: c.bnez a5, -6
25 # CHECK-REL-NOT: R_RISCV