xref: /llvm-project/llvm/test/MC/AArch64/SVE2/ldnt1w.s (revision ae16b2ed9871b5624fdcb4286fbd0d6ddfd88961)
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: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s 2>&1 \
6// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR
7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \
8// RUN:        | llvm-objdump -d --mattr=+sve2 - | FileCheck %s --check-prefix=CHECK-INST
9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \
10// RUN:   | llvm-objdump -d --mattr=-sve2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
11
12ldnt1w z0.s, p0/z, [z1.s]
13// CHECK-INST: ldnt1w { z0.s }, p0/z, [z1.s]
14// CHECK-ENCODING: [0x20,0xa0,0x1f,0x85]
15// CHECK-ERROR: instruction requires: sve2
16// CHECK-UNKNOWN: 851fa020 <unknown>
17
18ldnt1w z31.s, p7/z, [z31.s, xzr]
19// CHECK-INST: ldnt1w { z31.s }, p7/z, [z31.s]
20// CHECK-ENCODING: [0xff,0xbf,0x1f,0x85]
21// CHECK-ERROR: instruction requires: sve2
22// CHECK-UNKNOWN: 851fbfff <unknown>
23
24ldnt1w z31.s, p7/z, [z31.s, x0]
25// CHECK-INST: ldnt1w { z31.s }, p7/z, [z31.s, x0]
26// CHECK-ENCODING: [0xff,0xbf,0x00,0x85]
27// CHECK-ERROR: instruction requires: sve2
28// CHECK-UNKNOWN: 8500bfff <unknown>
29
30ldnt1w z0.d, p0/z, [z1.d]
31// CHECK-INST: ldnt1w { z0.d }, p0/z, [z1.d]
32// CHECK-ENCODING: [0x20,0xc0,0x1f,0xc5]
33// CHECK-ERROR: instruction requires: sve2
34// CHECK-UNKNOWN: c51fc020 <unknown>
35
36ldnt1w z31.d, p7/z, [z31.d, xzr]
37// CHECK-INST: ldnt1w { z31.d }, p7/z, [z31.d]
38// CHECK-ENCODING: [0xff,0xdf,0x1f,0xc5]
39// CHECK-ERROR: instruction requires: sve2
40// CHECK-UNKNOWN: c51fdfff <unknown>
41
42ldnt1w z31.d, p7/z, [z31.d, x0]
43// CHECK-INST: ldnt1w { z31.d }, p7/z, [z31.d, x0]
44// CHECK-ENCODING: [0xff,0xdf,0x00,0xc5]
45// CHECK-ERROR: instruction requires: sve2
46// CHECK-UNKNOWN: c500dfff <unknown>
47
48ldnt1w { z0.s }, p0/z, [z1.s]
49// CHECK-INST: ldnt1w { z0.s }, p0/z, [z1.s]
50// CHECK-ENCODING: [0x20,0xa0,0x1f,0x85]
51// CHECK-ERROR: instruction requires: sve2
52// CHECK-UNKNOWN: 851fa020 <unknown>
53
54ldnt1w { z31.s }, p7/z, [z31.s, xzr]
55// CHECK-INST: ldnt1w { z31.s }, p7/z, [z31.s]
56// CHECK-ENCODING: [0xff,0xbf,0x1f,0x85]
57// CHECK-ERROR: instruction requires: sve2
58// CHECK-UNKNOWN: 851fbfff <unknown>
59
60ldnt1w { z31.s }, p7/z, [z31.s, x0]
61// CHECK-INST: ldnt1w { z31.s }, p7/z, [z31.s, x0]
62// CHECK-ENCODING: [0xff,0xbf,0x00,0x85]
63// CHECK-ERROR: instruction requires: sve2
64// CHECK-UNKNOWN: 8500bfff <unknown>
65
66ldnt1w { z0.d }, p0/z, [z1.d]
67// CHECK-INST: ldnt1w { z0.d }, p0/z, [z1.d]
68// CHECK-ENCODING: [0x20,0xc0,0x1f,0xc5]
69// CHECK-ERROR: instruction requires: sve2
70// CHECK-UNKNOWN: c51fc020 <unknown>
71
72ldnt1w { z31.d }, p7/z, [z31.d, xzr]
73// CHECK-INST: ldnt1w { z31.d }, p7/z, [z31.d]
74// CHECK-ENCODING: [0xff,0xdf,0x1f,0xc5]
75// CHECK-ERROR: instruction requires: sve2
76// CHECK-UNKNOWN: c51fdfff <unknown>
77
78ldnt1w { z31.d }, p7/z, [z31.d, x0]
79// CHECK-INST: ldnt1w { z31.d }, p7/z, [z31.d, x0]
80// CHECK-ENCODING: [0xff,0xdf,0x00,0xc5]
81// CHECK-ERROR: instruction requires: sve2
82// CHECK-UNKNOWN: c500dfff <unknown>
83