xref: /llvm-project/llvm/test/MC/AArch64/SVE2p1/ptrue.s (revision 12a6572d41f195a5765b49322b46b246c30759fc)
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %s \
2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p1 < %s \
4// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
5// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
6// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR
7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2 < %s \
8// RUN:        | llvm-objdump -d --mattr=+sme2 - | FileCheck %s --check-prefix=CHECK-INST
9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2 < %s \
10// RUN:        | llvm-objdump -d --mattr=-sme2,-sve2p1 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
11// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %s \
12// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \
13// RUN:        | llvm-mc -triple=aarch64 -mattr=+sme2 -disassemble -show-encoding \
14// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
15
16ptrue   pn8.h  // 00100101-01100000-01111000-00010000
17// CHECK-INST: ptrue   pn8.h
18// CHECK-ENCODING: [0x10,0x78,0x60,0x25]
19// CHECK-ERROR: instruction requires: sme2 or sve2p1
20// CHECK-UNKNOWN: 25607810 <unknown>
21
22ptrue   pn13.h  // 00100101-01100000-01111000-00010101
23// CHECK-INST: ptrue   pn13.h
24// CHECK-ENCODING: [0x15,0x78,0x60,0x25]
25// CHECK-ERROR: instruction requires: sme2 or sve2p1
26// CHECK-UNKNOWN: 25607815 <unknown>
27
28ptrue   pn15.h  // 00100101-01100000-01111000-00010111
29// CHECK-INST: ptrue   pn15.h
30// CHECK-ENCODING: [0x17,0x78,0x60,0x25]
31// CHECK-ERROR: instruction requires: sme2 or sve2p1
32// CHECK-UNKNOWN: 25607817 <unknown>
33
34ptrue   pn9.h  // 00100101-01100000-01111000-00010001
35// CHECK-INST: ptrue   pn9.h
36// CHECK-ENCODING: [0x11,0x78,0x60,0x25]
37// CHECK-ERROR: instruction requires: sme2 or sve2p1
38// CHECK-UNKNOWN: 25607811 <unknown>
39
40ptrue   pn8.s  // 00100101-10100000-01111000-00010000
41// CHECK-INST: ptrue   pn8.s
42// CHECK-ENCODING: [0x10,0x78,0xa0,0x25]
43// CHECK-ERROR: instruction requires: sme2 or sve2p1
44// CHECK-UNKNOWN: 25a07810 <unknown>
45
46ptrue   pn13.s  // 00100101-10100000-01111000-00010101
47// CHECK-INST: ptrue   pn13.s
48// CHECK-ENCODING: [0x15,0x78,0xa0,0x25]
49// CHECK-ERROR: instruction requires: sme2 or sve2p1
50// CHECK-UNKNOWN: 25a07815 <unknown>
51
52ptrue   pn15.s  // 00100101-10100000-01111000-00010111
53// CHECK-INST: ptrue   pn15.s
54// CHECK-ENCODING: [0x17,0x78,0xa0,0x25]
55// CHECK-ERROR: instruction requires: sme2 or sve2p1
56// CHECK-UNKNOWN: 25a07817 <unknown>
57
58ptrue   pn9.s  // 00100101-10100000-01111000-00010001
59// CHECK-INST: ptrue   pn9.s
60// CHECK-ENCODING: [0x11,0x78,0xa0,0x25]
61// CHECK-ERROR: instruction requires: sme2 or sve2p1
62// CHECK-UNKNOWN: 25a07811 <unknown>
63
64ptrue   pn8.d  // 00100101-11100000-01111000-00010000
65// CHECK-INST: ptrue   pn8.d
66// CHECK-ENCODING: [0x10,0x78,0xe0,0x25]
67// CHECK-ERROR: instruction requires: sme2 or sve2p1
68// CHECK-UNKNOWN: 25e07810 <unknown>
69
70ptrue   pn13.d  // 00100101-11100000-01111000-00010101
71// CHECK-INST: ptrue   pn13.d
72// CHECK-ENCODING: [0x15,0x78,0xe0,0x25]
73// CHECK-ERROR: instruction requires: sme2 or sve2p1
74// CHECK-UNKNOWN: 25e07815 <unknown>
75
76ptrue   pn15.d  // 00100101-11100000-01111000-00010111
77// CHECK-INST: ptrue   pn15.d
78// CHECK-ENCODING: [0x17,0x78,0xe0,0x25]
79// CHECK-ERROR: instruction requires: sme2 or sve2p1
80// CHECK-UNKNOWN: 25e07817 <unknown>
81
82ptrue   pn9.d  // 00100101-11100000-01111000-00010001
83// CHECK-INST: ptrue   pn9.d
84// CHECK-ENCODING: [0x11,0x78,0xe0,0x25]
85// CHECK-ERROR: instruction requires: sme2 or sve2p1
86// CHECK-UNKNOWN: 25e07811 <unknown>
87
88ptrue   pn8.b  // 00100101-00100000-01111000-00010000
89// CHECK-INST: ptrue   pn8.b
90// CHECK-ENCODING: [0x10,0x78,0x20,0x25]
91// CHECK-ERROR: instruction requires: sme2 or sve2p1
92// CHECK-UNKNOWN: 25207810 <unknown>
93
94ptrue   pn13.b  // 00100101-00100000-01111000-00010101
95// CHECK-INST: ptrue   pn13.b
96// CHECK-ENCODING: [0x15,0x78,0x20,0x25]
97// CHECK-ERROR: instruction requires: sme2 or sve2p1
98// CHECK-UNKNOWN: 25207815 <unknown>
99
100ptrue   pn15.b  // 00100101-00100000-01111000-00010111
101// CHECK-INST: ptrue   pn15.b
102// CHECK-ENCODING: [0x17,0x78,0x20,0x25]
103// CHECK-ERROR: instruction requires: sme2 or sve2p1
104// CHECK-UNKNOWN: 25207817 <unknown>
105
106ptrue   pn9.b  // 00100101-00100000-01111000-00010001
107// CHECK-INST: ptrue   pn9.b
108// CHECK-ENCODING: [0x11,0x78,0x20,0x25]
109// CHECK-ERROR: instruction requires: sme2 or sve2p1
110// CHECK-UNKNOWN: 25207811 <unknown>
111