1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve
< %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
=+sve
< %s \
6 // RUN
: | llvm-objdump
-d
-mattr
=+sve
- | FileCheck
%s
--check-prefix
=CHECK-INST
7 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve
< %s \
8 // RUN
: | llvm-objdump
-d
- | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
10 fadd z0.h
, p0
/m
, z0.h
, #0.500000000000000
11 // CHECK-INST
: fadd z0.h
, p0
/m
, z0.h
, #0.5
12 // CHECK-ENCODING
: [0x00,0x80,0x58,0x65]
13 // CHECK-ERROR
: instruction requires
: sve
14 // CHECK-UNKNOWN
: 00 80 58 65 <unknown
>
16 fadd z0.h
, p0
/m
, z0.h
, #0.5
17 // CHECK-INST
: fadd z0.h
, p0
/m
, z0.h
, #0.5
18 // CHECK-ENCODING
: [0x00,0x80,0x58,0x65]
19 // CHECK-ERROR
: instruction requires
: sve
20 // CHECK-UNKNOWN
: 00 80 58 65 <unknown
>
22 fadd z0.s
, p0
/m
, z0.s
, #0.5
23 // CHECK-INST
: fadd z0.s
, p0
/m
, z0.s
, #0.5
24 // CHECK-ENCODING
: [0x00,0x80,0x98,0x65]
25 // CHECK-ERROR
: instruction requires
: sve
26 // CHECK-UNKNOWN
: 00 80 98 65 <unknown
>
28 fadd z0.d
, p0
/m
, z0.d
, #0.5
29 // CHECK-INST
: fadd z0.d
, p0
/m
, z0.d
, #0.5
30 // CHECK-ENCODING
: [0x00,0x80,0xd8,0x65]
31 // CHECK-ERROR
: instruction requires
: sve
32 // CHECK-UNKNOWN
: 00 80 d8
65 <unknown
>
34 fadd z31.h
, p7
/m
, z31.h
, #1.000000000000000
35 // CHECK-INST
: fadd z31.h
, p7
/m
, z31.h
, #1.0
36 // CHECK-ENCODING
: [0x3f,0x9c,0x58,0x65]
37 // CHECK-ERROR
: instruction requires
: sve
38 // CHECK-UNKNOWN
: 3f
9c
58 65 <unknown
>
40 fadd z31.h
, p7
/m
, z31.h
, #1.0
41 // CHECK-INST
: fadd z31.h
, p7
/m
, z31.h
, #1.0
42 // CHECK-ENCODING
: [0x3f,0x9c,0x58,0x65]
43 // CHECK-ERROR
: instruction requires
: sve
44 // CHECK-UNKNOWN
: 3f
9c
58 65 <unknown
>
46 fadd z31.s
, p7
/m
, z31.s
, #1.0
47 // CHECK-INST
: fadd z31.s
, p7
/m
, z31.s
, #1.0
48 // CHECK-ENCODING
: [0x3f,0x9c,0x98,0x65]
49 // CHECK-ERROR
: instruction requires
: sve
50 // CHECK-UNKNOWN
: 3f
9c
98 65 <unknown
>
52 fadd z31.d
, p7
/m
, z31.d
, #1.0
53 // CHECK-INST
: fadd z31.d
, p7
/m
, z31.d
, #1.0
54 // CHECK-ENCODING
: [0x3f,0x9c,0xd8,0x65]
55 // CHECK-ERROR
: instruction requires
: sve
56 // CHECK-UNKNOWN
: 3f
9c d8
65 <unknown
>
58 fadd z0.h
, p7
/m
, z0.h
, z31.h
59 // CHECK-INST
: fadd z0.h
, p7
/m
, z0.h
, z31.h
60 // CHECK-ENCODING
: [0xe0,0x9f,0x40,0x65]
61 // CHECK-ERROR
: instruction requires
: sve
62 // CHECK-UNKNOWN
: e0
9f
40 65 <unknown
>
64 fadd z0.s
, p7
/m
, z0.s
, z31.s
65 // CHECK-INST
: fadd z0.s
, p7
/m
, z0.s
, z31.s
66 // CHECK-ENCODING
: [0xe0,0x9f,0x80,0x65]
67 // CHECK-ERROR
: instruction requires
: sve
68 // CHECK-UNKNOWN
: e0
9f
80 65 <unknown
>
70 fadd z0.d
, p7
/m
, z0.d
, z31.d
71 // CHECK-INST
: fadd z0.d
, p7
/m
, z0.d
, z31.d
72 // CHECK-ENCODING
: [0xe0,0x9f,0xc0,0x65]
73 // CHECK-ERROR
: instruction requires
: sve
74 // CHECK-UNKNOWN
: e0
9f c0
65 <unknown
>
76 fadd z0.h
, z1.h
, z31.h
77 // CHECK-INST
: fadd z0.h
, z1.h
, z31.h
78 // CHECK-ENCODING
: [0x20,0x00,0x5f,0x65]
79 // CHECK-ERROR
: instruction requires
: sve
80 // CHECK-UNKNOWN
: 20 00 5f
65 <unknown
>
82 fadd z0.s
, z1.s
, z31.s
83 // CHECK-INST
: fadd z0.s
, z1.s
, z31.s
84 // CHECK-ENCODING
: [0x20,0x00,0x9f,0x65]
85 // CHECK-ERROR
: instruction requires
: sve
86 // CHECK-UNKNOWN
: 20 00 9f
65 <unknown
>
88 fadd z0.d
, z1.d
, z31.d
89 // CHECK-INST
: fadd z0.d
, z1.d
, z31.d
90 // CHECK-ENCODING
: [0x20,0x00,0xdf,0x65]
91 // CHECK-ERROR
: instruction requires
: sve
92 // CHECK-UNKNOWN
: 20 00 df
65 <unknown
>
95 // --------------------------------------------------------------------------//
96 // Test compatibility with MOVPRFX instruction.
98 movprfx z31.d
, p7
/z
, z6.d
99 // CHECK-INST
: movprfx z31.d
, p7
/z
, z6.d
100 // CHECK-ENCODING
: [0xdf,0x3c,0xd0,0x04]
101 // CHECK-ERROR
: instruction requires
: sve
102 // CHECK-UNKNOWN
: df
3c d0
04 <unknown
>
104 fadd z31.d
, p7
/m
, z31.d
, #1.0
105 // CHECK-INST
: fadd z31.d
, p7
/m
, z31.d
, #1.0
106 // CHECK-ENCODING
: [0x3f,0x9c,0xd8,0x65]
107 // CHECK-ERROR
: instruction requires
: sve
108 // CHECK-UNKNOWN
: 3f
9c d8
65 <unknown
>
111 // CHECK-INST
: movprfx z31
, z6
112 // CHECK-ENCODING
: [0xdf,0xbc,0x20,0x04]
113 // CHECK-ERROR
: instruction requires
: sve
114 // CHECK-UNKNOWN
: df
bc 20 04 <unknown
>
116 fadd z31.d
, p7
/m
, z31.d
, #1.0
117 // CHECK-INST
: fadd z31.d
, p7
/m
, z31.d
, #1.0
118 // CHECK-ENCODING
: [0x3f,0x9c,0xd8,0x65]
119 // CHECK-ERROR
: instruction requires
: sve
120 // CHECK-UNKNOWN
: 3f
9c d8
65 <unknown
>
122 movprfx z0.d
, p7
/z
, z7.d
123 // CHECK-INST
: movprfx z0.d
, p7
/z
, z7.d
124 // CHECK-ENCODING
: [0xe0,0x3c,0xd0,0x04]
125 // CHECK-ERROR
: instruction requires
: sve
126 // CHECK-UNKNOWN
: e0
3c d0
04 <unknown
>
128 fadd z0.d
, p7
/m
, z0.d
, z31.d
129 // CHECK-INST
: fadd z0.d
, p7
/m
, z0.d
, z31.d
130 // CHECK-ENCODING
: [0xe0,0x9f,0xc0,0x65]
131 // CHECK-ERROR
: instruction requires
: sve
132 // CHECK-UNKNOWN
: e0
9f c0
65 <unknown
>
135 // CHECK-INST
: movprfx z0
, z7
136 // CHECK-ENCODING
: [0xe0,0xbc,0x20,0x04]
137 // CHECK-ERROR
: instruction requires
: sve
138 // CHECK-UNKNOWN
: e0
bc 20 04 <unknown
>
140 fadd z0.d
, p7
/m
, z0.d
, z31.d
141 // CHECK-INST
: fadd z0.d
, p7
/m
, z0.d
, z31.d
142 // CHECK-ENCODING
: [0xe0,0x9f,0xc0,0x65]
143 // CHECK-ERROR
: instruction requires
: sve
144 // CHECK-UNKNOWN
: e0
9f c0
65 <unknown
>