[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / MC / RISCV / rv32dc-valid.s
blob9e419f0ba82f1248b0269e23893306ae215a926b
1 # RUN: llvm-mc %s -triple=riscv32 -mattr=+c,+d -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,+d < %s \
4 # RUN: | llvm-objdump -mattr=+c,+d -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 -riscv-no-aliases -show-encoding < %s 2>&1 \
11 # RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s
13 # CHECK-ASM-AND-OBJ: c.fldsp fs0, 504(sp)
14 # CHECK-ASM: encoding: [0x7e,0x34]
15 # CHECK-NO-EXT: error: instruction use requires an option to be enabled
16 c.fldsp fs0, 504(sp)
17 # CHECK-ASM-AND-OBJ: c.fsdsp fa7, 504(sp)
18 # CHECK-ASM: encoding: [0xc6,0xbf]
19 # CHECK-NO-EXT: error: instruction use requires an option to be enabled
20 c.fsdsp fa7, 504(sp)
22 # CHECK-ASM-AND-OBJ: c.fld fa3, 248(a5)
23 # CHECK-ASM: encoding: [0xf4,0x3f]
24 # CHECK-NO-EXT: error: instruction use requires an option to be enabled
25 c.fld fa3, 248(a5)
26 # CHECK-ASM-AND-OBJ: c.fsd fa2, 248(a1)
27 # CHECK-ASM: encoding: [0xf0,0xbd]
28 # CHECK-NO-EXT: error: instruction use requires an option to be enabled
29 c.fsd fa2, 248(a1)