22 lines · plain
1# RUN: llvm-mc -triple=riscv32 -show-encoding --mattr=+zve32x --mattr=+experimental-zvkgs %s \2# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3# RUN: not llvm-mc -triple=riscv32 -show-encoding %s 2>&1 \4# RUN: | FileCheck %s --check-prefix=CHECK-ERROR5# RUN: llvm-mc -triple=riscv32 -filetype=obj --mattr=+zve32x --mattr=+experimental-zvkgs %s \6# RUN: | llvm-objdump -d --mattr=+zve32x --mattr=+experimental-zvkgs - \7# RUN: | FileCheck %s --check-prefix=CHECK-INST8# RUN: llvm-mc -triple=riscv32 -filetype=obj --mattr=+zve32x --mattr=+experimental-zvkgs %s \9# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN10 11vghsh.vs v10, v9, v812# CHECK-INST: vghsh.vs v10, v9, v813# CHECK-ENCODING: [0x77,0x25,0x94,0x8e]14# CHECK-ERROR: instruction requires the following: 'Zvkgs' (Vector-Scalar GCM instructions for Cryptography){{$}}15# CHECK-UNKNOWN: 8e942577 <unknown>16 17vgmul.vs v10, v918# CHECK-INST: vgmul.vs v10, v919# CHECK-ENCODING: [0x77,0xa5,0x98,0xa6]20# CHECK-ERROR: instruction requires the following: 'Zvkgs' (Vector-Scalar GCM instructions for Cryptography){{$}}21# CHECK-UNKNOWN: a698a577 <unknown>22