43 lines · plain
1# RUN: llvm-mc -triple=riscv32 -show-encoding --mattr=+zve64x --mattr=+zvbc %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=+zve64x --mattr=+zvbc %s \6# RUN: | llvm-objdump -d --mattr=+zve64x --mattr=+zvbc - \7# RUN: | FileCheck %s --check-prefix=CHECK-INST8# RUN: llvm-mc -triple=riscv32 -filetype=obj --mattr=+zve64x --mattr=+zvbc %s \9# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN10# RUN: llvm-mc -triple=riscv32 -show-encoding --mattr=+zve32x --mattr=+experimental-zvbc32e %s \11# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST12# RUN: not llvm-mc -triple=riscv32 -show-encoding %s 2>&1 \13# RUN: | FileCheck %s --check-prefix=CHECK-ERROR14# RUN: llvm-mc -triple=riscv32 -filetype=obj --mattr=+zve32x --mattr=+experimental-zvbc32e %s \15# RUN: | llvm-objdump -d --mattr=+zve32x --mattr=+experimental-zvbc32e - \16# RUN: | FileCheck %s --check-prefix=CHECK-INST17# RUN: llvm-mc -triple=riscv32 -filetype=obj --mattr=+zve32x --mattr=+experimental-zvbc32e %s \18# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN19 20vclmul.vv v10, v9, v821# CHECK-INST: vclmul.vv v10, v9, v822# CHECK-ENCODING: [0x57,0x25,0x94,0x32]23# CHECK-ERROR: instruction requires the following: 'Zvbc' or 'Zvbc32e' (Vector Carryless Multiplication){{$}}24# CHECK-UNKNOWN: 32942557 <unknown>25 26vclmul.vx v10, v9, a027# CHECK-INST: vclmul.vx v10, v9, a028# CHECK-ENCODING: [0x57,0x65,0x95,0x32]29# CHECK-ERROR: instruction requires the following: 'Zvbc' or 'Zvbc32e' (Vector Carryless Multiplication){{$}}30# CHECK-UNKNOWN: 32956557 <unknown>31 32vclmulh.vv v10, v9, v833# CHECK-INST: vclmulh.vv v10, v9, v834# CHECK-ENCODING: [0x57,0x25,0x94,0x36]35# CHECK-ERROR: instruction requires the following: 'Zvbc' or 'Zvbc32e' (Vector Carryless Multiplication){{$}}36# CHECK-UNKNOWN: 36942557 <unknown>37 38vclmulh.vx v10, v9, a039# CHECK-INST: vclmulh.vx v10, v9, a040# CHECK-ENCODING: [0x57,0x65,0x95,0x36]41# CHECK-ERROR: instruction requires the following: 'Zvbc' or 'Zvbc32e' (Vector Carryless Multiplication){{$}}42# CHECK-UNKNOWN: 36956557 <unknown>43