# RUN: llvm-mc -triple=riscv32 -show-encoding --mattr=+zve32x --mattr=+zvkned %s \ # RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST # RUN: not llvm-mc -triple=riscv32 -show-encoding %s 2>&1 \ # RUN: | FileCheck %s --check-prefix=CHECK-ERROR # RUN: llvm-mc -triple=riscv32 -filetype=obj --mattr=+zve32x --mattr=+zvkned %s \ # RUN: | llvm-objdump -d --mattr=+zve32x --mattr=+zvkned --no-print-imm-hex - \ # RUN: | FileCheck %s --check-prefix=CHECK-INST # RUN: llvm-mc -triple=riscv32 -filetype=obj --mattr=+zve32x --mattr=+zvkned %s \ # RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN vaesdf.vv v10, v9 # CHECK-INST: vaesdf.vv v10, v9 # CHECK-ENCODING: [0x77,0xa5,0x90,0xa2] # CHECK-ERROR: instruction requires the following: 'Zvkned' (Vector AES Encryption & Decryption (Single Round)){{$}} # CHECK-UNKNOWN: 77 a5 90 a2 vaesdf.vs v10, v9 # CHECK-INST: vaesdf.vs v10, v9 # CHECK-ENCODING: [0x77,0xa5,0x90,0xa6] # CHECK-ERROR: instruction requires the following: 'Zvkned' (Vector AES Encryption & Decryption (Single Round)){{$}} # CHECK-UNKNOWN: 77 a5 90 a6 vaesef.vv v10, v9 # CHECK-INST: vaesef.vv v10, v9 # CHECK-ENCODING: [0x77,0xa5,0x91,0xa2] # CHECK-ERROR: instruction requires the following: 'Zvkned' (Vector AES Encryption & Decryption (Single Round)){{$}} # CHECK-UNKNOWN: 77 a5 91 a2 vaesef.vs v10, v9 # CHECK-INST: vaesef.vs v10, v9 # CHECK-ENCODING: [0x77,0xa5,0x91,0xa6] # CHECK-ERROR: instruction requires the following: 'Zvkned' (Vector AES Encryption & Decryption (Single Round)){{$}} # CHECK-UNKNOWN: 77 a5 91 a6 vaesdm.vv v10, v9 # CHECK-INST: vaesdm.vv v10, v9 # CHECK-ENCODING: [0x77,0x25,0x90,0xa2] # CHECK-ERROR: instruction requires the following: 'Zvkned' (Vector AES Encryption & Decryption (Single Round)){{$}} # CHECK-UNKNOWN: 77 25 90 a2 vaesdm.vs v10, v9 # CHECK-INST: vaesdm.vs v10, v9 # CHECK-ENCODING: [0x77,0x25,0x90,0xa6] # CHECK-ERROR: instruction requires the following: 'Zvkned' (Vector AES Encryption & Decryption (Single Round)){{$}} # CHECK-UNKNOWN: 77 25 90 a6 vaesem.vv v10, v9 # CHECK-INST: vaesem.vv v10, v9 # CHECK-ENCODING: [0x77,0x25,0x91,0xa2] # CHECK-ERROR: instruction requires the following: 'Zvkned' (Vector AES Encryption & Decryption (Single Round)){{$}} # CHECK-UNKNOWN: 77 25 91 a2 vaesem.vs v10, v9 # CHECK-INST: vaesem.vs v10, v9 # CHECK-ENCODING: [0x77,0x25,0x91,0xa6] # CHECK-ERROR: instruction requires the following: 'Zvkned' (Vector AES Encryption & Decryption (Single Round)){{$}} # CHECK-UNKNOWN: 77 25 91 a6 vaeskf1.vi v10, v9, 1 # CHECK-INST: vaeskf1.vi v10, v9, 1 # CHECK-ENCODING: [0x77,0xa5,0x90,0x8a] # CHECK-ERROR: instruction requires the following: 'Zvkned' (Vector AES Encryption & Decryption (Single Round)){{$}} # CHECK-UNKNOWN: 77 a5 90 8a vaeskf1.vi v10, v9, 31 # CHECK-INST: vaeskf1.vi v10, v9, 31 # CHECK-ENCODING: [0x77,0xa5,0x9f,0x8a] # CHECK-ERROR: instruction requires the following: 'Zvkned' (Vector AES Encryption & Decryption (Single Round)){{$}} # CHECK-UNKNOWN: 77 a5 9f 8a vaeskf2.vi v10, v9, 2 # CHECK-INST: vaeskf2.vi v10, v9, 2 # CHECK-ENCODING: [0x77,0x25,0x91,0xaa] # CHECK-ERROR: instruction requires the following: 'Zvkned' (Vector AES Encryption & Decryption (Single Round)){{$}} # CHECK-UNKNOWN: 77 25 91 aa vaeskf2.vi v10, v9, 31 # CHECK-INST: vaeskf2.vi v10, v9, 31 # CHECK-ENCODING: [0x77,0xa5,0x9f,0xaa] # CHECK-ERROR: instruction requires the following: 'Zvkned' (Vector AES Encryption & Decryption (Single Round)){{$}} # CHECK-UNKNOWN: 77 a5 9f aa vaesz.vs v10, v9 # CHECK-INST: vaesz.vs v10, v9 # CHECK-ENCODING: [0x77,0xa5,0x93,0xa6] # CHECK-ERROR: instruction requires the following: 'Zvkned' (Vector AES Encryption & Decryption (Single Round)){{$}} # CHECK-UNKNOWN: 77 a5 93 a6