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 faddp z0.h
, p0
/m
, z0.h
, z1.h
11 // CHECK-INST
: faddp z0.h
, p0
/m
, z0.h
, z1.h
12 // CHECK-ENCODING
: [0x20,0x80,0x50,0x64]
13 // CHECK-ERROR
: instruction requires
: sve2
14 // CHECK-UNKNOWN
: 20 80 50 64 <unknown
>
16 faddp z29.s
, p3
/m
, z29.s
, z30.s
17 // CHECK-INST
: faddp z29.s
, p3
/m
, z29.s
, z30.s
18 // CHECK-ENCODING
: [0xdd,0x8f,0x90,0x64]
19 // CHECK-ERROR
: instruction requires
: sve2
20 // CHECK-UNKNOWN
: dd
8f
90 64 <unknown
>
22 faddp z31.d
, p7
/m
, z31.d
, z30.d
23 // CHECK-INST
: faddp z31.d
, p7
/m
, z31.d
, z30.d
24 // CHECK-ENCODING
: [0xdf,0x9f,0xd0,0x64]
25 // CHECK-ERROR
: instruction requires
: sve2
26 // CHECK-UNKNOWN
: df
9f d0
64 <unknown
>
28 // --------------------------------------------------------------------------//
29 // Test compatibility with MOVPRFX instruction.
31 movprfx z31.d
, p0
/z
, z6.d
32 // CHECK-INST
: movprfx z31.d
, p0
/z
, z6.d
33 // CHECK-ENCODING
: [0xdf,0x20,0xd0,0x04]
34 // CHECK-ERROR
: instruction requires
: sve
35 // CHECK-UNKNOWN
: df
20 d0
04 <unknown
>
37 faddp z31.d
, p0
/m
, z31.d
, z30.d
38 // CHECK-INST
: faddp z31.d
, p0
/m
, z31.d
, z30.d
39 // CHECK-ENCODING
: [0xdf,0x83,0xd0,0x64]
40 // CHECK-ERROR
: instruction requires
: sve2
41 // CHECK-UNKNOWN
: df
83 d0
64 <unknown
>
44 // CHECK-INST
: movprfx z31
, z6
45 // CHECK-ENCODING
: [0xdf,0xbc,0x20,0x04]
46 // CHECK-ERROR
: instruction requires
: sve
47 // CHECK-UNKNOWN
: df
bc 20 04 <unknown
>
49 faddp z31.d
, p7
/m
, z31.d
, z30.d
50 // CHECK-INST
: faddp z31.d
, p7
/m
, z31.d
, z30.d
51 // CHECK-ENCODING
: [0xdf,0x9f,0xd0,0x64]
52 // CHECK-ERROR
: instruction requires
: sve2
53 // CHECK-UNKNOWN
: df
9f d0
64 <unknown
>