| 1 |
# RUN: llvm-mc -triple=riscv32 -show-encoding --mattr=+zve64x --mattr=+zvbc %s \ |
| 2 |
# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST |
| 3 |
# RUN: not llvm-mc -triple=riscv32 -show-encoding %s 2>&1 \ |
| 4 |
# RUN: | FileCheck %s --check-prefix=CHECK-ERROR |
| 5 |
# RUN: llvm-mc -triple=riscv32 -filetype=obj --mattr=+zve64x --mattr=+zvbc %s \ |
| 6 |
# RUN: | llvm-objdump -d --mattr=+zve64x --mattr=+zvbc - \ |
| 7 |
# RUN: | FileCheck %s --check-prefix=CHECK-INST |
| 8 |
# RUN: llvm-mc -triple=riscv32 -filetype=obj --mattr=+zve64x --mattr=+zvbc %s \ |
| 9 |
# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN |
| 10 |
|
| 11 |
vclmul.vv v10, v9, v8 |
| 12 |
# CHECK-INST: vclmul.vv v10, v9, v8 |
| 13 |
# CHECK-ENCODING: [0x57,0x25,0x94,0x32] |
| 14 |
# CHECK-ERROR: instruction requires the following: 'Zvbc' (Vector Carryless Multiplication){{$}} |
| 15 |
# CHECK-UNKNOWN: 32942557 <unknown> |
| 16 |
|
| 17 |
vclmul.vx v10, v9, a0 |
| 18 |
# CHECK-INST: vclmul.vx v10, v9, a0 |
| 19 |
# CHECK-ENCODING: [0x57,0x65,0x95,0x32] |
| 20 |
# CHECK-ERROR: instruction requires the following: 'Zvbc' (Vector Carryless Multiplication){{$}} |
| 21 |
# CHECK-UNKNOWN: 32956557 <unknown> |
| 22 |
|
| 23 |
vclmulh.vv v10, v9, v8 |
| 24 |
# CHECK-INST: vclmulh.vv v10, v9, v8 |
| 25 |
# CHECK-ENCODING: [0x57,0x25,0x94,0x36] |
| 26 |
# CHECK-ERROR: instruction requires the following: 'Zvbc' (Vector Carryless Multiplication){{$}} |
| 27 |
# CHECK-UNKNOWN: 36942557 <unknown> |
| 28 |
|
| 29 |
vclmulh.vx v10, v9, a0 |
| 30 |
# CHECK-INST: vclmulh.vx v10, v9, a0 |
| 31 |
# CHECK-ENCODING: [0x57,0x65,0x95,0x36] |
| 32 |
# CHECK-ERROR: instruction requires the following: 'Zvbc' (Vector Carryless Multiplication){{$}} |
| 33 |
# CHECK-UNKNOWN: 36956557 <unknown> |