1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme2p2
,+sme-i16i64
< %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
=+sme2p2
,+sme-i16i64
< %s \
6 // RUN
: | llvm-objdump
-d
--mattr
=+sme2p2
,+sme-i16i64
- | FileCheck
%s
--check-prefix
=CHECK-INST
7 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sme2p2
,+sme-i16i64
< %s \
8 // RUN
: | llvm-objdump
-d
--mattr
=-sme2p2
- | 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
=+sme2p2
,+sme-i16i64
< %s \
11 // RUN
: | sed
'/.text/d' | sed
's/.*encoding: //g' \
12 // RUN
: | llvm-mc
-triple
=aarch64
-mattr
=+sme2p2
,+sme-i16i64
-disassemble
-show-encoding \
13 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
15 usmop4a za0.d
, z0.h
, z16.h
// 10100001-11000000-00000000-00001000
16 // CHECK-INST
: usmop4a za0.d
, z0.h
, z16.h
17 // CHECK-ENCODING
: [0x08,0x00,0xc0,0xa1]
18 // CHECK-ERROR
: instruction requires
: sme2p2
19 // CHECK-UNKNOWN
: a1c00008
<unknown
>
21 usmop4a za5.d
, z10.h
, z20.h
// 10100001-11000100-00000001-01001101
22 // CHECK-INST
: usmop4a za5.d
, z10.h
, z20.h
23 // CHECK-ENCODING
: [0x4d,0x01,0xc4,0xa1]
24 // CHECK-ERROR
: instruction requires
: sme2p2
25 // CHECK-UNKNOWN
: a1c4014d
<unknown
>
27 usmop4a za7.d
, z14.h
, z30.h
// 10100001-11001110-00000001-11001111
28 // CHECK-INST
: usmop4a za7.d
, z14.h
, z30.h
29 // CHECK-ENCODING
: [0xcf,0x01,0xce,0xa1]
30 // CHECK-ERROR
: instruction requires
: sme2p2
31 // CHECK-UNKNOWN
: a1ce01cf
<unknown
>
33 usmop4a za0.d
, z0.h
, {z16.h-z17.h
} // 10100001-11010000-00000000-00001000
34 // CHECK-INST
: usmop4a za0.d
, z0.h
, { z16.h
, z17.h
}
35 // CHECK-ENCODING
: [0x08,0x00,0xd0,0xa1]
36 // CHECK-ERROR
: instruction requires
: sme2p2
37 // CHECK-UNKNOWN
: a1d00008
<unknown
>
39 usmop4a za5.d
, z10.h
, {z20.h-z21.h
} // 10100001-11010100-00000001-01001101
40 // CHECK-INST
: usmop4a za5.d
, z10.h
, { z20.h
, z21.h
}
41 // CHECK-ENCODING
: [0x4d,0x01,0xd4,0xa1]
42 // CHECK-ERROR
: instruction requires
: sme2p2
43 // CHECK-UNKNOWN
: a1d4014d
<unknown
>
45 usmop4a za7.d
, z14.h
, {z30.h-z31.h
} // 10100001-11011110-00000001-11001111
46 // CHECK-INST
: usmop4a za7.d
, z14.h
, { z30.h
, z31.h
}
47 // CHECK-ENCODING
: [0xcf,0x01,0xde,0xa1]
48 // CHECK-ERROR
: instruction requires
: sme2p2
49 // CHECK-UNKNOWN
: a1de01cf
<unknown
>
51 usmop4a za0.d
, {z0.h-z1.h
}, z16.h
// 10100001-11000000-00000010-00001000
52 // CHECK-INST
: usmop4a za0.d
, { z0.h
, z1.h
}, z16.h
53 // CHECK-ENCODING
: [0x08,0x02,0xc0,0xa1]
54 // CHECK-ERROR
: instruction requires
: sme2p2
55 // CHECK-UNKNOWN
: a1c00208
<unknown
>
57 usmop4a za5.d
, {z10.h-z11.h
}, z20.h
// 10100001-11000100-00000011-01001101
58 // CHECK-INST
: usmop4a za5.d
, { z10.h
, z11.h
}, z20.h
59 // CHECK-ENCODING
: [0x4d,0x03,0xc4,0xa1]
60 // CHECK-ERROR
: instruction requires
: sme2p2
61 // CHECK-UNKNOWN
: a1c4034d
<unknown
>
63 usmop4a za7.d
, {z14.h-z15.h
}, z30.h
// 10100001-11001110-00000011-11001111
64 // CHECK-INST
: usmop4a za7.d
, { z14.h
, z15.h
}, z30.h
65 // CHECK-ENCODING
: [0xcf,0x03,0xce,0xa1]
66 // CHECK-ERROR
: instruction requires
: sme2p2
67 // CHECK-UNKNOWN
: a1ce03cf
<unknown
>
69 usmop4a za0.d
, {z0.h-z1.h
}, {z16.h-z17.h
} // 10100001-11010000-00000010-00001000
70 // CHECK-INST
: usmop4a za0.d
, { z0.h
, z1.h
}, { z16.h
, z17.h
}
71 // CHECK-ENCODING
: [0x08,0x02,0xd0,0xa1]
72 // CHECK-ERROR
: instruction requires
: sme2p2
73 // CHECK-UNKNOWN
: a1d00208
<unknown
>
75 usmop4a za5.d
, {z10.h-z11.h
}, {z20.h-z21.h
} // 10100001-11010100-00000011-01001101
76 // CHECK-INST
: usmop4a za5.d
, { z10.h
, z11.h
}, { z20.h
, z21.h
}
77 // CHECK-ENCODING
: [0x4d,0x03,0xd4,0xa1]
78 // CHECK-ERROR
: instruction requires
: sme2p2
79 // CHECK-UNKNOWN
: a1d4034d
<unknown
>
81 usmop4a za7.d
, {z14.h-z15.h
}, {z30.h-z31.h
} // 10100001-11011110-00000011-11001111
82 // CHECK-INST
: usmop4a za7.d
, { z14.h
, z15.h
}, { z30.h
, z31.h
}
83 // CHECK-ENCODING
: [0xcf,0x03,0xde,0xa1]
84 // CHECK-ERROR
: instruction requires
: sme2p2
85 // CHECK-UNKNOWN
: a1de03cf
<unknown
>