Zi Xuan Wu 582836faaf [CSKY] Enhance asm parser and relocation fixup for some special symbol address instruction
Add processing of parsing and emiting lrw/jsri/jmpi instruction, including related fixup and relocation.
Add relax support about pseudo instructions such as jbr/jbsr.
Add objdump format support like arm in llvm-objdump.
2022-03-24 14:14:04 +08:00

21 lines
379 B
ArmAsm

# RUN: llvm-mc -filetype=obj -triple=csky < %s \
# RUN: | llvm-objdump --no-show-raw-insn -M no-aliases -d -r - | FileCheck %s
.text
LABEL:
bkpt
jmpi LABEL
bkpt
# CHECK: 0: bkpt
# CHECK-NEXT: 2: br32 0x0
# CHECK-NEXT: 6: bkpt
# CHECK: 8: 00 00 00 00 .word 0x00000000
# CHECK-NEXT: 00000008: R_CKCORE_ADDR32 .text