1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve2
< %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
=+sve2
< %s \
8 // RUN
: | llvm-objdump
-d
--mattr
=+sve2
- | FileCheck
%s
--check-prefix
=CHECK-INST
9 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve2
< %s \
10 // RUN
: | llvm-objdump
-d
--mattr
=-sve2
- | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
12 bcax z29.d
, z29.d
, z30.d
, z31.d
13 // CHECK-INST
: bcax z29.d
, z29.d
, z30.d
, z31.d
14 // CHECK-ENCODING
: [0xfd,0x3b,0x7e,0x04]
15 // CHECK-ERROR
: instruction requires
: sve2
or sme
16 // CHECK-UNKNOWN
: 047e3bfd
<unknown
>
19 // --------------------------------------------------------------------------//
22 bcax z29.
b, z29.
b, z30.
b, z31.
b
23 // CHECK-INST
: bcax z29.d
, z29.d
, z30.d
, z31.d
24 // CHECK-ENCODING
: [0xfd,0x3b,0x7e,0x04]
25 // CHECK-ERROR
: instruction requires
: sve2
or sme
26 // CHECK-UNKNOWN
: 047e3bfd
<unknown
>
28 bcax z29.h
, z29.h
, z30.h
, z31.h
29 // CHECK-INST
: bcax z29.d
, z29.d
, z30.d
, z31.d
30 // CHECK-ENCODING
: [0xfd,0x3b,0x7e,0x04]
31 // CHECK-ERROR
: instruction requires
: sve2
or sme
32 // CHECK-UNKNOWN
: 047e3bfd
<unknown
>
34 bcax z29.s
, z29.s
, z30.s
, z31.s
35 // CHECK-INST
: bcax z29.d
, z29.d
, z30.d
, z31.d
36 // CHECK-ENCODING
: [0xfd,0x3b,0x7e,0x04]
37 // CHECK-ERROR
: instruction requires
: sve2
or sme
38 // CHECK-UNKNOWN
: 047e3bfd
<unknown
>
41 // --------------------------------------------------------------------------//
42 // Test compatibility with MOVPRFX instruction.
45 // CHECK-INST
: movprfx z31
, z7
46 // CHECK-ENCODING
: [0xff,0xbc,0x20,0x04]
47 // CHECK-ERROR
: instruction requires
: sve
or sme
48 // CHECK-UNKNOWN
: 0420bcff
<unknown
>
50 bcax z31.d
, z31.d
, z30.d
, z29.d
51 // CHECK-INST
: bcax z31.d
, z31.d
, z30.d
, z29.d
52 // CHECK-ENCODING
: [0xbf,0x3b,0x7e,0x04]
53 // CHECK-ERROR
: instruction requires
: sve2
or sme
54 // CHECK-UNKNOWN
: 047e3bbf
<unknown
>