[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / RISCV / fixups-compressed.s
blob3c39bf31952c9ace5b5cd8c24902c2db6f2e37be
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
8 .LBB0_2:
9 # CHECK-FIXUP: fixup A - offset: 0, value: .LBB0_2, kind: fixup_riscv_rvc_jump
10 # CHECK-INSTR: c.j 0
11 c.j .LBB0_2
12 # CHECK: fixup A - offset: 0, value: func1, kind: fixup_riscv_rvc_jump
13 # CHECK-INSTR: c.jal 6
14 c.jal func1
15 # CHECK-FIXUP: fixup A - offset: 0, value: .LBB0_2, kind: fixup_riscv_rvc_branch
16 # CHECK-INSTR: c.beqz a3, -4
17 c.beqz a3, .LBB0_2
18 # CHECK-FIXUP: fixup A - offset: 0, value: .LBB0_2, kind: fixup_riscv_rvc_branch
19 # CHECK-INSTR: c.bnez a5, -6
20 c.bnez a5, .LBB0_2
22 func1:
23 nop
25 # CHECK-REL-NOT: R_RISCV