[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / SME2p2 / fmop4as-fp16-fp32-widening.s
blobd615fb85b4fd7e5c001982b38bd54dfa2f99515b
2 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2p2 < %s \
3 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
4 // RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
5 // RUN: | FileCheck %s --check-prefix=CHECK-ERROR
6 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2p2 < %s \
7 // RUN: | llvm-objdump -d --mattr=+sme2p2 - | FileCheck %s --check-prefix=CHECK-INST
8 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2p2 < %s \
9 // RUN: | llvm-objdump -d --mattr=-sme2p2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
10 // Disassemble encoding and check the re-encoding (-show-encoding) matches.
11 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2p2 < %s \
12 // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
13 // RUN: | llvm-mc -triple=aarch64 -mattr=+sme2p2 -disassemble -show-encoding \
14 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
17 // FMOP4A
19 // Single vectors
20 fmop4a za0.s, z0.h, z16.h // 10000001-00100000-00000000-00000000
21 // CHECK-INST: fmop4a za0.s, z0.h, z16.h
22 // CHECK-ENCODING: [0x00,0x00,0x20,0x81]
23 // CHECK-ERROR: instruction requires: sme2p2
24 // CHECK-UNKNOWN: 81200000 <unknown>
26 fmop4a za1.s, z10.h, z20.h // 10000001-00100100-00000001-01000001
27 // CHECK-INST: fmop4a za1.s, z10.h, z20.h
28 // CHECK-ENCODING: [0x41,0x01,0x24,0x81]
29 // CHECK-ERROR: instruction requires: sme2p2
30 // CHECK-UNKNOWN: 81240141 <unknown>
32 fmop4a za3.s, z14.h, z30.h // 10000001-00101110-00000001-11000011
33 // CHECK-INST: fmop4a za3.s, z14.h, z30.h
34 // CHECK-ENCODING: [0xc3,0x01,0x2e,0x81]
35 // CHECK-ERROR: instruction requires: sme2p2
36 // CHECK-UNKNOWN: 812e01c3 <unknown>
38 // Single and multiple vectors
40 fmop4a za0.s, z0.h, {z16.h-z17.h} // 10000001-00110000-00000000-00000000
41 // CHECK-INST: fmop4a za0.s, z0.h, { z16.h, z17.h }
42 // CHECK-ENCODING: [0x00,0x00,0x30,0x81]
43 // CHECK-ERROR: instruction requires: sme2p2
44 // CHECK-UNKNOWN: 81300000 <unknown>
46 fmop4a za1.s, z10.h, {z20.h-z21.h} // 10000001-00110100-00000001-01000001
47 // CHECK-INST: fmop4a za1.s, z10.h, { z20.h, z21.h }
48 // CHECK-ENCODING: [0x41,0x01,0x34,0x81]
49 // CHECK-ERROR: instruction requires: sme2p2
50 // CHECK-UNKNOWN: 81340141 <unknown>
52 fmop4a za3.s, z14.h, {z30.h-z31.h} // 10000001-00111110-00000001-11000011
53 // CHECK-INST: fmop4a za3.s, z14.h, { z30.h, z31.h }
54 // CHECK-ENCODING: [0xc3,0x01,0x3e,0x81]
55 // CHECK-ERROR: instruction requires: sme2p2
56 // CHECK-UNKNOWN: 813e01c3 <unknown>
58 // Multiple and single vectors
60 fmop4a za0.s, {z0.h-z1.h}, z16.h // 10000001-00100000-00000010-00000000
61 // CHECK-INST: fmop4a za0.s, { z0.h, z1.h }, z16.h
62 // CHECK-ENCODING: [0x00,0x02,0x20,0x81]
63 // CHECK-ERROR: instruction requires: sme2p2
64 // CHECK-UNKNOWN: 81200200 <unknown>
66 fmop4a za1.s, {z10.h-z11.h}, z20.h // 10000001-00100100-00000011-01000001
67 // CHECK-INST: fmop4a za1.s, { z10.h, z11.h }, z20.h
68 // CHECK-ENCODING: [0x41,0x03,0x24,0x81]
69 // CHECK-ERROR: instruction requires: sme2p2
70 // CHECK-UNKNOWN: 81240341 <unknown>
72 fmop4a za3.s, {z14.h-z15.h}, z30.h // 10000001-00101110-00000011-11000011
73 // CHECK-INST: fmop4a za3.s, { z14.h, z15.h }, z30.h
74 // CHECK-ENCODING: [0xc3,0x03,0x2e,0x81]
75 // CHECK-ERROR: instruction requires: sme2p2
76 // CHECK-UNKNOWN: 812e03c3 <unknown>
78 // Multiple vectors
80 fmop4a za0.s, {z0.h-z1.h}, {z16.h-z17.h} // 10000001-00110000-00000010-00000000
81 // CHECK-INST: fmop4a za0.s, { z0.h, z1.h }, { z16.h, z17.h }
82 // CHECK-ENCODING: [0x00,0x02,0x30,0x81]
83 // CHECK-ERROR: instruction requires: sme2p2
84 // CHECK-UNKNOWN: 81300200 <unknown>
86 fmop4a za1.s, {z10.h-z11.h}, {z20.h-z21.h} // 10000001-00110100-00000011-01000001
87 // CHECK-INST: fmop4a za1.s, { z10.h, z11.h }, { z20.h, z21.h }
88 // CHECK-ENCODING: [0x41,0x03,0x34,0x81]
89 // CHECK-ERROR: instruction requires: sme2p2
90 // CHECK-UNKNOWN: 81340341 <unknown>
92 fmop4a za3.s, {z14.h-z15.h}, {z30.h-z31.h} // 10000001-00111110-00000011-11000011
93 // CHECK-INST: fmop4a za3.s, { z14.h, z15.h }, { z30.h, z31.h }
94 // CHECK-ENCODING: [0xc3,0x03,0x3e,0x81]
95 // CHECK-ERROR: instruction requires: sme2p2
96 // CHECK-UNKNOWN: 813e03c3 <unknown>
98 // FMOP4S
100 // Single vectors
101 fmop4s za0.s, z0.h, z16.h // 10000001-00100000-00000000-00010000
102 // CHECK-INST: fmop4s za0.s, z0.h, z16.h
103 // CHECK-ENCODING: [0x10,0x00,0x20,0x81]
104 // CHECK-ERROR: instruction requires: sme2p2
105 // CHECK-UNKNOWN: 81200010 <unknown>
107 fmop4s za1.s, z10.h, z20.h // 10000001-00100100-00000001-01010001
108 // CHECK-INST: fmop4s za1.s, z10.h, z20.h
109 // CHECK-ENCODING: [0x51,0x01,0x24,0x81]
110 // CHECK-ERROR: instruction requires: sme2p2
111 // CHECK-UNKNOWN: 81240151 <unknown>
113 fmop4s za3.s, z14.h, z30.h // 10000001-00101110-00000001-11010011
114 // CHECK-INST: fmop4s za3.s, z14.h, z30.h
115 // CHECK-ENCODING: [0xd3,0x01,0x2e,0x81]
116 // CHECK-ERROR: instruction requires: sme2p2
117 // CHECK-UNKNOWN: 812e01d3 <unknown>
119 // Single and multiple vectors
121 fmop4s za0.s, z0.h, {z16.h-z17.h} // 10000001-00110000-00000000-00010000
122 // CHECK-INST: fmop4s za0.s, z0.h, { z16.h, z17.h }
123 // CHECK-ENCODING: [0x10,0x00,0x30,0x81]
124 // CHECK-ERROR: instruction requires: sme2p2
125 // CHECK-UNKNOWN: 81300010 <unknown>
127 fmop4s za1.s, z10.h, {z20.h-z21.h} // 10000001-00110100-00000001-01010001
128 // CHECK-INST: fmop4s za1.s, z10.h, { z20.h, z21.h }
129 // CHECK-ENCODING: [0x51,0x01,0x34,0x81]
130 // CHECK-ERROR: instruction requires: sme2p2
131 // CHECK-UNKNOWN: 81340151 <unknown>
133 fmop4s za3.s, z14.h, {z30.h-z31.h} // 10000001-00111110-00000001-11010011
134 // CHECK-INST: fmop4s za3.s, z14.h, { z30.h, z31.h }
135 // CHECK-ENCODING: [0xd3,0x01,0x3e,0x81]
136 // CHECK-ERROR: instruction requires: sme2p2
137 // CHECK-UNKNOWN: 813e01d3 <unknown>
139 // Multiple and single vectors
141 fmop4s za0.s, {z0.h-z1.h}, z16.h // 10000001-00100000-00000010-00010000
142 // CHECK-INST: fmop4s za0.s, { z0.h, z1.h }, z16.h
143 // CHECK-ENCODING: [0x10,0x02,0x20,0x81]
144 // CHECK-ERROR: instruction requires: sme2p2
145 // CHECK-UNKNOWN: 81200210 <unknown>
147 fmop4s za1.s, {z10.h-z11.h}, z20.h // 10000001-00100100-00000011-01010001
148 // CHECK-INST: fmop4s za1.s, { z10.h, z11.h }, z20.h
149 // CHECK-ENCODING: [0x51,0x03,0x24,0x81]
150 // CHECK-ERROR: instruction requires: sme2p2
151 // CHECK-UNKNOWN: 81240351 <unknown>
153 fmop4s za3.s, {z14.h-z15.h}, z30.h // 10000001-00101110-00000011-11010011
154 // CHECK-INST: fmop4s za3.s, { z14.h, z15.h }, z30.h
155 // CHECK-ENCODING: [0xd3,0x03,0x2e,0x81]
156 // CHECK-ERROR: instruction requires: sme2p2
157 // CHECK-UNKNOWN: 812e03d3 <unknown>
159 // Multiple vectors
161 fmop4s za0.s, {z0.h-z1.h}, {z16.h-z17.h} // 10000001-00110000-00000010-00010000
162 // CHECK-INST: fmop4s za0.s, { z0.h, z1.h }, { z16.h, z17.h }
163 // CHECK-ENCODING: [0x10,0x02,0x30,0x81]
164 // CHECK-ERROR: instruction requires: sme2p2
165 // CHECK-UNKNOWN: 81300210 <unknown>
167 fmop4s za1.s, {z10.h-z11.h}, {z20.h-z21.h} // 10000001-00110100-00000011-01010001
168 // CHECK-INST: fmop4s za1.s, { z10.h, z11.h }, { z20.h, z21.h }
169 // CHECK-ENCODING: [0x51,0x03,0x34,0x81]
170 // CHECK-ERROR: instruction requires: sme2p2
171 // CHECK-UNKNOWN: 81340351 <unknown>
173 fmop4s za3.s, {z14.h-z15.h}, {z30.h-z31.h} // 10000001-00111110-00000011-11010011
174 // CHECK-INST: fmop4s za3.s, { z14.h, z15.h }, { z30.h, z31.h }
175 // CHECK-ENCODING: [0xd3,0x03,0x3e,0x81]
176 // CHECK-ERROR: instruction requires: sme2p2
177 // CHECK-UNKNOWN: 813e03d3 <unknown>