• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-mc -triple riscv32 -mattr=+c -show-encoding < %s \
2# RUN: | FileCheck -check-prefixes=CHECK,CHECK-ALIAS %s
3# RUN: llvm-mc -triple riscv32 -mattr=+c -show-encoding \
4# RUN: -riscv-no-aliases <%s | FileCheck -check-prefixes=CHECK,CHECK-INST %s
5# RUN: llvm-mc -triple riscv32 -mattr=+c -filetype=obj < %s \
6# RUN: | llvm-objdump  -triple riscv32 -mattr=+c -d - \
7# RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIAS %s
8# RUN: llvm-mc -triple riscv32 -mattr=+c -filetype=obj < %s \
9# RUN: | llvm-objdump  -triple riscv32 -mattr=+c -d -riscv-no-aliases - \
10# RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INST %s
11
12# c.jal is an rv32 only instruction.
13jal ra, 2046
14# CHECK-BYTES: fd 2f
15# CHECK-ALIAS: jal 2046
16# CHECK-INST: c.jal 2046
17# CHECK:  # encoding: [0xfd,0x2f]
18