64 lines · plain
1# RUN: llvm-mc -triple=riscv32 -show-encoding --mattr=+zve32x --mattr=+zvkb %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=+zvkb %s \6# RUN: | llvm-objdump --no-print-imm-hex -d --mattr=+zve32x --mattr=+zvkb - \7# RUN: | FileCheck %s --check-prefix=CHECK-INST8# RUN: llvm-mc -triple=riscv32 -filetype=obj --mattr=+zve32x --mattr=+zvkb %s \9# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN10 11vandn.vv v10, v9, v8, v0.t12# CHECK-INST: vandn.vv v10, v9, v8, v0.t13# CHECK-ENCODING: [0x57,0x05,0x94,0x04]14# CHECK-ERROR: instruction requires the following: 'Zvkb' (Vector Bit-manipulation used in Cryptography){{$}}15# CHECK-UNKNOWN: 04940557 <unknown>16 17vandn.vx v10, v9, a0, v0.t18# CHECK-INST: vandn.vx v10, v9, a0, v0.t19# CHECK-ENCODING: [0x57,0x45,0x95,0x04]20# CHECK-ERROR: instruction requires the following: 'Zvkb' (Vector Bit-manipulation used in Cryptography){{$}}21# CHECK-UNKNOWN: 04954557 <unknown>22 23vbrev8.v v10, v9, v0.t24# CHECK-INST: vbrev8.v v10, v9, v0.t25# CHECK-ENCODING: [0x57,0x25,0x94,0x48]26# CHECK-ERROR: instruction requires the following: 'Zvkb' (Vector Bit-manipulation used in Cryptography){{$}}27# CHECK-UNKNOWN: 48942557 <unknown>28 29vrev8.v v10, v9, v0.t30# CHECK-INST: vrev8.v v10, v9, v0.t31# CHECK-ENCODING: [0x57,0xa5,0x94,0x48]32# CHECK-ERROR: instruction requires the following: 'Zvkb' (Vector Bit-manipulation used in Cryptography){{$}}33# CHECK-UNKNOWN: 4894a557 <unknown>34 35vrol.vv v10, v9, v8, v0.t36# CHECK-INST: vrol.vv v10, v9, v8, v0.t37# CHECK-ENCODING: [0x57,0x05,0x94,0x54]38# CHECK-ERROR: instruction requires the following: 'Zvkb' (Vector Bit-manipulation used in Cryptography){{$}}39# CHECK-UNKNOWN: 54940557 <unknown>40 41vrol.vx v10, v9, a0, v0.t42# CHECK-INST: vrol.vx v10, v9, a0, v0.t43# CHECK-ENCODING: [0x57,0x45,0x95,0x54]44# CHECK-ERROR: instruction requires the following: 'Zvkb' (Vector Bit-manipulation used in Cryptography){{$}}45# CHECK-UNKNOWN: 54954557 <unknown>46 47vror.vv v10, v9, v8, v0.t48# CHECK-INST: vror.vv v10, v9, v8, v0.t49# CHECK-ENCODING: [0x57,0x05,0x94,0x50]50# CHECK-ERROR: instruction requires the following: 'Zvkb' (Vector Bit-manipulation used in Cryptography){{$}}51# CHECK-UNKNOWN: 50940557 <unknown>52 53vror.vx v10, v9, a0, v0.t54# CHECK-INST: vror.vx v10, v9, a0, v0.t55# CHECK-ENCODING: [0x57,0x45,0x95,0x50]56# CHECK-ERROR: instruction requires the following: 'Zvkb' (Vector Bit-manipulation used in Cryptography){{$}}57# CHECK-UNKNOWN: 50954557 <unknown>58 59vror.vi v10, v9, 33, v0.t60# CHECK-INST: vror.vi v10, v9, 33, v0.t61# CHECK-ENCODING: [0x57,0xb5,0x90,0x54]62# CHECK-ERROR: instruction requires the following: 'Zvkb' (Vector Bit-manipulation used in Cryptography){{$}}63# CHECK-UNKNOWN: 5490b557 <unknown>64