mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
246602f2b6
The replacement doesn't work for llc, but it is needed by patchable-function-entry.ll. This reverts commit aa9a30b83a06e3e5e68e32ea645ec2d9edc27efc.
23 lines
1007 B
ArmAsm
23 lines
1007 B
ArmAsm
# RUN: llvm-mc -triple riscv32 -mattr=+c -riscv-no-aliases < %s -show-encoding \
|
|
# RUN: | FileCheck -check-prefix=INSTR -check-prefix=FIXUP %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c < %s \
|
|
# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELOC %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c,+relax < %s \
|
|
# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELOC %s
|
|
|
|
# Check prefixes:
|
|
# RELOC - Check the relocation in the object.
|
|
# FIXUP - Check the fixup on the instruction.
|
|
# INSTR - Check the instruction is handled properly by the ASMPrinter
|
|
c.jal foo
|
|
# A compressed jump (c.j) to an unresolved symbol will be relaxed to a (jal).
|
|
# RELOC: R_RISCV_JAL
|
|
# INSTR: c.jal foo
|
|
# FIXUP: fixup A - offset: 0, value: foo, kind: fixup_riscv_rvc_jump
|
|
|
|
c.bnez a0, foo
|
|
# A compressed branch (c.bnez) to an unresolved symbol will be relaxed to a (bnez).
|
|
# RELOC: R_RISCV_BRANCH
|
|
# INSTR: c.bnez a0, foo
|
|
# FIXUP: fixup A - offset: 0, value: foo, kind: fixup_riscv_rvc_branch
|