| 1 |
# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+v %s \ |
| 2 |
# RUN: --riscv-no-aliases | 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=+v %s \ |
| 6 |
# RUN: | llvm-objdump -d --mattr=+v -M no-aliases - \ |
| 7 |
# RUN: | FileCheck %s --check-prefix=CHECK-INST |
| 8 |
# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+v %s \ |
| 9 |
# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN |
| 10 |
|
| 11 |
vsm.v v24, (a0) |
| 12 |
# CHECK-INST: vsm.v v24, (a0) |
| 13 |
# CHECK-ENCODING: [0x27,0x0c,0xb5,0x02] |
| 14 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 15 |
# CHECK-UNKNOWN: 02b50c27 <unknown> |
| 16 |
|
| 17 |
vse8.v v24, (a0), v0.t |
| 18 |
# CHECK-INST: vse8.v v24, (a0), v0.t |
| 19 |
# CHECK-ENCODING: [0x27,0x0c,0x05,0x00] |
| 20 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 21 |
# CHECK-UNKNOWN: 00050c27 <unknown> |
| 22 |
|
| 23 |
vse8.v v24, (a0) |
| 24 |
# CHECK-INST: vse8.v v24, (a0) |
| 25 |
# CHECK-ENCODING: [0x27,0x0c,0x05,0x02] |
| 26 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 27 |
# CHECK-UNKNOWN: 02050c27 <unknown> |
| 28 |
|
| 29 |
vse16.v v24, (a0), v0.t |
| 30 |
# CHECK-INST: vse16.v v24, (a0), v0.t |
| 31 |
# CHECK-ENCODING: [0x27,0x5c,0x05,0x00] |
| 32 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 33 |
# CHECK-UNKNOWN: 00055c27 <unknown> |
| 34 |
|
| 35 |
vse16.v v24, (a0) |
| 36 |
# CHECK-INST: vse16.v v24, (a0) |
| 37 |
# CHECK-ENCODING: [0x27,0x5c,0x05,0x02] |
| 38 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 39 |
# CHECK-UNKNOWN: 02055c27 <unknown> |
| 40 |
|
| 41 |
vse32.v v24, (a0), v0.t |
| 42 |
# CHECK-INST: vse32.v v24, (a0), v0.t |
| 43 |
# CHECK-ENCODING: [0x27,0x6c,0x05,0x00] |
| 44 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 45 |
# CHECK-UNKNOWN: 00056c27 <unknown> |
| 46 |
|
| 47 |
vse32.v v24, (a0) |
| 48 |
# CHECK-INST: vse32.v v24, (a0) |
| 49 |
# CHECK-ENCODING: [0x27,0x6c,0x05,0x02] |
| 50 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 51 |
# CHECK-UNKNOWN: 02056c27 <unknown> |
| 52 |
|
| 53 |
vse64.v v24, (a0), v0.t |
| 54 |
# CHECK-INST: vse64.v v24, (a0), v0.t |
| 55 |
# CHECK-ENCODING: [0x27,0x7c,0x05,0x00] |
| 56 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors) or 'Zve64x' (Vector Extensions for Embedded Processors){{$}} |
| 57 |
# CHECK-UNKNOWN: 00057c27 <unknown> |
| 58 |
|
| 59 |
vse64.v v24, (a0) |
| 60 |
# CHECK-INST: vse64.v v24, (a0) |
| 61 |
# CHECK-ENCODING: [0x27,0x7c,0x05,0x02] |
| 62 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors) or 'Zve64x' (Vector Extensions for Embedded Processors){{$}} |
| 63 |
# CHECK-UNKNOWN: 02057c27 <unknown> |
| 64 |
|
| 65 |
vsse8.v v24, (a0), a1, v0.t |
| 66 |
# CHECK-INST: vsse8.v v24, (a0), a1, v0.t |
| 67 |
# CHECK-ENCODING: [0x27,0x0c,0xb5,0x08] |
| 68 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 69 |
# CHECK-UNKNOWN: 08b50c27 <unknown> |
| 70 |
|
| 71 |
vsse8.v v24, (a0), a1 |
| 72 |
# CHECK-INST: vsse8.v v24, (a0), a1 |
| 73 |
# CHECK-ENCODING: [0x27,0x0c,0xb5,0x0a] |
| 74 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 75 |
# CHECK-UNKNOWN: 0ab50c27 <unknown> |
| 76 |
|
| 77 |
vsse16.v v24, (a0), a1, v0.t |
| 78 |
# CHECK-INST: vsse16.v v24, (a0), a1, v0.t |
| 79 |
# CHECK-ENCODING: [0x27,0x5c,0xb5,0x08] |
| 80 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 81 |
# CHECK-UNKNOWN: 08b55c27 <unknown> |
| 82 |
|
| 83 |
vsse16.v v24, (a0), a1 |
| 84 |
# CHECK-INST: vsse16.v v24, (a0), a1 |
| 85 |
# CHECK-ENCODING: [0x27,0x5c,0xb5,0x0a] |
| 86 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 87 |
# CHECK-UNKNOWN: 0ab55c27 <unknown> |
| 88 |
|
| 89 |
vsse32.v v24, (a0), a1, v0.t |
| 90 |
# CHECK-INST: vsse32.v v24, (a0), a1, v0.t |
| 91 |
# CHECK-ENCODING: [0x27,0x6c,0xb5,0x08] |
| 92 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 93 |
# CHECK-UNKNOWN: 08b56c27 <unknown> |
| 94 |
|
| 95 |
vsse32.v v24, (a0), a1 |
| 96 |
# CHECK-INST: vsse32.v v24, (a0), a1 |
| 97 |
# CHECK-ENCODING: [0x27,0x6c,0xb5,0x0a] |
| 98 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 99 |
# CHECK-UNKNOWN: 0ab56c27 <unknown> |
| 100 |
|
| 101 |
vsse64.v v24, (a0), a1, v0.t |
| 102 |
# CHECK-INST: vsse64.v v24, (a0), a1, v0.t |
| 103 |
# CHECK-ENCODING: [0x27,0x7c,0xb5,0x08] |
| 104 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors) or 'Zve64x' (Vector Extensions for Embedded Processors){{$}} |
| 105 |
# CHECK-UNKNOWN: 08b57c27 <unknown> |
| 106 |
|
| 107 |
vsse64.v v24, (a0), a1 |
| 108 |
# CHECK-INST: vsse64.v v24, (a0), a1 |
| 109 |
# CHECK-ENCODING: [0x27,0x7c,0xb5,0x0a] |
| 110 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors) or 'Zve64x' (Vector Extensions for Embedded Processors){{$}} |
| 111 |
# CHECK-UNKNOWN: 0ab57c27 <unknown> |
| 112 |
|
| 113 |
vsuxei8.v v24, (a0), v4, v0.t |
| 114 |
# CHECK-INST: vsuxei8.v v24, (a0), v4, v0.t |
| 115 |
# CHECK-ENCODING: [0x27,0x0c,0x45,0x04] |
| 116 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 117 |
# CHECK-UNKNOWN: 04450c27 <unknown> |
| 118 |
|
| 119 |
vsuxei8.v v24, (a0), v4 |
| 120 |
# CHECK-INST: vsuxei8.v v24, (a0), v4 |
| 121 |
# CHECK-ENCODING: [0x27,0x0c,0x45,0x06] |
| 122 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 123 |
# CHECK-UNKNOWN: 06450c27 <unknown> |
| 124 |
|
| 125 |
vsuxei16.v v24, (a0), v4, v0.t |
| 126 |
# CHECK-INST: vsuxei16.v v24, (a0), v4, v0.t |
| 127 |
# CHECK-ENCODING: [0x27,0x5c,0x45,0x04] |
| 128 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 129 |
# CHECK-UNKNOWN: 04455c27 <unknown> |
| 130 |
|
| 131 |
vsuxei16.v v24, (a0), v4 |
| 132 |
# CHECK-INST: vsuxei16.v v24, (a0), v4 |
| 133 |
# CHECK-ENCODING: [0x27,0x5c,0x45,0x06] |
| 134 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 135 |
# CHECK-UNKNOWN: 06455c27 <unknown> |
| 136 |
|
| 137 |
vsuxei32.v v24, (a0), v4, v0.t |
| 138 |
# CHECK-INST: vsuxei32.v v24, (a0), v4, v0.t |
| 139 |
# CHECK-ENCODING: [0x27,0x6c,0x45,0x04] |
| 140 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 141 |
# CHECK-UNKNOWN: 04456c27 <unknown> |
| 142 |
|
| 143 |
vsuxei32.v v24, (a0), v4 |
| 144 |
# CHECK-INST: vsuxei32.v v24, (a0), v4 |
| 145 |
# CHECK-ENCODING: [0x27,0x6c,0x45,0x06] |
| 146 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 147 |
# CHECK-UNKNOWN: 06456c27 <unknown> |
| 148 |
|
| 149 |
vsuxei64.v v24, (a0), v4, v0.t |
| 150 |
# CHECK-INST: vsuxei64.v v24, (a0), v4, v0.t |
| 151 |
# CHECK-ENCODING: [0x27,0x7c,0x45,0x04] |
| 152 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors) or 'Zve64x' (Vector Extensions for Embedded Processors){{$}} |
| 153 |
# CHECK-UNKNOWN: 04457c27 <unknown> |
| 154 |
|
| 155 |
vsuxei64.v v24, (a0), v4 |
| 156 |
# CHECK-INST: vsuxei64.v v24, (a0), v4 |
| 157 |
# CHECK-ENCODING: [0x27,0x7c,0x45,0x06] |
| 158 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors) or 'Zve64x' (Vector Extensions for Embedded Processors){{$}} |
| 159 |
# CHECK-UNKNOWN: 06457c27 <unknown> |
| 160 |
|
| 161 |
vsoxei8.v v24, (a0), v4, v0.t |
| 162 |
# CHECK-INST: vsoxei8.v v24, (a0), v4, v0.t |
| 163 |
# CHECK-ENCODING: [0x27,0x0c,0x45,0x0c] |
| 164 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 165 |
# CHECK-UNKNOWN: 0c450c27 <unknown> |
| 166 |
|
| 167 |
vsoxei8.v v24, (a0), v4 |
| 168 |
# CHECK-INST: vsoxei8.v v24, (a0), v4 |
| 169 |
# CHECK-ENCODING: [0x27,0x0c,0x45,0x0e] |
| 170 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 171 |
# CHECK-UNKNOWN: 0e450c27 <unknown> |
| 172 |
|
| 173 |
vsoxei16.v v24, (a0), v4, v0.t |
| 174 |
# CHECK-INST: vsoxei16.v v24, (a0), v4, v0.t |
| 175 |
# CHECK-ENCODING: [0x27,0x5c,0x45,0x0c] |
| 176 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 177 |
# CHECK-UNKNOWN: 0c455c27 <unknown> |
| 178 |
|
| 179 |
vsoxei16.v v24, (a0), v4 |
| 180 |
# CHECK-INST: vsoxei16.v v24, (a0), v4 |
| 181 |
# CHECK-ENCODING: [0x27,0x5c,0x45,0x0e] |
| 182 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 183 |
# CHECK-UNKNOWN: 0e455c27 <unknown> |
| 184 |
|
| 185 |
vsoxei32.v v24, (a0), v4, v0.t |
| 186 |
# CHECK-INST: vsoxei32.v v24, (a0), v4, v0.t |
| 187 |
# CHECK-ENCODING: [0x27,0x6c,0x45,0x0c] |
| 188 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 189 |
# CHECK-UNKNOWN: 0c456c27 <unknown> |
| 190 |
|
| 191 |
vsoxei32.v v24, (a0), v4 |
| 192 |
# CHECK-INST: vsoxei32.v v24, (a0), v4 |
| 193 |
# CHECK-ENCODING: [0x27,0x6c,0x45,0x0e] |
| 194 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 195 |
# CHECK-UNKNOWN: 0e456c27 <unknown> |
| 196 |
|
| 197 |
vsoxei64.v v24, (a0), v4, v0.t |
| 198 |
# CHECK-INST: vsoxei64.v v24, (a0), v4, v0.t |
| 199 |
# CHECK-ENCODING: [0x27,0x7c,0x45,0x0c] |
| 200 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors) or 'Zve64x' (Vector Extensions for Embedded Processors){{$}} |
| 201 |
# CHECK-UNKNOWN: 0c457c27 <unknown> |
| 202 |
|
| 203 |
vsoxei64.v v24, (a0), v4 |
| 204 |
# CHECK-INST: vsoxei64.v v24, (a0), v4 |
| 205 |
# CHECK-ENCODING: [0x27,0x7c,0x45,0x0e] |
| 206 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors) or 'Zve64x' (Vector Extensions for Embedded Processors){{$}} |
| 207 |
# CHECK-UNKNOWN: 0e457c27 <unknown> |
| 208 |
|
| 209 |
vs1r.v v24, (a0) |
| 210 |
# CHECK-INST: vs1r.v v24, (a0) |
| 211 |
# CHECK-ENCODING: [0x27,0x0c,0x85,0x02] |
| 212 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 213 |
# CHECK-UNKNOWN: 02850c27 <unknown> |
| 214 |
|
| 215 |
vs2r.v v24, (a0) |
| 216 |
# CHECK-INST: vs2r.v v24, (a0) |
| 217 |
# CHECK-ENCODING: [0x27,0x0c,0x85,0x22] |
| 218 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 219 |
# CHECK-UNKNOWN: 22850c27 <unknown> |
| 220 |
|
| 221 |
vs4r.v v24, (a0) |
| 222 |
# CHECK-INST: vs4r.v v24, (a0) |
| 223 |
# CHECK-ENCODING: [0x27,0x0c,0x85,0x62] |
| 224 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 225 |
# CHECK-UNKNOWN: 62850c27 <unknown> |
| 226 |
|
| 227 |
vs8r.v v24, (a0) |
| 228 |
# CHECK-INST: vs8r.v v24, (a0) |
| 229 |
# CHECK-ENCODING: [0x27,0x0c,0x85,0xe2] |
| 230 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 231 |
# CHECK-UNKNOWN: e2850c27 <unknown> |
| 232 |
|
| 233 |
vsm.v v24, 0(a0) |
| 234 |
# CHECK-INST: vsm.v v24, (a0) |
| 235 |
# CHECK-ENCODING: [0x27,0x0c,0xb5,0x02] |
| 236 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 237 |
# CHECK-UNKNOWN: 02b50c27 <unknown> |
| 238 |
|
| 239 |
vse8.v v24, 0(a0), v0.t |
| 240 |
# CHECK-INST: vse8.v v24, (a0), v0.t |
| 241 |
# CHECK-ENCODING: [0x27,0x0c,0x05,0x00] |
| 242 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 243 |
# CHECK-UNKNOWN: 00050c27 <unknown> |
| 244 |
|
| 245 |
vsse16.v v24, 0(a0), a1, v0.t |
| 246 |
# CHECK-INST: vsse16.v v24, (a0), a1, v0.t |
| 247 |
# CHECK-ENCODING: [0x27,0x5c,0xb5,0x08] |
| 248 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 249 |
# CHECK-UNKNOWN: 08b55c27 <unknown> |
| 250 |
|
| 251 |
vsuxei8.v v24, 0(a0), v4, v0.t |
| 252 |
# CHECK-INST: vsuxei8.v v24, (a0), v4, v0.t |
| 253 |
# CHECK-ENCODING: [0x27,0x0c,0x45,0x04] |
| 254 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 255 |
# CHECK-UNKNOWN: 04450c27 <unknown> |
| 256 |
|
| 257 |
vsoxei32.v v24, 0(a0), v4, v0.t |
| 258 |
# CHECK-INST: vsoxei32.v v24, (a0), v4, v0.t |
| 259 |
# CHECK-ENCODING: [0x27,0x6c,0x45,0x0c] |
| 260 |
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} |
| 261 |
# CHECK-UNKNOWN: 0c456c27 <unknown> |