1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \
2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
4// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR
5// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
6// RUN:        | llvm-objdump -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST
7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
8// RUN:        | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
9
10splice  z31.b, p7, z31.b, z31.b
11// CHECK-INST: splice  z31.b, p7, z31.b, z31.b
12// CHECK-ENCODING: [0xff,0x9f,0x2c,0x05]
13// CHECK-ERROR: instruction requires: sve
14// CHECK-UNKNOWN: ff 9f 2c 05 <unknown>
15
16splice  z31.h, p7, z31.h, z31.h
17// CHECK-INST: splice  z31.h, p7, z31.h, z31.h
18// CHECK-ENCODING: [0xff,0x9f,0x6c,0x05]
19// CHECK-ERROR: instruction requires: sve
20// CHECK-UNKNOWN: ff 9f 6c 05 <unknown>
21
22splice  z31.s, p7, z31.s, z31.s
23// CHECK-INST: splice  z31.s, p7, z31.s, z31.s
24// CHECK-ENCODING: [0xff,0x9f,0xac,0x05]
25// CHECK-ERROR: instruction requires: sve
26// CHECK-UNKNOWN: ff 9f ac 05 <unknown>
27
28splice  z31.d, p7, z31.d, z31.d
29// CHECK-INST: splice  z31.d, p7, z31.d, z31.d
30// CHECK-ENCODING: [0xff,0x9f,0xec,0x05]
31// CHECK-ERROR: instruction requires: sve
32// CHECK-UNKNOWN: ff 9f ec 05 <unknown>
33
34
35// --------------------------------------------------------------------------//
36// Test compatibility with MOVPRFX instruction.
37
38movprfx z4, z6
39// CHECK-INST: movprfx	z4, z6
40// CHECK-ENCODING: [0xc4,0xbc,0x20,0x04]
41// CHECK-ERROR: instruction requires: sve
42// CHECK-UNKNOWN: c4 bc 20 04 <unknown>
43
44splice  z4.d, p7, z4.d, z31.d
45// CHECK-INST: splice	z4.d, p7, z4.d, z31.d
46// CHECK-ENCODING: [0xe4,0x9f,0xec,0x05]
47// CHECK-ERROR: instruction requires: sve
48// CHECK-UNKNOWN: e4 9f ec 05 <unknown>
49