1 # RUN: llvm-mc -triple=riscv32 -mattr=+c -riscv-no-aliases -show-encoding < %s \ 2 # RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s 3 # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c < %s \ 4 # RUN: | llvm-objdump -d -riscv-no-aliases - | FileCheck -check-prefix=CHECK-INST %s 5 # RUN: not llvm-mc -triple riscv32 \ 6 # RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \ 7 # RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s 8 # RUN: not llvm-mc -triple riscv64 -mattr=+c \ 9 # RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \ 10 # RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s 11 12 # CHECK-INST: c.jal 2046 13 # CHECK: encoding: [0xfd,0x2f] 14 # CHECK-NO-EXT: error: instruction use requires an option to be enabled 15 c.jal 2046 16