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
10
11vmand.mm v8, v4, v20
12# CHECK-INST: vmand.mm v8, v4, v20
13# CHECK-ENCODING: [0x57,0x24,0x4a,0x66]
14# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
15# CHECK-UNKNOWN: 57 24 4a 66 <unknown>
16
17vmnand.mm v8, v4, v20
18# CHECK-INST: vmnand.mm v8, v4, v20
19# CHECK-ENCODING: [0x57,0x24,0x4a,0x76]
20# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
21# CHECK-UNKNOWN: 57 24 4a 76 <unknown>
22
23vmandnot.mm v8, v4, v20
24# CHECK-INST: vmandnot.mm v8, v4, v20
25# CHECK-ENCODING: [0x57,0x24,0x4a,0x62]
26# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
27# CHECK-UNKNOWN: 57 24 4a 62 <unknown>
28
29vmxor.mm v8, v4, v20
30# CHECK-INST: vmxor.mm v8, v4, v20
31# CHECK-ENCODING: [0x57,0x24,0x4a,0x6e]
32# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
33# CHECK-UNKNOWN: 57 24 4a 6e <unknown>
34
35vmor.mm v8, v4, v20
36# CHECK-INST: vmor.mm v8, v4, v20
37# CHECK-ENCODING: [0x57,0x24,0x4a,0x6a]
38# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
39# CHECK-UNKNOWN: 57 24 4a 6a <unknown>
40
41vmnor.mm v8, v4, v20
42# CHECK-INST: vmnor.mm v8, v4, v20
43# CHECK-ENCODING: [0x57,0x24,0x4a,0x7a]
44# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
45# CHECK-UNKNOWN: 57 24 4a 7a <unknown>
46
47vmornot.mm v8, v4, v20
48# CHECK-INST: vmornot.mm v8, v4, v20
49# CHECK-ENCODING: [0x57,0x24,0x4a,0x72]
50# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
51# CHECK-UNKNOWN: 57 24 4a 72 <unknown>
52
53vmxnor.mm v8, v4, v20
54# CHECK-INST: vmxnor.mm v8, v4, v20
55# CHECK-ENCODING: [0x57,0x24,0x4a,0x7e]
56# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
57# CHECK-UNKNOWN: 57 24 4a 7e <unknown>
58
59vpopc.m a2, v4, v0.t
60# CHECK-INST: vpopc.m a2, v4, v0.t
61# CHECK-ENCODING: [0x57,0x26,0x48,0x40]
62# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
63# CHECK-UNKNOWN: 57 26 48 40 <unknown>
64
65vpopc.m a2, v4
66# CHECK-INST: vpopc.m a2, v4
67# CHECK-ENCODING: [0x57,0x26,0x48,0x42]
68# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
69# CHECK-UNKNOWN: 57 26 48 42 <unknown>
70
71vfirst.m a2, v4, v0.t
72# CHECK-INST: vfirst.m a2, v4, v0.t
73# CHECK-ENCODING: [0x57,0xa6,0x48,0x40]
74# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
75# CHECK-UNKNOWN: 57 a6 48 40 <unknown>
76
77vfirst.m a2, v4
78# CHECK-INST: vfirst.m a2, v4
79# CHECK-ENCODING: [0x57,0xa6,0x48,0x42]
80# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
81# CHECK-UNKNOWN: 57 a6 48 42 <unknown>
82
83vmsbf.m v8, v4, v0.t
84# CHECK-INST: vmsbf.m v8, v4, v0.t
85# CHECK-ENCODING: [0x57,0xa4,0x40,0x50]
86# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
87# CHECK-UNKNOWN: 57 a4 40 50 <unknown>
88
89vmsbf.m v8, v4
90# CHECK-INST: vmsbf.m v8, v4
91# CHECK-ENCODING: [0x57,0xa4,0x40,0x52]
92# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
93# CHECK-UNKNOWN: 57 a4 40 52 <unknown>
94
95vmsif.m v8, v4, v0.t
96# CHECK-INST: vmsif.m v8, v4, v0.t
97# CHECK-ENCODING: [0x57,0xa4,0x41,0x50]
98# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
99# CHECK-UNKNOWN: 57 a4 41 50 <unknown>
100
101vmsif.m v8, v4
102# CHECK-INST: vmsif.m v8, v4
103# CHECK-ENCODING: [0x57,0xa4,0x41,0x52]
104# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
105# CHECK-UNKNOWN: 57 a4 41 52 <unknown>
106
107vmsof.m v8, v4, v0.t
108# CHECK-INST: vmsof.m v8, v4, v0.t
109# CHECK-ENCODING: [0x57,0x24,0x41,0x50]
110# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
111# CHECK-UNKNOWN: 57 24 41 50 <unknown>
112
113vmsof.m v8, v4
114# CHECK-INST: vmsof.m v8, v4
115# CHECK-ENCODING: [0x57,0x24,0x41,0x52]
116# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
117# CHECK-UNKNOWN: 57 24 41 52 <unknown>
118
119viota.m v8, v4, v0.t
120# CHECK-INST: viota.m v8, v4, v0.t
121# CHECK-ENCODING: [0x57,0x24,0x48,0x50]
122# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
123# CHECK-UNKNOWN: 57 24 48 50 <unknown>
124
125viota.m v8, v4
126# CHECK-INST: viota.m v8, v4
127# CHECK-ENCODING: [0x57,0x24,0x48,0x52]
128# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
129# CHECK-UNKNOWN: 57 24 48 52 <unknown>
130
131vid.v v8, v0.t
132# CHECK-INST: vid.v v8, v0.t
133# CHECK-ENCODING: [0x57,0xa4,0x08,0x50]
134# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
135# CHECK-UNKNOWN: 57 a4 08 50 <unknown>
136
137vid.v v8
138# CHECK-INST: vid.v v8
139# CHECK-ENCODING: [0x57,0xa4,0x08,0x52]
140# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
141# CHECK-UNKNOWN: 57 a4 08 52 <unknown>
142
143vmmv.m v8, v4
144# CHECK-INST: vmmv.m v8, v4
145# CHECK-ENCODING: [0x57,0x24,0x42,0x66]
146# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
147# CHECK-UNKNOWN: 57 24 42 66 <unknown>
148
149vmclr.m v8
150# CHECK-INST: vmclr.m v8
151# CHECK-ENCODING: [0x57,0x24,0x84,0x6e]
152# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
153# CHECK-UNKNOWN: 57 24 84 6e <unknown>
154
155vmset.m v8
156# CHECK-INST: vmset.m v8
157# CHECK-ENCODING: [0x57,0x24,0x84,0x7e]
158# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
159# CHECK-UNKNOWN: 57 24 84 7e <unknown>
160
161vmnot.m v8, v4
162# CHECK-INST: vmnot.m v8, v4
163# CHECK-ENCODING: [0x57,0x24,0x42,0x76]
164# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
165# CHECK-UNKNOWN: 57 24 42 76 <unknown>
166