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
11 fcvtx z0.s
, p0
/m
, z0.d
12 // CHECK-INST
: fcvtx z0.s
, p0
/m
, z0.d
13 // CHECK-ENCODING
: [0x00,0xa0,0x0a,0x65]
14 // CHECK-ERROR
: instruction requires
: sve2
15 // CHECK-UNKNOWN
: 00 a0
0a 65 <unknown
>
17 fcvtx z30.s
, p7
/m
, z31.d
18 // CHECK-INST
: fcvtx z30.s
, p7
/m
, z31.d
19 // CHECK-ENCODING
: [0xfe,0xbf,0x0a,0x65]
20 // CHECK-ERROR
: instruction requires
: sve2
21 // CHECK-UNKNOWN
: fe
bf 0a 65 <unknown
>
25 // --------------------------------------------------------------------------//
26 // Test compatibility with MOVPRFX instruction.
28 movprfx z5.d
, p0
/z
, z7.d
29 // CHECK-INST
: movprfx z5.d
, p0
/z
, z7.d
30 // CHECK-ENCODING
: [0xe5,0x20,0xd0,0x04]
31 // CHECK-ERROR
: instruction requires
: sve
32 // CHECK-UNKNOWN
: e5
20 d0
04 <unknown
>
34 fcvtx z5.s
, p0
/m
, z0.d
35 // CHECK-INST
: fcvtx z5.s
, p0
/m
, z0.d
36 // CHECK-ENCODING
: [0x05,0xa0,0x0a,0x65]
37 // CHECK-ERROR
: instruction requires
: sve2
38 // CHECK-UNKNOWN
: 05 a0
0a 65 <unknown
>
41 // CHECK-INST
: movprfx z5
, z7
42 // CHECK-ENCODING
: [0xe5,0xbc,0x20,0x04]
43 // CHECK-ERROR
: instruction requires
: sve
44 // CHECK-UNKNOWN
: e5
bc 20 04 <unknown
>
46 fcvtx z5.s
, p0
/m
, z0.d
47 // CHECK-INST
: fcvtx z5.s
, p0
/m
, z0.d
48 // CHECK-ENCODING
: [0x05,0xa0,0x0a,0x65]
49 // CHECK-ERROR
: instruction requires
: sve2
50 // CHECK-UNKNOWN
: 05 a0
0a 65 <unknown
>