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
21 fmop4a za0.s
, z0.s
, z16.s
// 10000000-00000000-00000000-00000000
22 // CHECK-INST
: fmop4a za0.s
, z0.s
, z16.s
23 // CHECK-ENCODING
: [0x00,0x00,0x00,0x80]
24 // CHECK-ERROR
: instruction requires
: sme2p2
25 // CHECK-UNKNOWN
: 80000000 <unknown
>
27 fmop4a za3.s
, z12.s
, z24.s
// 10000000-00001000-00000001-10000011
28 // CHECK-INST
: fmop4a za3.s
, z12.s
, z24.s
29 // CHECK-ENCODING
: [0x83,0x01,0x08,0x80]
30 // CHECK-ERROR
: instruction requires
: sme2p2
31 // CHECK-UNKNOWN
: 80080183 <unknown
>
33 fmop4a za3.s
, z14.s
, z30.s
// 10000000-00001110-00000001-11000011
34 // CHECK-INST
: fmop4a za3.s
, z14.s
, z30.s
35 // CHECK-ENCODING
: [0xc3,0x01,0x0e,0x80]
36 // CHECK-ERROR
: instruction requires
: sme2p2
37 // CHECK-UNKNOWN
: 800e01c3
<unknown
>
39 // Single
and multiple vectors
41 fmop4a za0.s
, z0.s
, {z16.s-z17.s
} // 10000000-00010000-00000000-00000000
42 // CHECK-INST
: fmop4a za0.s
, z0.s
, { z16.s
, z17.s
}
43 // CHECK-ENCODING
: [0x00,0x00,0x10,0x80]
44 // CHECK-ERROR
: instruction requires
: sme2p2
45 // CHECK-UNKNOWN
: 80100000 <unknown
>
47 fmop4a za1.s
, z10.s
, {z20.s-z21.s
} // 10000000-00010100-00000001-01000001
48 // CHECK-INST
: fmop4a za1.s
, z10.s
, { z20.s
, z21.s
}
49 // CHECK-ENCODING
: [0x41,0x01,0x14,0x80]
50 // CHECK-ERROR
: instruction requires
: sme2p2
51 // CHECK-UNKNOWN
: 80140141 <unknown
>
53 fmop4a za3.s
, z14.s
, {z30.s-z31.s
} // 10000000-00011110-00000001-11000011
54 // CHECK-INST
: fmop4a za3.s
, z14.s
, { z30.s
, z31.s
}
55 // CHECK-ENCODING
: [0xc3,0x01,0x1e,0x80]
56 // CHECK-ERROR
: instruction requires
: sme2p2
57 // CHECK-UNKNOWN
: 801e01c3
<unknown
>
59 // Multiple
and single vectors
61 fmop4a za0.s
, {z0.s-z1.s
}, z16.s
// 10000000-00000000-00000010-00000000
62 // CHECK-INST
: fmop4a za0.s
, { z0.s
, z1.s
}, z16.s
63 // CHECK-ENCODING
: [0x00,0x02,0x00,0x80]
64 // CHECK-ERROR
: instruction requires
: sme2p2
65 // CHECK-UNKNOWN
: 80000200 <unknown
>
67 fmop4a za1.s
, {z10.s-z11.s
}, z20.s
// 10000000-00000100-00000011-01000001
68 // CHECK-INST
: fmop4a za1.s
, { z10.s
, z11.s
}, z20.s
69 // CHECK-ENCODING
: [0x41,0x03,0x04,0x80]
70 // CHECK-ERROR
: instruction requires
: sme2p2
71 // CHECK-UNKNOWN
: 80040341 <unknown
>
73 fmop4a za3.s
, {z14.s-z15.s
}, z30.s
// 10000000-00001110-00000011-11000011
74 // CHECK-INST
: fmop4a za3.s
, { z14.s
, z15.s
}, z30.s
75 // CHECK-ENCODING
: [0xc3,0x03,0x0e,0x80]
76 // CHECK-ERROR
: instruction requires
: sme2p2
77 // CHECK-UNKNOWN
: 800e03c3
<unknown
>
81 fmop4a za0.s
, {z0.s-z1.s
}, {z16.s-z17.s
} // 10000000-00010000-00000010-00000000
82 // CHECK-INST
: fmop4a za0.s
, { z0.s
, z1.s
}, { z16.s
, z17.s
}
83 // CHECK-ENCODING
: [0x00,0x02,0x10,0x80]
84 // CHECK-ERROR
: instruction requires
: sme2p2
85 // CHECK-UNKNOWN
: 80100200 <unknown
>
87 fmop4a za1.s
, {z10.s-z11.s
}, {z20.s-z21.s
} // 10000000-00010100-00000011-01000001
88 // CHECK-INST
: fmop4a za1.s
, { z10.s
, z11.s
}, { z20.s
, z21.s
}
89 // CHECK-ENCODING
: [0x41,0x03,0x14,0x80]
90 // CHECK-ERROR
: instruction requires
: sme2p2
91 // CHECK-UNKNOWN
: 80140341 <unknown
>
93 fmop4a za3.s
, {z14.s-z15.s
}, {z30.s-z31.s
} // 10000000-00011110-00000011-11000011
94 // CHECK-INST
: fmop4a za3.s
, { z14.s
, z15.s
}, { z30.s
, z31.s
}
95 // CHECK-ENCODING
: [0xc3,0x03,0x1e,0x80]
96 // CHECK-ERROR
: instruction requires
: sme2p2
97 // CHECK-UNKNOWN
: 801e03c3
<unknown
>
103 fmop4s za0.s
, z0.s
, z16.s
// 10000000-00000000-00000000-00010000
104 // CHECK-INST
: fmop4s za0.s
, z0.s
, z16.s
105 // CHECK-ENCODING
: [0x10,0x00,0x00,0x80]
106 // CHECK-ERROR
: instruction requires
: sme2p2
107 // CHECK-UNKNOWN
: 80000010 <unknown
>
109 fmop4s za3.s
, z12.s
, z24.s
// 10000000-00001000-00000001-10010011
110 // CHECK-INST
: fmop4s za3.s
, z12.s
, z24.s
111 // CHECK-ENCODING
: [0x93,0x01,0x08,0x80]
112 // CHECK-ERROR
: instruction requires
: sme2p2
113 // CHECK-UNKNOWN
: 80080193 <unknown
>
115 fmop4s za3.s
, z14.s
, z30.s
// 10000000-00001110-00000001-11010011
116 // CHECK-INST
: fmop4s za3.s
, z14.s
, z30.s
117 // CHECK-ENCODING
: [0xd3,0x01,0x0e,0x80]
118 // CHECK-ERROR
: instruction requires
: sme2p2
119 // CHECK-UNKNOWN
: 800e01d3
<unknown
>
121 // Single
and multiple vectors
123 fmop4s za0.s
, z0.s
, {z16.s-z17.s
} // 10000000-00010000-00000000-00010000
124 // CHECK-INST
: fmop4s za0.s
, z0.s
, { z16.s
, z17.s
}
125 // CHECK-ENCODING
: [0x10,0x00,0x10,0x80]
126 // CHECK-ERROR
: instruction requires
: sme2p2
127 // CHECK-UNKNOWN
: 80100010 <unknown
>
129 fmop4s za1.s
, z10.s
, {z20.s-z21.s
} // 10000000-00010100-00000001-01010001
130 // CHECK-INST
: fmop4s za1.s
, z10.s
, { z20.s
, z21.s
}
131 // CHECK-ENCODING
: [0x51,0x01,0x14,0x80]
132 // CHECK-ERROR
: instruction requires
: sme2p2
133 // CHECK-UNKNOWN
: 80140151 <unknown
>
135 fmop4s za3.s
, z14.s
, {z30.s-z31.s
} // 10000000-00011110-00000001-11010011
136 // CHECK-INST
: fmop4s za3.s
, z14.s
, { z30.s
, z31.s
}
137 // CHECK-ENCODING
: [0xd3,0x01,0x1e,0x80]
138 // CHECK-ERROR
: instruction requires
: sme2p2
139 // CHECK-UNKNOWN
: 801e01d3
<unknown
>
141 // Multiple
and single vectors
143 fmop4s za0.s
, {z0.s-z1.s
}, z16.s
// 10000000-00000000-00000010-00010000
144 // CHECK-INST
: fmop4s za0.s
, { z0.s
, z1.s
}, z16.s
145 // CHECK-ENCODING
: [0x10,0x02,0x00,0x80]
146 // CHECK-ERROR
: instruction requires
: sme2p2
147 // CHECK-UNKNOWN
: 80000210 <unknown
>
149 fmop4s za1.s
, {z10.s-z11.s
}, z20.s
// 10000000-00000100-00000011-01010001
150 // CHECK-INST
: fmop4s za1.s
, { z10.s
, z11.s
}, z20.s
151 // CHECK-ENCODING
: [0x51,0x03,0x04,0x80]
152 // CHECK-ERROR
: instruction requires
: sme2p2
153 // CHECK-UNKNOWN
: 80040351 <unknown
>
155 fmop4s za3.s
, {z14.s-z15.s
}, z30.s
// 10000000-00001110-00000011-11010011
156 // CHECK-INST
: fmop4s za3.s
, { z14.s
, z15.s
}, z30.s
157 // CHECK-ENCODING
: [0xd3,0x03,0x0e,0x80]
158 // CHECK-ERROR
: instruction requires
: sme2p2
159 // CHECK-UNKNOWN
: 800e03d3
<unknown
>
163 fmop4s za0.s
, {z0.s-z1.s
}, {z16.s-z17.s
} // 10000000-00010000-00000010-00010000
164 // CHECK-INST
: fmop4s za0.s
, { z0.s
, z1.s
}, { z16.s
, z17.s
}
165 // CHECK-ENCODING
: [0x10,0x02,0x10,0x80]
166 // CHECK-ERROR
: instruction requires
: sme2p2
167 // CHECK-UNKNOWN
: 80100210 <unknown
>
169 fmop4s za1.s
, {z10.s-z11.s
}, {z20.s-z21.s
} // 10000000-00010100-00000011-01010001
170 // CHECK-INST
: fmop4s za1.s
, { z10.s
, z11.s
}, { z20.s
, z21.s
}
171 // CHECK-ENCODING
: [0x51,0x03,0x14,0x80]
172 // CHECK-ERROR
: instruction requires
: sme2p2
173 // CHECK-UNKNOWN
: 80140351 <unknown
>
175 fmop4s za3.s
, {z14.s-z15.s
}, {z30.s-z31.s
} // 10000000-00011110-00000011-11010011
176 // CHECK-INST
: fmop4s za3.s
, { z14.s
, z15.s
}, { z30.s
, z31.s
}
177 // CHECK-ENCODING
: [0xd3,0x03,0x1e,0x80]
178 // CHECK-ERROR
: instruction requires
: sme2p2
179 // CHECK-UNKNOWN
: 801e03d3
<unknown
>