[InstCombine] Signed saturation patterns
[llvm-core.git] / test / MC / RISCV / compressed-relocations.s
blob31c398ef84ed5813ebda6c9da8b0e90339bf109c
1 # RUN: llvm-mc -triple riscv32 -mattr=+c -riscv-no-aliases < %s -show-encoding \
2 # RUN: | FileCheck -check-prefix=INSTR -check-prefix=FIXUP %s
3 # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c < %s \
4 # RUN: | llvm-readobj -r | FileCheck -check-prefix=RELOC %s
5 # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c,+relax < %s \
6 # RUN: | llvm-readobj -r | FileCheck -check-prefix=RELOC %s
8 # Check prefixes:
9 # RELOC - Check the relocation in the object.
10 # FIXUP - Check the fixup on the instruction.
11 # INSTR - Check the instruction is handled properly by the ASMPrinter
12 c.jal foo
13 # A compressed jump (c.j) to an unresolved symbol will be relaxed to a (jal).
14 # RELOC: R_RISCV_JAL
15 # INSTR: c.jal foo
16 # FIXUP: fixup A - offset: 0, value: foo, kind: fixup_riscv_rvc_jump
18 c.bnez a0, foo
19 # A compressed branch (c.bnez) to an unresolved symbol will be relaxed to a (bnez).
20 # RELOC: R_RISCV_BRANCH
21 # INSTR: c.bnez a0, foo
22 # FIXUP: fixup A - offset: 0, value: foo, kind: fixup_riscv_rvc_branch