[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / RISCV / rv32c-only-valid.s
blobe75fa92feef4ddf34594d7bd75f3471f182db97c
1 # RUN: llvm-mc %s -triple=riscv32 -mattr=+c -riscv-no-aliases -show-encoding \
2 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
3 # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+c < %s \
4 # RUN: | llvm-objdump -mattr=+c -M no-aliases -d -r - \
5 # RUN: | FileCheck -check-prefixes=CHECK-OBJ,CHECK-ASM-AND-OBJ %s
7 # RUN: not llvm-mc -triple riscv32 \
8 # RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \
9 # RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s
10 # RUN: not llvm-mc -triple riscv64 -mattr=+c \
11 # RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \
12 # RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s
14 # FIXME: error message for c.jal with rv64c is misleading
16 # CHECK-ASM-AND-OBJ: c.jal 2046
17 # CHECK-ASM: encoding: [0xfd,0x2f]
18 # CHECK-NO-EXT: error: instruction use requires an option to be enabled
19 c.jal 2046