[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / MC / RISCV / rv64d-valid.s
blob58ff08f3b245f7f5cee900613375ab5a8d6086ce
1 # RUN: llvm-mc %s -triple=riscv64 -mattr=+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=riscv64 -mattr=+d < %s \
4 # RUN: | llvm-objdump -mattr=+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=+d < %s 2>&1 \
8 # RUN: | FileCheck -check-prefix=CHECK-RV32 %s
10 # FIXME: error messages for rv32d are misleading
12 # CHECK-ASM-AND-OBJ: fcvt.l.d a0, ft0, dyn
13 # CHECK-ASM: encoding: [0x53,0x75,0x20,0xc2]
14 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction use requires an option to be enabled
15 fcvt.l.d a0, ft0, dyn
16 # CHECK-ASM-AND-OBJ: fcvt.lu.d a1, ft1, dyn
17 # CHECK-ASM: encoding: [0xd3,0xf5,0x30,0xc2]
18 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction use requires an option to be enabled
19 fcvt.lu.d a1, ft1, dyn
20 # CHECK-ASM-AND-OBJ: fmv.x.d a2, ft2
21 # CHECK-ASM: encoding: [0x53,0x06,0x01,0xe2]
22 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction use requires an option to be enabled
23 fmv.x.d a2, ft2
24 # CHECK-ASM-AND-OBJ: fcvt.d.l ft3, a3, dyn
25 # CHECK-ASM: encoding: [0xd3,0xf1,0x26,0xd2]
26 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction use requires an option to be enabled
27 fcvt.d.l ft3, a3, dyn
28 # CHECK-ASM-AND-OBJ: fcvt.d.lu ft4, a4, dyn
29 # CHECK-ASM: encoding: [0x53,0x72,0x37,0xd2]
30 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction use requires an option to be enabled
31 fcvt.d.lu ft4, a4, dyn
32 # CHECK-ASM-AND-OBJ: fmv.d.x ft5, a5
33 # CHECK-ASM: encoding: [0xd3,0x82,0x07,0xf2]
34 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction use requires an option to be enabled
35 fmv.d.x ft5, a5
37 # Rounding modes
38 # CHECK-ASM-AND-OBJ: fcvt.d.l ft3, a3, rne
39 # CHECK-ASM: encoding: [0xd3,0x81,0x26,0xd2]
40 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction use requires an option to be enabled
41 fcvt.d.l ft3, a3, rne
42 # CHECK-ASM-AND-OBJ: fcvt.d.lu ft4, a4, rtz
43 # CHECK-ASM: encoding: [0x53,0x12,0x37,0xd2]
44 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction use requires an option to be enabled
45 fcvt.d.lu ft4, a4, rtz
46 # CHECK-ASM-AND-OBJ: fcvt.l.d a0, ft0, rdn
47 # CHECK-ASM: encoding: [0x53,0x25,0x20,0xc2]
48 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction use requires an option to be enabled
49 fcvt.l.d a0, ft0, rdn
50 # CHECK-ASM-AND-OBJ: fcvt.lu.d a1, ft1, rup
51 # CHECK-ASM: encoding: [0xd3,0xb5,0x30,0xc2]
52 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction use requires an option to be enabled
53 fcvt.lu.d a1, ft1, rup