1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve
< %s \
2 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
3 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme
< %s \
4 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
5 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
< %s
2>&1 \
6 // RUN
: | FileCheck
%s
--check-prefix
=CHECK-ERROR
7 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve
< %s \
8 // RUN
: | llvm-objdump
--no-print-imm-hex
-d
--mattr
=+sve
- | FileCheck
%s
--check-prefix
=CHECK-INST
9 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve
< %s \
10 // RUN
: | llvm-objdump
--no-print-imm-hex
-d
--mattr
=-sve
- | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
13 cmpne p0.
b, p0
/z
, z0.
b, z0.
b
14 // CHECK-INST
: cmpne p0.
b, p0
/z
, z0.
b, z0.
b
15 // CHECK-ENCODING
: [0x10,0xa0,0x00,0x24]
16 // CHECK-ERROR
: instruction requires
: sve
or sme
17 // CHECK-UNKNOWN
: 2400a010
<unknown
>
19 cmpne p0.h
, p0
/z
, z0.h
, z0.h
20 // CHECK-INST
: cmpne p0.h
, p0
/z
, z0.h
, z0.h
21 // CHECK-ENCODING
: [0x10,0xa0,0x40,0x24]
22 // CHECK-ERROR
: instruction requires
: sve
or sme
23 // CHECK-UNKNOWN
: 2440a010
<unknown
>
25 cmpne p0.s
, p0
/z
, z0.s
, z0.s
26 // CHECK-INST
: cmpne p0.s
, p0
/z
, z0.s
, z0.s
27 // CHECK-ENCODING
: [0x10,0xa0,0x80,0x24]
28 // CHECK-ERROR
: instruction requires
: sve
or sme
29 // CHECK-UNKNOWN
: 2480a010
<unknown
>
31 cmpne p0.d
, p0
/z
, z0.d
, z0.d
32 // CHECK-INST
: cmpne p0.d
, p0
/z
, z0.d
, z0.d
33 // CHECK-ENCODING
: [0x10,0xa0,0xc0,0x24]
34 // CHECK-ERROR
: instruction requires
: sve
or sme
35 // CHECK-UNKNOWN
: 24c0a010
<unknown
>
37 cmpne p0.
b, p0
/z
, z0.
b, z0.d
38 // CHECK-INST
: cmpne p0.
b, p0
/z
, z0.
b, z0.d
39 // CHECK-ENCODING
: [0x10,0x20,0x00,0x24]
40 // CHECK-ERROR
: instruction requires
: sve
or sme
41 // CHECK-UNKNOWN
: 24002010 <unknown
>
43 cmpne p0.h
, p0
/z
, z0.h
, z0.d
44 // CHECK-INST
: cmpne p0.h
, p0
/z
, z0.h
, z0.d
45 // CHECK-ENCODING
: [0x10,0x20,0x40,0x24]
46 // CHECK-ERROR
: instruction requires
: sve
or sme
47 // CHECK-UNKNOWN
: 24402010 <unknown
>
49 cmpne p0.s
, p0
/z
, z0.s
, z0.d
50 // CHECK-INST
: cmpne p0.s
, p0
/z
, z0.s
, z0.d
51 // CHECK-ENCODING
: [0x10,0x20,0x80,0x24]
52 // CHECK-ERROR
: instruction requires
: sve
or sme
53 // CHECK-UNKNOWN
: 24802010 <unknown
>
55 cmpne p0.
b, p0
/z
, z0.
b, #-16
56 // CHECK-INST
: cmpne p0.
b, p0
/z
, z0.
b, #-16
57 // CHECK-ENCODING
: [0x10,0x80,0x10,0x25]
58 // CHECK-ERROR
: instruction requires
: sve
or sme
59 // CHECK-UNKNOWN
: 25108010 <unknown
>
61 cmpne p0.h
, p0
/z
, z0.h
, #-16
62 // CHECK-INST
: cmpne p0.h
, p0
/z
, z0.h
, #-16
63 // CHECK-ENCODING
: [0x10,0x80,0x50,0x25]
64 // CHECK-ERROR
: instruction requires
: sve
or sme
65 // CHECK-UNKNOWN
: 25508010 <unknown
>
67 cmpne p0.s
, p0
/z
, z0.s
, #-16
68 // CHECK-INST
: cmpne p0.s
, p0
/z
, z0.s
, #-16
69 // CHECK-ENCODING
: [0x10,0x80,0x90,0x25]
70 // CHECK-ERROR
: instruction requires
: sve
or sme
71 // CHECK-UNKNOWN
: 25908010 <unknown
>
73 cmpne p0.d
, p0
/z
, z0.d
, #-16
74 // CHECK-INST
: cmpne p0.d
, p0
/z
, z0.d
, #-16
75 // CHECK-ENCODING
: [0x10,0x80,0xd0,0x25]
76 // CHECK-ERROR
: instruction requires
: sve
or sme
77 // CHECK-UNKNOWN
: 25d08010
<unknown
>
79 cmpne p0.
b, p0
/z
, z0.
b, #15
80 // CHECK-INST
: cmpne p0.
b, p0
/z
, z0.
b, #15
81 // CHECK-ENCODING
: [0x10,0x80,0x0f,0x25]
82 // CHECK-ERROR
: instruction requires
: sve
or sme
83 // CHECK-UNKNOWN
: 250f8010
<unknown
>
85 cmpne p0.h
, p0
/z
, z0.h
, #15
86 // CHECK-INST
: cmpne p0.h
, p0
/z
, z0.h
, #15
87 // CHECK-ENCODING
: [0x10,0x80,0x4f,0x25]
88 // CHECK-ERROR
: instruction requires
: sve
or sme
89 // CHECK-UNKNOWN
: 254f8010
<unknown
>
91 cmpne p0.s
, p0
/z
, z0.s
, #15
92 // CHECK-INST
: cmpne p0.s
, p0
/z
, z0.s
, #15
93 // CHECK-ENCODING
: [0x10,0x80,0x8f,0x25]
94 // CHECK-ERROR
: instruction requires
: sve
or sme
95 // CHECK-UNKNOWN
: 258f8010
<unknown
>
97 cmpne p0.d
, p0
/z
, z0.d
, #15
98 // CHECK-INST
: cmpne p0.d
, p0
/z
, z0.d
, #15
99 // CHECK-ENCODING
: [0x10,0x80,0xcf,0x25]
100 // CHECK-ERROR
: instruction requires
: sve
or sme
101 // CHECK-UNKNOWN
: 25cf8010
<unknown
>