| 1 |
# RUN: llvm-mc -triple=riscv32 -show-encoding --mattr=+zve32x --mattr=+zvkg %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=+zve32x --mattr=+zvkg %s \ |
| 6 |
# RUN: | llvm-objdump -d --mattr=+zve32x --mattr=+zvkg - \ |
| 7 |
# RUN: | FileCheck %s --check-prefix=CHECK-INST |
| 8 |
# RUN: llvm-mc -triple=riscv32 -filetype=obj --mattr=+zve32x --mattr=+zvkg %s \ |
| 9 |
# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN |
| 10 |
|
| 11 |
vghsh.vv v10, v9, v8 |
| 12 |
# CHECK-INST: vghsh.vv v10, v9, v8 |
| 13 |
# CHECK-ENCODING: [0x77,0x25,0x94,0xb2] |
| 14 |
# CHECK-ERROR: instruction requires the following: 'Zvkg' (Vector GCM instructions for Cryptography){{$}} |
| 15 |
# CHECK-UNKNOWN: b2942577 <unknown> |
| 16 |
|
| 17 |
vgmul.vv v10, v9 |
| 18 |
# CHECK-INST: vgmul.vv v10, v9 |
| 19 |
# CHECK-ENCODING: [0x77,0xa5,0x98,0xa2] |
| 20 |
# CHECK-ERROR: instruction requires the following: 'Zvkg' (Vector GCM instructions for Cryptography){{$}} |
| 21 |
# CHECK-UNKNOWN: a298a577 <unknown> |