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 sumop4s za0.d
, z0.h
, z16.h
// 10100000-11100000-00000000-00011000
16 // CHECK-INST
: sumop4s za0.d
, z0.h
, z16.h
17 // CHECK-ENCODING
: [0x18,0x00,0xe0,0xa0]
18 // CHECK-ERROR
: instruction requires
: sme2p2
19 // CHECK-UNKNOWN
: a0e00018
<unknown
>
21 sumop4s za5.d
, z10.h
, z20.h
// 10100000-11100100-00000001-01011101
22 // CHECK-INST
: sumop4s za5.d
, z10.h
, z20.h
23 // CHECK-ENCODING
: [0x5d,0x01,0xe4,0xa0]
24 // CHECK-ERROR
: instruction requires
: sme2p2
25 // CHECK-UNKNOWN
: a0e4015d
<unknown
>
27 sumop4s za7.d
, z14.h
, z30.h
// 10100000-11101110-00000001-11011111
28 // CHECK-INST
: sumop4s za7.d
, z14.h
, z30.h
29 // CHECK-ENCODING
: [0xdf,0x01,0xee,0xa0]
30 // CHECK-ERROR
: instruction requires
: sme2p2
31 // CHECK-UNKNOWN
: a0ee01df
<unknown
>
33 sumop4s za0.d
, z0.h
, {z16.h-z17.h
} // 10100000-11110000-00000000-00011000
34 // CHECK-INST
: sumop4s za0.d
, z0.h
, { z16.h
, z17.h
}
35 // CHECK-ENCODING
: [0x18,0x00,0xf0,0xa0]
36 // CHECK-ERROR
: instruction requires
: sme2p2
37 // CHECK-UNKNOWN
: a0f00018
<unknown
>
39 sumop4s za5.d
, z10.h
, {z20.h-z21.h
} // 10100000-11110100-00000001-01011101
40 // CHECK-INST
: sumop4s za5.d
, z10.h
, { z20.h
, z21.h
}
41 // CHECK-ENCODING
: [0x5d,0x01,0xf4,0xa0]
42 // CHECK-ERROR
: instruction requires
: sme2p2
43 // CHECK-UNKNOWN
: a0f4015d
<unknown
>
45 sumop4s za7.d
, z14.h
, {z30.h-z31.h
} // 10100000-11111110-00000001-11011111
46 // CHECK-INST
: sumop4s za7.d
, z14.h
, { z30.h
, z31.h
}
47 // CHECK-ENCODING
: [0xdf,0x01,0xfe,0xa0]
48 // CHECK-ERROR
: instruction requires
: sme2p2
49 // CHECK-UNKNOWN
: a0fe01df
<unknown
>
51 sumop4s za0.d
, {z0.h-z1.h
}, z16.h
// 10100000-11100000-00000010-00011000
52 // CHECK-INST
: sumop4s za0.d
, { z0.h
, z1.h
}, z16.h
53 // CHECK-ENCODING
: [0x18,0x02,0xe0,0xa0]
54 // CHECK-ERROR
: instruction requires
: sme2p2
55 // CHECK-UNKNOWN
: a0e00218
<unknown
>
57 sumop4s za5.d
, {z10.h-z11.h
}, z20.h
// 10100000-11100100-00000011-01011101
58 // CHECK-INST
: sumop4s za5.d
, { z10.h
, z11.h
}, z20.h
59 // CHECK-ENCODING
: [0x5d,0x03,0xe4,0xa0]
60 // CHECK-ERROR
: instruction requires
: sme2p2
61 // CHECK-UNKNOWN
: a0e4035d
<unknown
>
63 sumop4s za7.d
, {z14.h-z15.h
}, z30.h
// 10100000-11101110-00000011-11011111
64 // CHECK-INST
: sumop4s za7.d
, { z14.h
, z15.h
}, z30.h
65 // CHECK-ENCODING
: [0xdf,0x03,0xee,0xa0]
66 // CHECK-ERROR
: instruction requires
: sme2p2
67 // CHECK-UNKNOWN
: a0ee03df
<unknown
>
69 sumop4s za0.d
, {z0.h-z1.h
}, {z16.h-z17.h
} // 10100000-11110000-00000010-00011000
70 // CHECK-INST
: sumop4s za0.d
, { z0.h
, z1.h
}, { z16.h
, z17.h
}
71 // CHECK-ENCODING
: [0x18,0x02,0xf0,0xa0]
72 // CHECK-ERROR
: instruction requires
: sme2p2
73 // CHECK-UNKNOWN
: a0f00218
<unknown
>
75 sumop4s za5.d
, {z10.h-z11.h
}, {z20.h-z21.h
} // 10100000-11110100-00000011-01011101
76 // CHECK-INST
: sumop4s za5.d
, { z10.h
, z11.h
}, { z20.h
, z21.h
}
77 // CHECK-ENCODING
: [0x5d,0x03,0xf4,0xa0]
78 // CHECK-ERROR
: instruction requires
: sme2p2
79 // CHECK-UNKNOWN
: a0f4035d
<unknown
>
81 sumop4s za7.d
, {z14.h-z15.h
}, {z30.h-z31.h
} // 10100000-11111110-00000011-11011111
82 // CHECK-INST
: sumop4s za7.d
, { z14.h
, z15.h
}, { z30.h
, z31.h
}
83 // CHECK-ENCODING
: [0xdf,0x03,0xfe,0xa0]
84 // CHECK-ERROR
: instruction requires
: sme2p2
85 // CHECK-UNKNOWN
: a0fe03df
<unknown
>