| 1 |
# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+v %s \ |
| 2 |
# RUN: --mattr=+f --riscv-no-aliases \ |
| 3 |
# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST |
| 4 |
# RUN: not llvm-mc -triple=riscv64 -show-encoding %s 2>&1 \ |
| 5 |
# RUN: | FileCheck %s --check-prefix=CHECK-ERROR |
| 6 |
# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+v %s \ |
| 7 |
# RUN: --mattr=+f \ |
| 8 |
# RUN: | llvm-objdump -d --mattr=+v --mattr=+f \ |
| 9 |
# RUN: -M no-aliases - | FileCheck %s --check-prefix=CHECK-INST |
| 10 |
# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+v %s \ |
| 11 |
# RUN: --mattr=+f \ |
| 12 |
# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN |
| 13 |
|
| 14 |
vfredosum.vs v8, v4, v20, v0.t |
| 15 |
# CHECK-INST: vfredosum.vs v8, v4, v20, v0.t |
| 16 |
# CHECK-ENCODING: [0x57,0x14,0x4a,0x0c] |
| 17 |
# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}} |
| 18 |
# CHECK-UNKNOWN: 0c4a1457 <unknown> |
| 19 |
|
| 20 |
vfredosum.vs v8, v4, v20 |
| 21 |
# CHECK-INST: vfredosum.vs v8, v4, v20 |
| 22 |
# CHECK-ENCODING: [0x57,0x14,0x4a,0x0e] |
| 23 |
# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}} |
| 24 |
# CHECK-UNKNOWN: 0e4a1457 <unknown> |
| 25 |
|
| 26 |
vfredusum.vs v8, v4, v20, v0.t |
| 27 |
# CHECK-INST: vfredusum.vs v8, v4, v20, v0.t |
| 28 |
# CHECK-ENCODING: [0x57,0x14,0x4a,0x04] |
| 29 |
# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}} |
| 30 |
# CHECK-UNKNOWN: 044a1457 <unknown> |
| 31 |
|
| 32 |
vfredusum.vs v8, v4, v20 |
| 33 |
# CHECK-INST: vfredusum.vs v8, v4, v20 |
| 34 |
# CHECK-ENCODING: [0x57,0x14,0x4a,0x06] |
| 35 |
# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}} |
| 36 |
# CHECK-UNKNOWN: 064a1457 <unknown> |
| 37 |
|
| 38 |
vfredmax.vs v8, v4, v20, v0.t |
| 39 |
# CHECK-INST: vfredmax.vs v8, v4, v20, v0.t |
| 40 |
# CHECK-ENCODING: [0x57,0x14,0x4a,0x1c] |
| 41 |
# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}} |
| 42 |
# CHECK-UNKNOWN: 1c4a1457 <unknown> |
| 43 |
|
| 44 |
vfredmax.vs v8, v4, v20 |
| 45 |
# CHECK-INST: vfredmax.vs v8, v4, v20 |
| 46 |
# CHECK-ENCODING: [0x57,0x14,0x4a,0x1e] |
| 47 |
# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}} |
| 48 |
# CHECK-UNKNOWN: 1e4a1457 <unknown> |
| 49 |
|
| 50 |
vfredmin.vs v8, v4, v20, v0.t |
| 51 |
# CHECK-INST: vfredmin.vs v8, v4, v20, v0.t |
| 52 |
# CHECK-ENCODING: [0x57,0x14,0x4a,0x14] |
| 53 |
# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}} |
| 54 |
# CHECK-UNKNOWN: 144a1457 <unknown> |
| 55 |
|
| 56 |
vfredmin.vs v8, v4, v20 |
| 57 |
# CHECK-INST: vfredmin.vs v8, v4, v20 |
| 58 |
# CHECK-ENCODING: [0x57,0x14,0x4a,0x16] |
| 59 |
# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}} |
| 60 |
# CHECK-UNKNOWN: 164a1457 <unknown> |
| 61 |
|
| 62 |
vfwredosum.vs v8, v4, v20, v0.t |
| 63 |
# CHECK-INST: vfwredosum.vs v8, v4, v20, v0.t |
| 64 |
# CHECK-ENCODING: [0x57,0x14,0x4a,0xcc] |
| 65 |
# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}} |
| 66 |
# CHECK-UNKNOWN: cc4a1457 <unknown> |
| 67 |
|
| 68 |
vfwredosum.vs v8, v4, v20 |
| 69 |
# CHECK-INST: vfwredosum.vs v8, v4, v20 |
| 70 |
# CHECK-ENCODING: [0x57,0x14,0x4a,0xce] |
| 71 |
# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}} |
| 72 |
# CHECK-UNKNOWN: ce4a1457 <unknown> |
| 73 |
|
| 74 |
vfwredusum.vs v8, v4, v20, v0.t |
| 75 |
# CHECK-INST: vfwredusum.vs v8, v4, v20, v0.t |
| 76 |
# CHECK-ENCODING: [0x57,0x14,0x4a,0xc4] |
| 77 |
# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}} |
| 78 |
# CHECK-UNKNOWN: c44a1457 <unknown> |
| 79 |
|
| 80 |
vfwredusum.vs v8, v4, v20 |
| 81 |
# CHECK-INST: vfwredusum.vs v8, v4, v20 |
| 82 |
# CHECK-ENCODING: [0x57,0x14,0x4a,0xc6] |
| 83 |
# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}} |
| 84 |
# CHECK-UNKNOWN: c64a1457 <unknown> |
| 85 |
|
| 86 |
vfredosum.vs v0, v4, v20, v0.t |
| 87 |
# CHECK-INST: vfredosum.vs v0, v4, v20, v0.t |
| 88 |
# CHECK-ENCODING: [0x57,0x10,0x4a,0x0c] |
| 89 |
# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}} |
| 90 |
# CHECK-UNKNOWN: 0c4a1057 <unknown> |