1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %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=+sve2 < %s \
6// RUN:        | llvm-objdump -d --mattr=+sve2 - | FileCheck %s --check-prefix=CHECK-INST
7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \
8// RUN:        | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
9
10ldnt1d z0.d, p0/z, [z1.d]
11// CHECK-INST: ldnt1d { z0.d }, p0/z, [z1.d]
12// CHECK-ENCODING: [0x20,0xc0,0x9f,0xc5]
13// CHECK-ERROR: instruction requires: sve2
14// CHECK-UNKNOWN: 20 c0 9f c5 <unknown>
15
16ldnt1d z31.d, p7/z, [z31.d, xzr]
17// CHECK-INST: ldnt1d { z31.d }, p7/z, [z31.d]
18// CHECK-ENCODING: [0xff,0xdf,0x9f,0xc5]
19// CHECK-ERROR: instruction requires: sve2
20// CHECK-UNKNOWN: ff df 9f c5 <unknown>
21
22ldnt1d z31.d, p7/z, [z31.d, x0]
23// CHECK-INST: ldnt1d { z31.d }, p7/z, [z31.d, x0]
24// CHECK-ENCODING: [0xff,0xdf,0x80,0xc5]
25// CHECK-ERROR: instruction requires: sve2
26// CHECK-UNKNOWN: ff df 80 c5 <unknown>
27
28ldnt1d { z0.d }, p0/z, [z1.d]
29// CHECK-INST: ldnt1d { z0.d }, p0/z, [z1.d]
30// CHECK-ENCODING: [0x20,0xc0,0x9f,0xc5]
31// CHECK-ERROR: instruction requires: sve2
32// CHECK-UNKNOWN: 20 c0 9f c5 <unknown>
33
34ldnt1d { z31.d }, p7/z, [z31.d, xzr]
35// CHECK-INST: ldnt1d { z31.d }, p7/z, [z31.d]
36// CHECK-ENCODING: [0xff,0xdf,0x9f,0xc5]
37// CHECK-ERROR: instruction requires: sve2
38// CHECK-UNKNOWN: ff df 9f c5 <unknown>
39
40ldnt1d { z31.d }, p7/z, [z31.d, x0]
41// CHECK-INST: ldnt1d { z31.d }, p7/z, [z31.d, x0]
42// CHECK-ENCODING: [0xff,0xdf,0x80,0xc5]
43// CHECK-ERROR: instruction requires: sve2
44// CHECK-UNKNOWN: ff df 80 c5 <unknown>
45