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-ALIASOBJ %s 8# RUN: llvm-mc -triple riscv32 -mattr=+c -filetype=obj < %s \ 9# RUN: | llvm-objdump --triple=riscv32 --mattr=+c -d -M no-aliases - \ 10# RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INSTOBJ %s 11 12# c.jal is an rv32 only instruction. 13jal ra, 2046 14# CHECK-BYTES: fd 2f 15# CHECK-ALIASOBJ: jal 0x7fe 16# CHECK-ALIAS: jal 2046 17# CHECK-INST: c.jal 2046 18# CHECK-INSTOBJ: c.jal 0x7fe 19# CHECK: # encoding: [0xfd,0x2f] 20