1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme2
,+fp8
< %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
,+fp8
< %s \
6 // RUN
: | llvm-objdump
-d
--mattr
=+sme2
,+fp8
- | FileCheck
%s
--check-prefix
=CHECK-INST
7 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sme2
,+fp8
< %s \
8 // RUN
: | llvm-objdump
-d
--mattr
=-sme2
- | 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
=+sme2
,+fp8
< %s \
11 // RUN
: | sed
'/.text/d' | sed
's/.*encoding: //g' \
12 // RUN
: | llvm-mc
-triple
=aarch64
-mattr
=+sme2
,+fp8
-disassemble
-show-encoding \
13 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
15 f1cvt
{z0.h-z1.h
}, z0.
b // 11000001-00100110-11100000-00000000
16 // CHECK-INST
: f1cvt
{ z0.h
, z1.h
}, z0.
b
17 // CHECK-ENCODING
: [0x00,0xe0,0x26,0xc1]
18 // CHECK-ERROR
: instruction requires
: fp8 sme2
19 // CHECK-UNKNOWN
: c126e000
<unknown
>
21 f1cvt
{z30.h-z31.h
}, z31.
b // 11000001-00100110-11100011-11111110
22 // CHECK-INST
: f1cvt
{ z30.h
, z31.h
}, z31.
b
23 // CHECK-ENCODING
: [0xfe,0xe3,0x26,0xc1]
24 // CHECK-ERROR
: instruction requires
: fp8 sme2
25 // CHECK-UNKNOWN
: c126e3fe
<unknown
>
27 f1cvtl
{z0.h-z1.h
}, z0.
b // 11000001-00100110-11100000-00000001
28 // CHECK-INST
: f1cvtl
{ z0.h
, z1.h
}, z0.
b
29 // CHECK-ENCODING
: [0x01,0xe0,0x26,0xc1]
30 // CHECK-ERROR
: instruction requires
: fp8 sme2
31 // CHECK-UNKNOWN
: c126e001
<unknown
>
33 f1cvtl
{z30.h-z31.h
}, z31.
b // 11000001-00100110-11100011-11111111
34 // CHECK-INST
: f1cvtl
{ z30.h
, z31.h
}, z31.
b
35 // CHECK-ENCODING
: [0xff,0xe3,0x26,0xc1]
36 // CHECK-ERROR
: instruction requires
: fp8 sme2
37 // CHECK-UNKNOWN
: c126e3ff
<unknown
>
39 bf1cvt
{z0.h-z1.h
}, z0.
b // 11000001-01100110-11100000-00000000
40 // CHECK-INST
: bf1cvt
{ z0.h
, z1.h
}, z0.
b
41 // CHECK-ENCODING
: [0x00,0xe0,0x66,0xc1]
42 // CHECK-ERROR
: instruction requires
: fp8 sme2
43 // CHECK-UNKNOWN
: c166e000
<unknown
>
45 bf1cvt
{z30.h-z31.h
}, z31.
b // 11000001-01100110-11100011-11111110
46 // CHECK-INST
: bf1cvt
{ z30.h
, z31.h
}, z31.
b
47 // CHECK-ENCODING
: [0xfe,0xe3,0x66,0xc1]
48 // CHECK-ERROR
: instruction requires
: fp8 sme2
49 // CHECK-UNKNOWN
: c166e3fe
<unknown
>
51 bf1cvtl
{z0.h-z1.h
}, z0.
b // 11000001-01100110-11100000-00000001
52 // CHECK-INST
: bf1cvtl
{ z0.h
, z1.h
}, z0.
b
53 // CHECK-ENCODING
: [0x01,0xe0,0x66,0xc1]
54 // CHECK-ERROR
: instruction requires
: fp8 sme2
55 // CHECK-UNKNOWN
: c166e001
<unknown
>
57 bf1cvtl
{z30.h-z31.h
}, z31.
b // 11000001-01100110-11100011-11111111
58 // CHECK-INST
: bf1cvtl
{ z30.h
, z31.h
}, z31.
b
59 // CHECK-ENCODING
: [0xff,0xe3,0x66,0xc1]
60 // CHECK-ERROR
: instruction requires
: fp8 sme2
61 // CHECK-UNKNOWN
: c166e3ff
<unknown
>
63 bf2cvt
{z0.h-z1.h
}, z0.
b // 11000001-11100110-11100000-00000000
64 // CHECK-INST
: bf2cvt
{ z0.h
, z1.h
}, z0.
b
65 // CHECK-ENCODING
: [0x00,0xe0,0xe6,0xc1]
66 // CHECK-ERROR
: instruction requires
: fp8 sme2
67 // CHECK-UNKNOWN
: c1e6e000
<unknown
>
69 bf2cvt
{z30.h-z31.h
}, z31.
b // 11000001-11100110-11100011-11111110
70 // CHECK-INST
: bf2cvt
{ z30.h
, z31.h
}, z31.
b
71 // CHECK-ENCODING
: [0xfe,0xe3,0xe6,0xc1]
72 // CHECK-ERROR
: instruction requires
: fp8 sme2
73 // CHECK-UNKNOWN
: c1e6e3fe
<unknown
>
75 bf2cvtl
{z0.h-z1.h
}, z0.
b // 11000001-11100110-11100000-00000001
76 // CHECK-INST
: bf2cvtl
{ z0.h
, z1.h
}, z0.
b
77 // CHECK-ENCODING
: [0x01,0xe0,0xe6,0xc1]
78 // CHECK-ERROR
: instruction requires
: fp8 sme2
79 // CHECK-UNKNOWN
: c1e6e001
<unknown
>
81 bf2cvtl
{z30.h-z31.h
}, z31.
b // 11000001-11100110-11100011-11111111
82 // CHECK-INST
: bf2cvtl
{ z30.h
, z31.h
}, z31.
b
83 // CHECK-ENCODING
: [0xff,0xe3,0xe6,0xc1]
84 // CHECK-ERROR
: instruction requires
: fp8 sme2
85 // CHECK-UNKNOWN
: c1e6e3ff
<unknown
>
87 f2cvt
{z0.h-z1.h
}, z0.
b // 11000001-10100110-11100000-00000000
88 // CHECK-INST
: f2cvt
{ z0.h
, z1.h
}, z0.
b
89 // CHECK-ENCODING
: [0x00,0xe0,0xa6,0xc1]
90 // CHECK-ERROR
: instruction requires
: fp8 sme2
91 // CHECK-UNKNOWN
: c1a6e000
<unknown
>
93 f2cvt
{z30.h-z31.h
}, z31.
b // 11000001-10100110-11100011-11111110
94 // CHECK-INST
: f2cvt
{ z30.h
, z31.h
}, z31.
b
95 // CHECK-ENCODING
: [0xfe,0xe3,0xa6,0xc1]
96 // CHECK-ERROR
: instruction requires
: fp8 sme2
97 // CHECK-UNKNOWN
: c1a6e3fe
<unknown
>
99 f2cvtl
{z0.h-z1.h
}, z0.
b // 11000001-10100110-11100000-00000001
100 // CHECK-INST
: f2cvtl
{ z0.h
, z1.h
}, z0.
b
101 // CHECK-ENCODING
: [0x01,0xe0,0xa6,0xc1]
102 // CHECK-ERROR
: instruction requires
: fp8 sme2
103 // CHECK-UNKNOWN
: c1a6e001
<unknown
>
105 f2cvtl
{z30.h-z31.h
}, z31.
b // 11000001-10100110-11100011-11111111
106 // CHECK-INST
: f2cvtl
{ z30.h
, z31.h
}, z31.
b
107 // CHECK-ENCODING
: [0xff,0xe3,0xa6,0xc1]
108 // CHECK-ERROR
: instruction requires
: fp8 sme2
109 // CHECK-UNKNOWN
: c1a6e3ff
<unknown
>
111 fcvt z0.
b, {z0.h-z1.h
} // 11000001-00100100-11100000-00000000
112 // CHECK-INST
: fcvt z0.
b, { z0.h
, z1.h
}
113 // CHECK-ENCODING
: [0x00,0xe0,0x24,0xc1]
114 // CHECK-ERROR
: instruction requires
: fp8 sme2
115 // CHECK-UNKNOWN
: c124e000
<unknown
>
117 fcvt z31.
b, {z30.h-z31.h
} // 11000001-00100100-11100011-11011111
118 // CHECK-INST
: fcvt z31.
b, { z30.h
, z31.h
}
119 // CHECK-ENCODING
: [0xdf,0xe3,0x24,0xc1]
120 // CHECK-ERROR
: instruction requires
: fp8 sme2
121 // CHECK-UNKNOWN
: c124e3df
<unknown
>
123 fcvt z0.
b, {z0.s-z3.s
} // 11000001-00110100-11100000-00000000
124 // CHECK-INST
: fcvt z0.
b, { z0.s
- z3.s
}
125 // CHECK-ENCODING
: [0x00,0xe0,0x34,0xc1]
126 // CHECK-ERROR
: instruction requires
: fp8 sme2
127 // CHECK-UNKNOWN
: c134e000
<unknown
>
129 fcvt z31.
b, {z28.s-z31.s
} // 11000001-00110100-11100011-10011111
130 // CHECK-INST
: fcvt z31.
b, { z28.s
- z31.s
}
131 // CHECK-ENCODING
: [0x9f,0xe3,0x34,0xc1]
132 // CHECK-ERROR
: instruction requires
: fp8 sme2
133 // CHECK-UNKNOWN
: c134e39f
<unknown
>
135 fcvtn z0.
b, {z0.s-z3.s
} // 11000001-00110100-11100000-00100000
136 // CHECK-INST
: fcvtn z0.
b, { z0.s
- z3.s
}
137 // CHECK-ENCODING
: [0x20,0xe0,0x34,0xc1]
138 // CHECK-ERROR
: instruction requires
: fp8 sme2
139 // CHECK-UNKNOWN
: c134e020
<unknown
>
141 fcvtn z31.
b, {z28.s-z31.s
} // 11000001-00110100-11100011-10111111
142 // CHECK-INST
: fcvtn z31.
b, { z28.s
- z31.s
}
143 // CHECK-ENCODING
: [0xbf,0xe3,0x34,0xc1]
144 // CHECK-ERROR
: instruction requires
: fp8 sme2
145 // CHECK-UNKNOWN
: c134e3bf
<unknown
>
147 bfcvt z0.
b, {z0.h-z1.h
} // 11000001-01100100-11100000-00000000
148 // CHECK-INST
: bfcvt z0.
b, { z0.h
, z1.h
}
149 // CHECK-ENCODING
: [0x00,0xe0,0x64,0xc1]
150 // CHECK-ERROR
: instruction requires
: fp8 sme2
151 // CHECK-UNKNOWN
: c164e000
<unknown
>
153 bfcvt z31.
b, {z30.h-z31.h
} // 11000001-01100100-11100011-11011111
154 // CHECK-INST
: bfcvt z31.
b, { z30.h
, z31.h
}
155 // CHECK-ENCODING
: [0xdf,0xe3,0x64,0xc1]
156 // CHECK-ERROR
: instruction requires
: fp8 sme2
157 // CHECK-UNKNOWN
: c164e3df
<unknown
>