Index: lib/Target/AArch64/AArch64SVEInstrInfo.td =================================================================== --- lib/Target/AArch64/AArch64SVEInstrInfo.td +++ lib/Target/AArch64/AArch64SVEInstrInfo.td @@ -14,4 +14,10 @@ let Predicates = [HasSVE] in { defm ADD_ZZZ : sve_int_bin_cons_arit_0<0b000, "add">; defm SUB_ZZZ : sve_int_bin_cons_arit_0<0b001, "sub">; + + defm ZIP1_ZZZ : sve_int_perm_bin_perm_zz<0b000, "zip1">; + defm ZIP2_ZZZ : sve_int_perm_bin_perm_zz<0b001, "zip2">; + + defm ZIP1_PPP : sve_int_perm_bin_perm_pp<0b000, "zip1">; + defm ZIP2_PPP : sve_int_perm_bin_perm_pp<0b001, "zip2">; } Index: lib/Target/AArch64/SVEInstrFormats.td =================================================================== --- lib/Target/AArch64/SVEInstrFormats.td +++ lib/Target/AArch64/SVEInstrFormats.td @@ -39,3 +39,65 @@ def _S : sve_int_bin_cons_arit_0<0b10, opc, asm, ZPR32>; def _D : sve_int_bin_cons_arit_0<0b11, opc, asm, ZPR64>; } + +//===----------------------------------------------------------------------===// +// SVE Permute - In Lane Group +//===----------------------------------------------------------------------===// + +class sve_int_perm_bin_perm_zz opc, bits<2> sz8_64, string asm, + ZPRRegOp zprty> +: I<(outs zprty:$Zd), (ins zprty:$Zn, zprty:$Zm), + asm, "\t$Zd, $Zn, $Zm", + "", + []>, Sched<[]> { + bits<5> Zd; + bits<5> Zm; + bits<5> Zn; + let Inst{31-24} = 0b00000101; + let Inst{23-22} = sz8_64; + let Inst{21} = 0b1; + let Inst{20-16} = Zm; + let Inst{15-13} = 0b011; + let Inst{12-10} = opc; + let Inst{9-5} = Zn; + let Inst{4-0} = Zd; +} + +multiclass sve_int_perm_bin_perm_zz opc, string asm> { + def _B : sve_int_perm_bin_perm_zz; + def _H : sve_int_perm_bin_perm_zz; + def _S : sve_int_perm_bin_perm_zz; + def _D : sve_int_perm_bin_perm_zz; +} + +//===----------------------------------------------------------------------===// +// SVE Permute - Predicates Group +//===----------------------------------------------------------------------===// + +class sve_int_perm_bin_perm_pp opc, bits<2> sz8_64, string asm, + PPRRegOp pprty> +: I<(outs pprty:$Pd), (ins pprty:$Pn, pprty:$Pm), + asm, "\t$Pd, $Pn, $Pm", + "", + []>, Sched<[]> { + bits<4> Pd; + bits<4> Pm; + bits<4> Pn; + let Inst{31-24} = 0b00000101; + let Inst{23-22} = sz8_64; + let Inst{21-20} = 0b10; + let Inst{19-16} = Pm; + let Inst{15-13} = 0b010; + let Inst{12-10} = opc; + let Inst{9} = 0b0; + let Inst{8-5} = Pn; + let Inst{4} = 0b0; + let Inst{3-0} = Pd; +} + +multiclass sve_int_perm_bin_perm_pp opc, string asm> { + def _B : sve_int_perm_bin_perm_pp; + def _H : sve_int_perm_bin_perm_pp; + def _S : sve_int_perm_bin_perm_pp; + def _D : sve_int_perm_bin_perm_pp; +} \ No newline at end of file Index: test/MC/AArch64/SVE/zip1-diagnostics.s =================================================================== --- /dev/null +++ test/MC/AArch64/SVE/zip1-diagnostics.s @@ -0,0 +1,14 @@ +// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s + +// Invalid element kind. +zip1 z10.h, z22.h, z31.x +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid sve vector kind qualifier +// CHECK-NEXT: zip1 z10.h, z22.h, z31.x +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +// Element size specifiers should match. +zip1 z10.h, z3.h, z15.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand +// CHECK-NEXT: zip1 z10.h, z3.h, z15.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + Index: test/MC/AArch64/SVE/zip1.s =================================================================== --- /dev/null +++ test/MC/AArch64/SVE/zip1.s @@ -0,0 +1,200 @@ +// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %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=+sve < %s \ +// RUN: | llvm-objdump -d -mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST +// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \ +// RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN + +zip1 z21.d, z10.d, z21.d +// CHECK-INST: zip1 z21.d, z10.d, z21.d +// CHECK-ENCODING: [0x55,0x61,0xf5,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 55 61 f5 05 + +zip1 z0.d, z0.d, z0.d +// CHECK-INST: zip1 z0.d, z0.d, z0.d +// CHECK-ENCODING: [0x00,0x60,0xe0,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 00 60 e0 05 + +zip1 z23.s, z13.s, z8.s +// CHECK-INST: zip1 z23.s, z13.s, z8.s +// CHECK-ENCODING: [0xb7,0x61,0xa8,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: b7 61 a8 05 + +zip1 z0.s, z0.s, z0.s +// CHECK-INST: zip1 z0.s, z0.s, z0.s +// CHECK-ENCODING: [0x00,0x60,0xa0,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 00 60 a0 05 + +zip1 p5.s, p10.s, p5.s +// CHECK-INST: zip1 p5.s, p10.s, p5.s +// CHECK-ENCODING: [0x45,0x41,0xa5,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 45 41 a5 05 + +zip1 p5.b, p10.b, p5.b +// CHECK-INST: zip1 p5.b, p10.b, p5.b +// CHECK-ENCODING: [0x45,0x41,0x25,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 45 41 25 05 + +zip1 z31.h, z31.h, z31.h +// CHECK-INST: zip1 z31.h, z31.h, z31.h +// CHECK-ENCODING: [0xff,0x63,0x7f,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: ff 63 7f 05 + +zip1 p0.d, p0.d, p0.d +// CHECK-INST: zip1 p0.d, p0.d, p0.d +// CHECK-ENCODING: [0x00,0x40,0xe0,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 00 40 e0 05 + +zip1 p7.d, p13.d, p8.d +// CHECK-INST: zip1 p7.d, p13.d, p8.d +// CHECK-ENCODING: [0xa7,0x41,0xe8,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: a7 41 e8 05 + +zip1 z21.b, z10.b, z21.b +// CHECK-INST: zip1 z21.b, z10.b, z21.b +// CHECK-ENCODING: [0x55,0x61,0x35,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 55 61 35 05 + +zip1 p7.b, p13.b, p8.b +// CHECK-INST: zip1 p7.b, p13.b, p8.b +// CHECK-ENCODING: [0xa7,0x41,0x28,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: a7 41 28 05 + +zip1 z23.h, z13.h, z8.h +// CHECK-INST: zip1 z23.h, z13.h, z8.h +// CHECK-ENCODING: [0xb7,0x61,0x68,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: b7 61 68 05 + +zip1 p7.h, p13.h, p8.h +// CHECK-INST: zip1 p7.h, p13.h, p8.h +// CHECK-ENCODING: [0xa7,0x41,0x68,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: a7 41 68 05 + +zip1 p0.h, p0.h, p0.h +// CHECK-INST: zip1 p0.h, p0.h, p0.h +// CHECK-ENCODING: [0x00,0x40,0x60,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 00 40 60 05 + +zip1 z0.h, z0.h, z0.h +// CHECK-INST: zip1 z0.h, z0.h, z0.h +// CHECK-ENCODING: [0x00,0x60,0x60,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 00 60 60 05 + +zip1 z31.s, z31.s, z31.s +// CHECK-INST: zip1 z31.s, z31.s, z31.s +// CHECK-ENCODING: [0xff,0x63,0xbf,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: ff 63 bf 05 + +zip1 p15.d, p15.d, p15.d +// CHECK-INST: zip1 p15.d, p15.d, p15.d +// CHECK-ENCODING: [0xef,0x41,0xef,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: ef 41 ef 05 + +zip1 p5.d, p10.d, p5.d +// CHECK-INST: zip1 p5.d, p10.d, p5.d +// CHECK-ENCODING: [0x45,0x41,0xe5,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 45 41 e5 05 + +zip1 p15.b, p15.b, p15.b +// CHECK-INST: zip1 p15.b, p15.b, p15.b +// CHECK-ENCODING: [0xef,0x41,0x2f,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: ef 41 2f 05 + +zip1 z31.d, z31.d, z31.d +// CHECK-INST: zip1 z31.d, z31.d, z31.d +// CHECK-ENCODING: [0xff,0x63,0xff,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: ff 63 ff 05 + +zip1 p15.h, p15.h, p15.h +// CHECK-INST: zip1 p15.h, p15.h, p15.h +// CHECK-ENCODING: [0xef,0x41,0x6f,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: ef 41 6f 05 + +zip1 z21.h, z10.h, z21.h +// CHECK-INST: zip1 z21.h, z10.h, z21.h +// CHECK-ENCODING: [0x55,0x61,0x75,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 55 61 75 05 + +zip1 p5.h, p10.h, p5.h +// CHECK-INST: zip1 p5.h, p10.h, p5.h +// CHECK-ENCODING: [0x45,0x41,0x65,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 45 41 65 05 + +zip1 p7.s, p13.s, p8.s +// CHECK-INST: zip1 p7.s, p13.s, p8.s +// CHECK-ENCODING: [0xa7,0x41,0xa8,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: a7 41 a8 05 + +zip1 z23.b, z13.b, z8.b +// CHECK-INST: zip1 z23.b, z13.b, z8.b +// CHECK-ENCODING: [0xb7,0x61,0x28,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: b7 61 28 05 + +zip1 p0.s, p0.s, p0.s +// CHECK-INST: zip1 p0.s, p0.s, p0.s +// CHECK-ENCODING: [0x00,0x40,0xa0,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 00 40 a0 05 + +zip1 p0.b, p0.b, p0.b +// CHECK-INST: zip1 p0.b, p0.b, p0.b +// CHECK-ENCODING: [0x00,0x40,0x20,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 00 40 20 05 + +zip1 z23.d, z13.d, z8.d +// CHECK-INST: zip1 z23.d, z13.d, z8.d +// CHECK-ENCODING: [0xb7,0x61,0xe8,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: b7 61 e8 05 + +zip1 z0.b, z0.b, z0.b +// CHECK-INST: zip1 z0.b, z0.b, z0.b +// CHECK-ENCODING: [0x00,0x60,0x20,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 00 60 20 05 + +zip1 p15.s, p15.s, p15.s +// CHECK-INST: zip1 p15.s, p15.s, p15.s +// CHECK-ENCODING: [0xef,0x41,0xaf,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: ef 41 af 05 + +zip1 z31.b, z31.b, z31.b +// CHECK-INST: zip1 z31.b, z31.b, z31.b +// CHECK-ENCODING: [0xff,0x63,0x3f,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: ff 63 3f 05 + +zip1 z21.s, z10.s, z21.s +// CHECK-INST: zip1 z21.s, z10.s, z21.s +// CHECK-ENCODING: [0x55,0x61,0xb5,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 55 61 b5 05 Index: test/MC/AArch64/SVE/zip2-diagnostics.s =================================================================== --- /dev/null +++ test/MC/AArch64/SVE/zip2-diagnostics.s @@ -0,0 +1,14 @@ +// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s + +// Invalid element kind. +zip2 z6.h, z23.h, z31.x +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid sve vector kind qualifier +// CHECK-NEXT: zip2 z6.h, z23.h, z31.x +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +// Element size specifiers should match. +zip2 z0.h, z30.h, z24.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand +// CHECK-NEXT: zip2 z0.h, z30.h, z24.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + Index: test/MC/AArch64/SVE/zip2.s =================================================================== --- /dev/null +++ test/MC/AArch64/SVE/zip2.s @@ -0,0 +1,200 @@ +// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %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=+sve < %s \ +// RUN: | llvm-objdump -d -mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST +// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \ +// RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN + +zip2 p5.d, p10.d, p5.d +// CHECK-INST: zip2 p5.d, p10.d, p5.d +// CHECK-ENCODING: [0x45,0x45,0xe5,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 45 45 e5 05 + +zip2 p5.b, p10.b, p5.b +// CHECK-INST: zip2 p5.b, p10.b, p5.b +// CHECK-ENCODING: [0x45,0x45,0x25,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 45 45 25 05 + +zip2 z0.s, z0.s, z0.s +// CHECK-INST: zip2 z0.s, z0.s, z0.s +// CHECK-ENCODING: [0x00,0x64,0xa0,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 00 64 a0 05 + +zip2 p0.h, p0.h, p0.h +// CHECK-INST: zip2 p0.h, p0.h, p0.h +// CHECK-ENCODING: [0x00,0x44,0x60,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 00 44 60 05 + +zip2 p7.d, p13.d, p8.d +// CHECK-INST: zip2 p7.d, p13.d, p8.d +// CHECK-ENCODING: [0xa7,0x45,0xe8,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: a7 45 e8 05 + +zip2 z0.h, z0.h, z0.h +// CHECK-INST: zip2 z0.h, z0.h, z0.h +// CHECK-ENCODING: [0x00,0x64,0x60,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 00 64 60 05 + +zip2 z21.d, z10.d, z21.d +// CHECK-INST: zip2 z21.d, z10.d, z21.d +// CHECK-ENCODING: [0x55,0x65,0xf5,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 55 65 f5 05 + +zip2 p0.s, p0.s, p0.s +// CHECK-INST: zip2 p0.s, p0.s, p0.s +// CHECK-ENCODING: [0x00,0x44,0xa0,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 00 44 a0 05 + +zip2 p7.b, p13.b, p8.b +// CHECK-INST: zip2 p7.b, p13.b, p8.b +// CHECK-ENCODING: [0xa7,0x45,0x28,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: a7 45 28 05 + +zip2 p7.s, p13.s, p8.s +// CHECK-INST: zip2 p7.s, p13.s, p8.s +// CHECK-ENCODING: [0xa7,0x45,0xa8,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: a7 45 a8 05 + +zip2 p0.d, p0.d, p0.d +// CHECK-INST: zip2 p0.d, p0.d, p0.d +// CHECK-ENCODING: [0x00,0x44,0xe0,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 00 44 e0 05 + +zip2 z23.b, z13.b, z8.b +// CHECK-INST: zip2 z23.b, z13.b, z8.b +// CHECK-ENCODING: [0xb7,0x65,0x28,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: b7 65 28 05 + +zip2 z21.s, z10.s, z21.s +// CHECK-INST: zip2 z21.s, z10.s, z21.s +// CHECK-ENCODING: [0x55,0x65,0xb5,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 55 65 b5 05 + +zip2 z23.s, z13.s, z8.s +// CHECK-INST: zip2 z23.s, z13.s, z8.s +// CHECK-ENCODING: [0xb7,0x65,0xa8,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: b7 65 a8 05 + +zip2 p15.b, p15.b, p15.b +// CHECK-INST: zip2 p15.b, p15.b, p15.b +// CHECK-ENCODING: [0xef,0x45,0x2f,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: ef 45 2f 05 + +zip2 z0.d, z0.d, z0.d +// CHECK-INST: zip2 z0.d, z0.d, z0.d +// CHECK-ENCODING: [0x00,0x64,0xe0,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 00 64 e0 05 + +zip2 z31.d, z31.d, z31.d +// CHECK-INST: zip2 z31.d, z31.d, z31.d +// CHECK-ENCODING: [0xff,0x67,0xff,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: ff 67 ff 05 + +zip2 p15.d, p15.d, p15.d +// CHECK-INST: zip2 p15.d, p15.d, p15.d +// CHECK-ENCODING: [0xef,0x45,0xef,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: ef 45 ef 05 + +zip2 z21.b, z10.b, z21.b +// CHECK-INST: zip2 z21.b, z10.b, z21.b +// CHECK-ENCODING: [0x55,0x65,0x35,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 55 65 35 05 + +zip2 z0.b, z0.b, z0.b +// CHECK-INST: zip2 z0.b, z0.b, z0.b +// CHECK-ENCODING: [0x00,0x64,0x20,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 00 64 20 05 + +zip2 z31.s, z31.s, z31.s +// CHECK-INST: zip2 z31.s, z31.s, z31.s +// CHECK-ENCODING: [0xff,0x67,0xbf,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: ff 67 bf 05 + +zip2 p5.h, p10.h, p5.h +// CHECK-INST: zip2 p5.h, p10.h, p5.h +// CHECK-ENCODING: [0x45,0x45,0x65,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 45 45 65 05 + +zip2 z31.b, z31.b, z31.b +// CHECK-INST: zip2 z31.b, z31.b, z31.b +// CHECK-ENCODING: [0xff,0x67,0x3f,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: ff 67 3f 05 + +zip2 p7.h, p13.h, p8.h +// CHECK-INST: zip2 p7.h, p13.h, p8.h +// CHECK-ENCODING: [0xa7,0x45,0x68,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: a7 45 68 05 + +zip2 z23.d, z13.d, z8.d +// CHECK-INST: zip2 z23.d, z13.d, z8.d +// CHECK-ENCODING: [0xb7,0x65,0xe8,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: b7 65 e8 05 + +zip2 z21.h, z10.h, z21.h +// CHECK-INST: zip2 z21.h, z10.h, z21.h +// CHECK-ENCODING: [0x55,0x65,0x75,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 55 65 75 05 + +zip2 p5.s, p10.s, p5.s +// CHECK-INST: zip2 p5.s, p10.s, p5.s +// CHECK-ENCODING: [0x45,0x45,0xa5,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 45 45 a5 05 + +zip2 p0.b, p0.b, p0.b +// CHECK-INST: zip2 p0.b, p0.b, p0.b +// CHECK-ENCODING: [0x00,0x44,0x20,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: 00 44 20 05 + +zip2 p15.s, p15.s, p15.s +// CHECK-INST: zip2 p15.s, p15.s, p15.s +// CHECK-ENCODING: [0xef,0x45,0xaf,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: ef 45 af 05 + +zip2 z31.h, z31.h, z31.h +// CHECK-INST: zip2 z31.h, z31.h, z31.h +// CHECK-ENCODING: [0xff,0x67,0x7f,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: ff 67 7f 05 + +zip2 p15.h, p15.h, p15.h +// CHECK-INST: zip2 p15.h, p15.h, p15.h +// CHECK-ENCODING: [0xef,0x45,0x6f,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: ef 45 6f 05 + +zip2 z23.h, z13.h, z8.h +// CHECK-INST: zip2 z23.h, z13.h, z8.h +// CHECK-ENCODING: [0xb7,0x65,0x68,0x05] +// CHECK-ERROR: invalid predicate register +// CHECK-UNKNOWN: b7 65 68 05