llvm/llvm/test/MC/AArch64/SVE2p1/addqv.s

// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2p1 < %s \
// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p1 < %s \
// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2p1 < %s \
// RUN:        | llvm-objdump -d --mattr=+sme2p1 - | FileCheck %s --check-prefix=CHECK-INST
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2p1 < %s \
// RUN:        | llvm-objdump -d --mattr=-sme2p1,-sve2p1 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2p1 < %s \
// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \
// RUN:        | llvm-mc -triple=aarch64 -mattr=+sme2p1 -disassemble -show-encoding \
// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST

addqv   v0.8h, p0, z0.h  // 00000100-01000101-00100000-00000000
// CHECK-INST: addqv   v0.8h, p0, z0.h
// CHECK-ENCODING: [0x00,0x20,0x45,0x04]
// CHECK-ERROR: instruction requires: sme2p1 or sve2p1
// CHECK-UNKNOWN: 04452000 <unknown>

addqv   v21.8h, p5, z10.h  // 00000100-01000101-00110101-01010101
// CHECK-INST: addqv   v21.8h, p5, z10.h
// CHECK-ENCODING: [0x55,0x35,0x45,0x04]
// CHECK-ERROR: instruction requires: sme2p1 or sve2p1
// CHECK-UNKNOWN: 04453555 <unknown>

addqv   v23.8h, p3, z13.h  // 00000100-01000101-00101101-10110111
// CHECK-INST: addqv   v23.8h, p3, z13.h
// CHECK-ENCODING: [0xb7,0x2d,0x45,0x04]
// CHECK-ERROR: instruction requires: sme2p1 or sve2p1
// CHECK-UNKNOWN: 04452db7 <unknown>

addqv   v31.8h, p7, z31.h  // 00000100-01000101-00111111-11111111
// CHECK-INST: addqv   v31.8h, p7, z31.h
// CHECK-ENCODING: [0xff,0x3f,0x45,0x04]
// CHECK-ERROR: instruction requires: sme2p1 or sve2p1
// CHECK-UNKNOWN: 04453fff <unknown>

addqv   v0.4s, p0, z0.s  // 00000100-10000101-00100000-00000000
// CHECK-INST: addqv   v0.4s, p0, z0.s
// CHECK-ENCODING: [0x00,0x20,0x85,0x04]
// CHECK-ERROR: instruction requires: sme2p1 or sve2p1
// CHECK-UNKNOWN: 04852000 <unknown>

addqv   v21.4s, p5, z10.s  // 00000100-10000101-00110101-01010101
// CHECK-INST: addqv   v21.4s, p5, z10.s
// CHECK-ENCODING: [0x55,0x35,0x85,0x04]
// CHECK-ERROR: instruction requires: sme2p1 or sve2p1
// CHECK-UNKNOWN: 04853555 <unknown>

addqv   v23.4s, p3, z13.s  // 00000100-10000101-00101101-10110111
// CHECK-INST: addqv   v23.4s, p3, z13.s
// CHECK-ENCODING: [0xb7,0x2d,0x85,0x04]
// CHECK-ERROR: instruction requires: sme2p1 or sve2p1
// CHECK-UNKNOWN: 04852db7 <unknown>

addqv   v31.4s, p7, z31.s  // 00000100-10000101-00111111-11111111
// CHECK-INST: addqv   v31.4s, p7, z31.s
// CHECK-ENCODING: [0xff,0x3f,0x85,0x04]
// CHECK-ERROR: instruction requires: sme2p1 or sve2p1
// CHECK-UNKNOWN: 04853fff <unknown>

addqv   v0.2d, p0, z0.d  // 00000100-11000101-00100000-00000000
// CHECK-INST: addqv   v0.2d, p0, z0.d
// CHECK-ENCODING: [0x00,0x20,0xc5,0x04]
// CHECK-ERROR: instruction requires: sme2p1 or sve2p1
// CHECK-UNKNOWN: 04c52000 <unknown>

addqv   v21.2d, p5, z10.d  // 00000100-11000101-00110101-01010101
// CHECK-INST: addqv   v21.2d, p5, z10.d
// CHECK-ENCODING: [0x55,0x35,0xc5,0x04]
// CHECK-ERROR: instruction requires: sme2p1 or sve2p1
// CHECK-UNKNOWN: 04c53555 <unknown>

addqv   v23.2d, p3, z13.d  // 00000100-11000101-00101101-10110111
// CHECK-INST: addqv   v23.2d, p3, z13.d
// CHECK-ENCODING: [0xb7,0x2d,0xc5,0x04]
// CHECK-ERROR: instruction requires: sme2p1 or sve2p1
// CHECK-UNKNOWN: 04c52db7 <unknown>

addqv   v31.2d, p7, z31.d  // 00000100-11000101-00111111-11111111
// CHECK-INST: addqv   v31.2d, p7, z31.d
// CHECK-ENCODING: [0xff,0x3f,0xc5,0x04]
// CHECK-ERROR: instruction requires: sme2p1 or sve2p1
// CHECK-UNKNOWN: 04c53fff <unknown>

addqv   v0.16b, p0, z0.b  // 00000100-00000101-00100000-00000000
// CHECK-INST: addqv   v0.16b, p0, z0.b
// CHECK-ENCODING: [0x00,0x20,0x05,0x04]
// CHECK-ERROR: instruction requires: sme2p1 or sve2p1
// CHECK-UNKNOWN: 04052000 <unknown>

addqv   v21.16b, p5, z10.b  // 00000100-00000101-00110101-01010101
// CHECK-INST: addqv   v21.16b, p5, z10.b
// CHECK-ENCODING: [0x55,0x35,0x05,0x04]
// CHECK-ERROR: instruction requires: sme2p1 or sve2p1
// CHECK-UNKNOWN: 04053555 <unknown>

addqv   v23.16b, p3, z13.b  // 00000100-00000101-00101101-10110111
// CHECK-INST: addqv   v23.16b, p3, z13.b
// CHECK-ENCODING: [0xb7,0x2d,0x05,0x04]
// CHECK-ERROR: instruction requires: sme2p1 or sve2p1
// CHECK-UNKNOWN: 04052db7 <unknown>

addqv   v31.16b, p7, z31.b  // 00000100-00000101-00111111-11111111
// CHECK-INST: addqv   v31.16b, p7, z31.b
// CHECK-ENCODING: [0xff,0x3f,0x05,0x04]
// CHECK-ERROR: instruction requires: sme2p1 or sve2p1
// CHECK-UNKNOWN: 04053fff <unknown>