1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve2
< %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
=+sve2
< %s \
6 // RUN
: | llvm-objdump
-d
-mattr
=+sve2
- | FileCheck
%s
--check-prefix
=CHECK-INST
7 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve2
< %s \
8 // RUN
: | llvm-objdump
-d
- | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
10 srshr z0.
b, p0
/m
, z0.
b, #1
11 // CHECK-INST
: srshr z0.
b, p0
/m
, z0.
b, #1
12 // CHECK-ENCODING
: [0xe0,0x81,0x0c,0x04]
13 // CHECK-ERROR
: instruction requires
: sve2
14 // CHECK-UNKNOWN
: e0
81 0c
04 <unknown
>
16 srshr z31.
b, p0
/m
, z31.
b, #8
17 // CHECK-INST
: srshr z31.
b, p0
/m
, z31.
b, #8
18 // CHECK-ENCODING
: [0x1f,0x81,0x0c,0x04]
19 // CHECK-ERROR
: instruction requires
: sve2
20 // CHECK-UNKNOWN
: 1f
81 0c
04 <unknown
>
22 srshr z0.h
, p0
/m
, z0.h
, #1
23 // CHECK-INST
: srshr z0.h
, p0
/m
, z0.h
, #1
24 // CHECK-ENCODING
: [0xe0,0x83,0x0c,0x04]
25 // CHECK-ERROR
: instruction requires
: sve2
26 // CHECK-UNKNOWN
: e0
83 0c
04 <unknown
>
28 srshr z31.h
, p0
/m
, z31.h
, #16
29 // CHECK-INST
: srshr z31.h
, p0
/m
, z31.h
, #16
30 // CHECK-ENCODING
: [0x1f,0x82,0x0c,0x04]
31 // CHECK-ERROR
: instruction requires
: sve2
32 // CHECK-UNKNOWN
: 1f
82 0c
04 <unknown
>
34 srshr z0.s
, p0
/m
, z0.s
, #1
35 // CHECK-INST
: srshr z0.s
, p0
/m
, z0.s
, #1
36 // CHECK-ENCODING
: [0xe0,0x83,0x4c,0x04]
37 // CHECK-ERROR
: instruction requires
: sve2
38 // CHECK-UNKNOWN
: e0
83 4c
04 <unknown
>
40 srshr z31.s
, p0
/m
, z31.s
, #32
41 // CHECK-INST
: srshr z31.s
, p0
/m
, z31.s
, #32
42 // CHECK-ENCODING
: [0x1f,0x80,0x4c,0x04]
43 // CHECK-ERROR
: instruction requires
: sve2
44 // CHECK-UNKNOWN
: 1f
80 4c
04 <unknown
>
46 srshr z0.d
, p0
/m
, z0.d
, #1
47 // CHECK-INST
: srshr z0.d
, p0
/m
, z0.d
, #1
48 // CHECK-ENCODING
: [0xe0,0x83,0xcc,0x04]
49 // CHECK-ERROR
: instruction requires
: sve2
50 // CHECK-UNKNOWN
: e0
83 cc
04 <unknown
>
52 srshr z31.d
, p0
/m
, z31.d
, #64
53 // CHECK-INST
: srshr z31.d
, p0
/m
, z31.d
, #64
54 // CHECK-ENCODING
: [0x1f,0x80,0x8c,0x04]
55 // CHECK-ERROR
: instruction requires
: sve2
56 // CHECK-UNKNOWN
: 1f
80 8c
04 <unknown
>
59 // --------------------------------------------------------------------------//
60 // Test compatibility with MOVPRFX instruction.
62 movprfx z31.d
, p0
/z
, z6.d
63 // CHECK-INST
: movprfx z31.d
, p0
/z
, z6.d
64 // CHECK-ENCODING
: [0xdf,0x20,0xd0,0x04]
65 // CHECK-ERROR
: instruction requires
: sve
66 // CHECK-UNKNOWN
: df
20 d0
04 <unknown
>
68 srshr z31.d
, p0
/m
, z31.d
, #64
69 // CHECK-INST
: srshr z31.d
, p0
/m
, z31.d
, #64
70 // CHECK-ENCODING
: [0x1f,0x80,0x8c,0x04]
71 // CHECK-ERROR
: instruction requires
: sve2
72 // CHECK-UNKNOWN
: 1f
80 8c
04 <unknown
>
75 // CHECK-INST
: movprfx z31
, z6
76 // CHECK-ENCODING
: [0xdf,0xbc,0x20,0x04]
77 // CHECK-ERROR
: instruction requires
: sve
78 // CHECK-UNKNOWN
: df
bc 20 04 <unknown
>
80 srshr z31.d
, p0
/m
, z31.d
, #64
81 // CHECK-INST
: srshr z31.d
, p0
/m
, z31.d
, #64
82 // CHECK-ENCODING
: [0x1f,0x80,0x8c,0x04]
83 // CHECK-ERROR
: instruction requires
: sve2
84 // CHECK-UNKNOWN
: 1f
80 8c
04 <unknown
>