Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SME2 / suvdot.s
blob9993bbb887fa87b8490716f581838bed4b3d0342
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %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=+sme2 < %s \
6 // RUN: | llvm-objdump -d --mattr=+sme2 - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2 < %s \
8 // RUN: | llvm-objdump -d --mattr=-sme2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
9 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %s \
10 // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
11 // RUN: | llvm-mc -triple=aarch64 -mattr=+sme2 -disassemble -show-encoding \
12 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
15 suvdot za.s[w8, 0, vgx4], {z0.b - z3.b}, z0.b[0] // 11000001-01010000-10000000-00111000
16 // CHECK-INST: suvdot za.s[w8, 0, vgx4], { z0.b - z3.b }, z0.b[0]
17 // CHECK-ENCODING: [0x38,0x80,0x50,0xc1]
18 // CHECK-ERROR: instruction requires: sme2
19 // CHECK-UNKNOWN: c1508038 <unknown>
21 suvdot za.s[w8, 0], {z0.b - z3.b}, z0.b[0] // 11000001-01010000-10000000-00111000
22 // CHECK-INST: suvdot za.s[w8, 0, vgx4], { z0.b - z3.b }, z0.b[0]
23 // CHECK-ENCODING: [0x38,0x80,0x50,0xc1]
24 // CHECK-ERROR: instruction requires: sme2
25 // CHECK-UNKNOWN: c1508038 <unknown>
27 suvdot za.s[w10, 5, vgx4], {z8.b - z11.b}, z5.b[1] // 11000001-01010101-11000101-00111101
28 // CHECK-INST: suvdot za.s[w10, 5, vgx4], { z8.b - z11.b }, z5.b[1]
29 // CHECK-ENCODING: [0x3d,0xc5,0x55,0xc1]
30 // CHECK-ERROR: instruction requires: sme2
31 // CHECK-UNKNOWN: c155c53d <unknown>
33 suvdot za.s[w10, 5], {z8.b - z11.b}, z5.b[1] // 11000001-01010101-11000101-00111101
34 // CHECK-INST: suvdot za.s[w10, 5, vgx4], { z8.b - z11.b }, z5.b[1]
35 // CHECK-ENCODING: [0x3d,0xc5,0x55,0xc1]
36 // CHECK-ERROR: instruction requires: sme2
37 // CHECK-UNKNOWN: c155c53d <unknown>
39 suvdot za.s[w11, 7, vgx4], {z12.b - z15.b}, z8.b[3] // 11000001-01011000-11101101-10111111
40 // CHECK-INST: suvdot za.s[w11, 7, vgx4], { z12.b - z15.b }, z8.b[3]
41 // CHECK-ENCODING: [0xbf,0xed,0x58,0xc1]
42 // CHECK-ERROR: instruction requires: sme2
43 // CHECK-UNKNOWN: c158edbf <unknown>
45 suvdot za.s[w11, 7], {z12.b - z15.b}, z8.b[3] // 11000001-01011000-11101101-10111111
46 // CHECK-INST: suvdot za.s[w11, 7, vgx4], { z12.b - z15.b }, z8.b[3]
47 // CHECK-ENCODING: [0xbf,0xed,0x58,0xc1]
48 // CHECK-ERROR: instruction requires: sme2
49 // CHECK-UNKNOWN: c158edbf <unknown>
51 suvdot za.s[w11, 7, vgx4], {z28.b - z31.b}, z15.b[3] // 11000001-01011111-11101111-10111111
52 // CHECK-INST: suvdot za.s[w11, 7, vgx4], { z28.b - z31.b }, z15.b[3]
53 // CHECK-ENCODING: [0xbf,0xef,0x5f,0xc1]
54 // CHECK-ERROR: instruction requires: sme2
55 // CHECK-UNKNOWN: c15fefbf <unknown>
57 suvdot za.s[w11, 7], {z28.b - z31.b}, z15.b[3] // 11000001-01011111-11101111-10111111
58 // CHECK-INST: suvdot za.s[w11, 7, vgx4], { z28.b - z31.b }, z15.b[3]
59 // CHECK-ENCODING: [0xbf,0xef,0x5f,0xc1]
60 // CHECK-ERROR: instruction requires: sme2
61 // CHECK-UNKNOWN: c15fefbf <unknown>
63 suvdot za.s[w8, 5, vgx4], {z16.b - z19.b}, z0.b[3] // 11000001-01010000-10001110-00111101
64 // CHECK-INST: suvdot za.s[w8, 5, vgx4], { z16.b - z19.b }, z0.b[3]
65 // CHECK-ENCODING: [0x3d,0x8e,0x50,0xc1]
66 // CHECK-ERROR: instruction requires: sme2
67 // CHECK-UNKNOWN: c1508e3d <unknown>
69 suvdot za.s[w8, 5], {z16.b - z19.b}, z0.b[3] // 11000001-01010000-10001110-00111101
70 // CHECK-INST: suvdot za.s[w8, 5, vgx4], { z16.b - z19.b }, z0.b[3]
71 // CHECK-ENCODING: [0x3d,0x8e,0x50,0xc1]
72 // CHECK-ERROR: instruction requires: sme2
73 // CHECK-UNKNOWN: c1508e3d <unknown>
75 suvdot za.s[w8, 1, vgx4], {z0.b - z3.b}, z14.b[1] // 11000001-01011110-10000100-00111001
76 // CHECK-INST: suvdot za.s[w8, 1, vgx4], { z0.b - z3.b }, z14.b[1]
77 // CHECK-ENCODING: [0x39,0x84,0x5e,0xc1]
78 // CHECK-ERROR: instruction requires: sme2
79 // CHECK-UNKNOWN: c15e8439 <unknown>
81 suvdot za.s[w8, 1], {z0.b - z3.b}, z14.b[1] // 11000001-01011110-10000100-00111001
82 // CHECK-INST: suvdot za.s[w8, 1, vgx4], { z0.b - z3.b }, z14.b[1]
83 // CHECK-ENCODING: [0x39,0x84,0x5e,0xc1]
84 // CHECK-ERROR: instruction requires: sme2
85 // CHECK-UNKNOWN: c15e8439 <unknown>
87 suvdot za.s[w10, 0, vgx4], {z16.b - z19.b}, z4.b[1] // 11000001-01010100-11000110-00111000
88 // CHECK-INST: suvdot za.s[w10, 0, vgx4], { z16.b - z19.b }, z4.b[1]
89 // CHECK-ENCODING: [0x38,0xc6,0x54,0xc1]
90 // CHECK-ERROR: instruction requires: sme2
91 // CHECK-UNKNOWN: c154c638 <unknown>
93 suvdot za.s[w10, 0], {z16.b - z19.b}, z4.b[1] // 11000001-01010100-11000110-00111000
94 // CHECK-INST: suvdot za.s[w10, 0, vgx4], { z16.b - z19.b }, z4.b[1]
95 // CHECK-ENCODING: [0x38,0xc6,0x54,0xc1]
96 // CHECK-ERROR: instruction requires: sme2
97 // CHECK-UNKNOWN: c154c638 <unknown>
99 suvdot za.s[w8, 0, vgx4], {z12.b - z15.b}, z2.b[2] // 11000001-01010010-10001001-10111000
100 // CHECK-INST: suvdot za.s[w8, 0, vgx4], { z12.b - z15.b }, z2.b[2]
101 // CHECK-ENCODING: [0xb8,0x89,0x52,0xc1]
102 // CHECK-ERROR: instruction requires: sme2
103 // CHECK-UNKNOWN: c15289b8 <unknown>
105 suvdot za.s[w8, 0], {z12.b - z15.b}, z2.b[2] // 11000001-01010010-10001001-10111000
106 // CHECK-INST: suvdot za.s[w8, 0, vgx4], { z12.b - z15.b }, z2.b[2]
107 // CHECK-ENCODING: [0xb8,0x89,0x52,0xc1]
108 // CHECK-ERROR: instruction requires: sme2
109 // CHECK-UNKNOWN: c15289b8 <unknown>
111 suvdot za.s[w10, 1, vgx4], {z0.b - z3.b}, z10.b[2] // 11000001-01011010-11001000-00111001
112 // CHECK-INST: suvdot za.s[w10, 1, vgx4], { z0.b - z3.b }, z10.b[2]
113 // CHECK-ENCODING: [0x39,0xc8,0x5a,0xc1]
114 // CHECK-ERROR: instruction requires: sme2
115 // CHECK-UNKNOWN: c15ac839 <unknown>
117 suvdot za.s[w10, 1], {z0.b - z3.b}, z10.b[2] // 11000001-01011010-11001000-00111001
118 // CHECK-INST: suvdot za.s[w10, 1, vgx4], { z0.b - z3.b }, z10.b[2]
119 // CHECK-ENCODING: [0x39,0xc8,0x5a,0xc1]
120 // CHECK-ERROR: instruction requires: sme2
121 // CHECK-UNKNOWN: c15ac839 <unknown>
123 suvdot za.s[w8, 5, vgx4], {z20.b - z23.b}, z14.b[2] // 11000001-01011110-10001010-10111101
124 // CHECK-INST: suvdot za.s[w8, 5, vgx4], { z20.b - z23.b }, z14.b[2]
125 // CHECK-ENCODING: [0xbd,0x8a,0x5e,0xc1]
126 // CHECK-ERROR: instruction requires: sme2
127 // CHECK-UNKNOWN: c15e8abd <unknown>
129 suvdot za.s[w8, 5], {z20.b - z23.b}, z14.b[2] // 11000001-01011110-10001010-10111101
130 // CHECK-INST: suvdot za.s[w8, 5, vgx4], { z20.b - z23.b }, z14.b[2]
131 // CHECK-ENCODING: [0xbd,0x8a,0x5e,0xc1]
132 // CHECK-ERROR: instruction requires: sme2
133 // CHECK-UNKNOWN: c15e8abd <unknown>
135 suvdot za.s[w11, 2, vgx4], {z8.b - z11.b}, z1.b[1] // 11000001-01010001-11100101-00111010
136 // CHECK-INST: suvdot za.s[w11, 2, vgx4], { z8.b - z11.b }, z1.b[1]
137 // CHECK-ENCODING: [0x3a,0xe5,0x51,0xc1]
138 // CHECK-ERROR: instruction requires: sme2
139 // CHECK-UNKNOWN: c151e53a <unknown>
141 suvdot za.s[w11, 2], {z8.b - z11.b}, z1.b[1] // 11000001-01010001-11100101-00111010
142 // CHECK-INST: suvdot za.s[w11, 2, vgx4], { z8.b - z11.b }, z1.b[1]
143 // CHECK-ENCODING: [0x3a,0xe5,0x51,0xc1]
144 // CHECK-ERROR: instruction requires: sme2
145 // CHECK-UNKNOWN: c151e53a <unknown>
147 suvdot za.s[w9, 7, vgx4], {z12.b - z15.b}, z11.b[2] // 11000001-01011011-10101001-10111111
148 // CHECK-INST: suvdot za.s[w9, 7, vgx4], { z12.b - z15.b }, z11.b[2]
149 // CHECK-ENCODING: [0xbf,0xa9,0x5b,0xc1]
150 // CHECK-ERROR: instruction requires: sme2
151 // CHECK-UNKNOWN: c15ba9bf <unknown>
153 suvdot za.s[w9, 7], {z12.b - z15.b}, z11.b[2] // 11000001-01011011-10101001-10111111
154 // CHECK-INST: suvdot za.s[w9, 7, vgx4], { z12.b - z15.b }, z11.b[2]
155 // CHECK-ENCODING: [0xbf,0xa9,0x5b,0xc1]
156 // CHECK-ERROR: instruction requires: sme2
157 // CHECK-UNKNOWN: c15ba9bf <unknown>