[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / SME / fmops.s
blobbc8936b290c8bd68458a7b2d5414f5dd0bb35bca
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %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=+sme < %s \
6 // RUN: | llvm-objdump -d --mattr=+sme - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme < %s \
8 // RUN: | llvm-objdump -d --mattr=-sme - | FileCheck %s --check-prefix=CHECK-UNKNOWN
9 // Disassemble encoding and check the re-encoding (-show-encoding) matches.
10 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s \
11 // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
12 // RUN: | llvm-mc -triple=aarch64 -mattr=+sme -disassemble -show-encoding \
13 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
15 // --------------------------------------------------------------------------//
16 // Widening
18 fmops za0.s, p0/m, p0/m, z0.h, z0.h
19 // CHECK-INST: fmops za0.s, p0/m, p0/m, z0.h, z0.h
20 // CHECK-ENCODING: [0x10,0x00,0xa0,0x81]
21 // CHECK-ERROR: instruction requires: sme
22 // CHECK-UNKNOWN: 81a00010 <unknown>
24 fmops za1.s, p5/m, p2/m, z10.h, z21.h
25 // CHECK-INST: fmops za1.s, p5/m, p2/m, z10.h, z21.h
26 // CHECK-ENCODING: [0x51,0x55,0xb5,0x81]
27 // CHECK-ERROR: instruction requires: sme
28 // CHECK-UNKNOWN: 81b55551 <unknown>
30 fmops za3.s, p3/m, p7/m, z13.h, z8.h
31 // CHECK-INST: fmops za3.s, p3/m, p7/m, z13.h, z8.h
32 // CHECK-ENCODING: [0xb3,0xed,0xa8,0x81]
33 // CHECK-ERROR: instruction requires: sme
34 // CHECK-UNKNOWN: 81a8edb3 <unknown>
36 fmops za3.s, p7/m, p7/m, z31.h, z31.h
37 // CHECK-INST: fmops za3.s, p7/m, p7/m, z31.h, z31.h
38 // CHECK-ENCODING: [0xf3,0xff,0xbf,0x81]
39 // CHECK-ERROR: instruction requires: sme
40 // CHECK-UNKNOWN: 81bffff3 <unknown>
42 fmops za1.s, p3/m, p0/m, z17.h, z16.h
43 // CHECK-INST: fmops za1.s, p3/m, p0/m, z17.h, z16.h
44 // CHECK-ENCODING: [0x31,0x0e,0xb0,0x81]
45 // CHECK-ERROR: instruction requires: sme
46 // CHECK-UNKNOWN: 81b00e31 <unknown>
48 fmops za1.s, p1/m, p4/m, z1.h, z30.h
49 // CHECK-INST: fmops za1.s, p1/m, p4/m, z1.h, z30.h
50 // CHECK-ENCODING: [0x31,0x84,0xbe,0x81]
51 // CHECK-ERROR: instruction requires: sme
52 // CHECK-UNKNOWN: 81be8431 <unknown>
54 fmops za0.s, p5/m, p2/m, z19.h, z20.h
55 // CHECK-INST: fmops za0.s, p5/m, p2/m, z19.h, z20.h
56 // CHECK-ENCODING: [0x70,0x56,0xb4,0x81]
57 // CHECK-ERROR: instruction requires: sme
58 // CHECK-UNKNOWN: 81b45670 <unknown>
60 fmops za0.s, p6/m, p0/m, z12.h, z2.h
61 // CHECK-INST: fmops za0.s, p6/m, p0/m, z12.h, z2.h
62 // CHECK-ENCODING: [0x90,0x19,0xa2,0x81]
63 // CHECK-ERROR: instruction requires: sme
64 // CHECK-UNKNOWN: 81a21990 <unknown>
66 fmops za1.s, p2/m, p6/m, z1.h, z26.h
67 // CHECK-INST: fmops za1.s, p2/m, p6/m, z1.h, z26.h
68 // CHECK-ENCODING: [0x31,0xc8,0xba,0x81]
69 // CHECK-ERROR: instruction requires: sme
70 // CHECK-UNKNOWN: 81bac831 <unknown>
72 fmops za1.s, p2/m, p0/m, z22.h, z30.h
73 // CHECK-INST: fmops za1.s, p2/m, p0/m, z22.h, z30.h
74 // CHECK-ENCODING: [0xd1,0x0a,0xbe,0x81]
75 // CHECK-ERROR: instruction requires: sme
76 // CHECK-UNKNOWN: 81be0ad1 <unknown>
78 fmops za2.s, p5/m, p7/m, z9.h, z1.h
79 // CHECK-INST: fmops za2.s, p5/m, p7/m, z9.h, z1.h
80 // CHECK-ENCODING: [0x32,0xf5,0xa1,0x81]
81 // CHECK-ERROR: instruction requires: sme
82 // CHECK-UNKNOWN: 81a1f532 <unknown>
84 fmops za3.s, p2/m, p5/m, z12.h, z11.h
85 // CHECK-INST: fmops za3.s, p2/m, p5/m, z12.h, z11.h
86 // CHECK-ENCODING: [0x93,0xa9,0xab,0x81]
87 // CHECK-ERROR: instruction requires: sme
88 // CHECK-UNKNOWN: 81aba993 <unknown>
90 // --------------------------------------------------------------------------//
91 // Non-widening (single-precision)
93 fmops za0.s, p0/m, p0/m, z0.s, z0.s
94 // CHECK-INST: fmops za0.s, p0/m, p0/m, z0.s, z0.s
95 // CHECK-ENCODING: [0x10,0x00,0x80,0x80]
96 // CHECK-ERROR: instruction requires: sme
97 // CHECK-UNKNOWN: 80800010 <unknown>
99 fmops za1.s, p5/m, p2/m, z10.s, z21.s
100 // CHECK-INST: fmops za1.s, p5/m, p2/m, z10.s, z21.s
101 // CHECK-ENCODING: [0x51,0x55,0x95,0x80]
102 // CHECK-ERROR: instruction requires: sme
103 // CHECK-UNKNOWN: 80955551 <unknown>
105 fmops za3.s, p3/m, p7/m, z13.s, z8.s
106 // CHECK-INST: fmops za3.s, p3/m, p7/m, z13.s, z8.s
107 // CHECK-ENCODING: [0xb3,0xed,0x88,0x80]
108 // CHECK-ERROR: instruction requires: sme
109 // CHECK-UNKNOWN: 8088edb3 <unknown>
111 fmops za3.s, p7/m, p7/m, z31.s, z31.s
112 // CHECK-INST: fmops za3.s, p7/m, p7/m, z31.s, z31.s
113 // CHECK-ENCODING: [0xf3,0xff,0x9f,0x80]
114 // CHECK-ERROR: instruction requires: sme
115 // CHECK-UNKNOWN: 809ffff3 <unknown>
117 fmops za1.s, p3/m, p0/m, z17.s, z16.s
118 // CHECK-INST: fmops za1.s, p3/m, p0/m, z17.s, z16.s
119 // CHECK-ENCODING: [0x31,0x0e,0x90,0x80]
120 // CHECK-ERROR: instruction requires: sme
121 // CHECK-UNKNOWN: 80900e31 <unknown>
123 fmops za1.s, p1/m, p4/m, z1.s, z30.s
124 // CHECK-INST: fmops za1.s, p1/m, p4/m, z1.s, z30.s
125 // CHECK-ENCODING: [0x31,0x84,0x9e,0x80]
126 // CHECK-ERROR: instruction requires: sme
127 // CHECK-UNKNOWN: 809e8431 <unknown>
129 fmops za0.s, p5/m, p2/m, z19.s, z20.s
130 // CHECK-INST: fmops za0.s, p5/m, p2/m, z19.s, z20.s
131 // CHECK-ENCODING: [0x70,0x56,0x94,0x80]
132 // CHECK-ERROR: instruction requires: sme
133 // CHECK-UNKNOWN: 80945670 <unknown>
135 fmops za0.s, p6/m, p0/m, z12.s, z2.s
136 // CHECK-INST: fmops za0.s, p6/m, p0/m, z12.s, z2.s
137 // CHECK-ENCODING: [0x90,0x19,0x82,0x80]
138 // CHECK-ERROR: instruction requires: sme
139 // CHECK-UNKNOWN: 80821990 <unknown>
141 fmops za1.s, p2/m, p6/m, z1.s, z26.s
142 // CHECK-INST: fmops za1.s, p2/m, p6/m, z1.s, z26.s
143 // CHECK-ENCODING: [0x31,0xc8,0x9a,0x80]
144 // CHECK-ERROR: instruction requires: sme
145 // CHECK-UNKNOWN: 809ac831 <unknown>
147 fmops za1.s, p2/m, p0/m, z22.s, z30.s
148 // CHECK-INST: fmops za1.s, p2/m, p0/m, z22.s, z30.s
149 // CHECK-ENCODING: [0xd1,0x0a,0x9e,0x80]
150 // CHECK-ERROR: instruction requires: sme
151 // CHECK-UNKNOWN: 809e0ad1 <unknown>
153 fmops za2.s, p5/m, p7/m, z9.s, z1.s
154 // CHECK-INST: fmops za2.s, p5/m, p7/m, z9.s, z1.s
155 // CHECK-ENCODING: [0x32,0xf5,0x81,0x80]
156 // CHECK-ERROR: instruction requires: sme
157 // CHECK-UNKNOWN: 8081f532 <unknown>
159 fmops za3.s, p2/m, p5/m, z12.s, z11.s
160 // CHECK-INST: fmops za3.s, p2/m, p5/m, z12.s, z11.s
161 // CHECK-ENCODING: [0x93,0xa9,0x8b,0x80]
162 // CHECK-ERROR: instruction requires: sme
163 // CHECK-UNKNOWN: 808ba993 <unknown>