[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / RISCV / rv32fc-valid.s
blobffb4273b117cdae08a26f1a76193074793ba4dbb
1 # RUN: llvm-mc %s -triple=riscv32 -mattr=+c,+f -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,+f < %s \
4 # RUN: | llvm-objdump -mattr=+c,+f -M no-aliases -d -r - \
5 # RUN: | FileCheck -check-prefixes=CHECK-OBJ,CHECK-ASM-AND-OBJ %s
7 # RUN: not llvm-mc -triple riscv32 -mattr=+c \
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 riscv32 \
11 # RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \
12 # RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s
13 # RUN: not llvm-mc -triple riscv64 -mattr=+c,+f \
14 # RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \
15 # RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s
17 # FIXME: error messages for rv64fc are misleading
19 # CHECK-ASM-AND-OBJ: c.flwsp fs0, 252(sp)
20 # CHECK-ASM: encoding: [0x7e,0x74]
21 # CHECK-NO-EXT: error: instruction use requires an option to be enabled
22 c.flwsp fs0, 252(sp)
23 # CHECK-ASM-AND-OBJ: c.fswsp fa7, 252(sp)
24 # CHECK-ASM: encoding: [0xc6,0xff]
25 # CHECK-NO-EXT: error: instruction use requires an option to be enabled
26 c.fswsp fa7, 252(sp)
28 # CHECK-ASM-AND-OBJ: c.flw fa3, 124(a5)
29 # CHECK-ASM: encoding: [0xf4,0x7f]
30 # CHECK-NO-EXT: error: instruction use requires an option to be enabled
31 c.flw fa3, 124(a5)
32 # CHECK-ASM-AND-OBJ: c.fsw fa2, 124(a1)
33 # CHECK-ASM: encoding: [0xf0,0xfd]
34 # CHECK-NO-EXT: error: instruction use requires an option to be enabled
35 c.fsw fa2, 124(a1)