1 # RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+experimental-v %s \
2 # RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 # RUN: not llvm-mc -triple=riscv64 -show-encoding %s 2>&1 \
4 # RUN: | FileCheck %s --check-prefix=CHECK-ERROR
5 # RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+experimental-v %s \
6 # RUN: | llvm-objdump -d --mattr=+experimental-v - \
7 # RUN: | FileCheck %s --check-prefix=CHECK-INST
8 # RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+experimental-v %s \
9 # RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
11 vdivu.vv v8
, v4
, v20
, v0.
t
12 # CHECK-INST: vdivu.vv v8, v4, v20, v0.t
13 # CHECK-ENCODING: [0x57,0x24,0x4a,0x80]
14 # CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
15 # CHECK-UNKNOWN: 57 24 4a 80 <unknown>
18 # CHECK-INST: vdivu.vv v8, v4, v20
19 # CHECK-ENCODING: [0x57,0x24,0x4a,0x82]
20 # CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
21 # CHECK-UNKNOWN: 57 24 4a 82 <unknown>
23 vdivu.vx v8
, v4
, a0
, v0.
t
24 # CHECK-INST: vdivu.vx v8, v4, a0, v0.t
25 # CHECK-ENCODING: [0x57,0x64,0x45,0x80]
26 # CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
27 # CHECK-UNKNOWN: 57 64 45 80 <unknown>
30 # CHECK-INST: vdivu.vx v8, v4, a0
31 # CHECK-ENCODING: [0x57,0x64,0x45,0x82]
32 # CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
33 # CHECK-UNKNOWN: 57 64 45 82 <unknown>
35 vdiv.vv v8
, v4
, v20
, v0.
t
36 # CHECK-INST: vdiv.vv v8, v4, v20, v0.t
37 # CHECK-ENCODING: [0x57,0x24,0x4a,0x84]
38 # CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
39 # CHECK-UNKNOWN: 57 24 4a 84 <unknown>
42 # CHECK-INST: vdiv.vv v8, v4, v20
43 # CHECK-ENCODING: [0x57,0x24,0x4a,0x86]
44 # CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
45 # CHECK-UNKNOWN: 57 24 4a 86 <unknown>
47 vdiv.vx v8
, v4
, a0
, v0.
t
48 # CHECK-INST: vdiv.vx v8, v4, a0, v0.t
49 # CHECK-ENCODING: [0x57,0x64,0x45,0x84]
50 # CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
51 # CHECK-UNKNOWN: 57 64 45 84 <unknown>
54 # CHECK-INST: vdiv.vx v8, v4, a0
55 # CHECK-ENCODING: [0x57,0x64,0x45,0x86]
56 # CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
57 # CHECK-UNKNOWN: 57 64 45 86 <unknown>
59 vremu.vv v8
, v4
, v20
, v0.
t
60 # CHECK-INST: vremu.vv v8, v4, v20, v0.t
61 # CHECK-ENCODING: [0x57,0x24,0x4a,0x88]
62 # CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
63 # CHECK-UNKNOWN: 57 24 4a 88 <unknown>
66 # CHECK-INST: vremu.vv v8, v4, v20
67 # CHECK-ENCODING: [0x57,0x24,0x4a,0x8a]
68 # CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
69 # CHECK-UNKNOWN: 57 24 4a 8a <unknown>
71 vremu.vx v8
, v4
, a0
, v0.
t
72 # CHECK-INST: vremu.vx v8, v4, a0, v0.t
73 # CHECK-ENCODING: [0x57,0x64,0x45,0x88]
74 # CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
75 # CHECK-UNKNOWN: 57 64 45 88 <unknown>
78 # CHECK-INST: vremu.vx v8, v4, a0
79 # CHECK-ENCODING: [0x57,0x64,0x45,0x8a]
80 # CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
81 # CHECK-UNKNOWN: 57 64 45 8a <unknown>
83 vrem.vv v8
, v4
, v20
, v0.
t
84 # CHECK-INST: vrem.vv v8, v4, v20, v0.t
85 # CHECK-ENCODING: [0x57,0x24,0x4a,0x8c]
86 # CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
87 # CHECK-UNKNOWN: 57 24 4a 8c <unknown>
90 # CHECK-INST: vrem.vv v8, v4, v20
91 # CHECK-ENCODING: [0x57,0x24,0x4a,0x8e]
92 # CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
93 # CHECK-UNKNOWN: 57 24 4a 8e <unknown>
95 vrem.vx v8
, v4
, a0
, v0.
t
96 # CHECK-INST: vrem.vx v8, v4, a0, v0.t
97 # CHECK-ENCODING: [0x57,0x64,0x45,0x8c]
98 # CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
99 # CHECK-UNKNOWN: 57 64 45 8c <unknown>
102 # CHECK-INST: vrem.vx v8, v4, a0
103 # CHECK-ENCODING: [0x57,0x64,0x45,0x8e]
104 # CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
105 # CHECK-UNKNOWN: 57 64 45 8e <unknown>