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 whilele p15.
b, xzr
, x0
11 // CHECK-INST
: whilele p15.
b, xzr
, x0
12 // CHECK-ENCODING
: [0xff,0x17,0x20,0x25]
13 // CHECK-ERROR
: instruction requires
: sve
14 // CHECK-UNKNOWN
: ff
17 20 25 <unknown
>
16 whilele p15.
b, x0
, xzr
17 // CHECK-INST
: whilele p15.
b, x0
, xzr
18 // CHECK-ENCODING
: [0x1f,0x14,0x3f,0x25]
19 // CHECK-ERROR
: instruction requires
: sve
20 // CHECK-UNKNOWN
: 1f
14 3f
25 <unknown
>
22 whilele p15.
b, wzr
, w0
23 // CHECK-INST
: whilele p15.
b, wzr
, w0
24 // CHECK-ENCODING
: [0xff,0x07,0x20,0x25]
25 // CHECK-ERROR
: instruction requires
: sve
26 // CHECK-UNKNOWN
: ff
07 20 25 <unknown
>
28 whilele p15.
b, w0
, wzr
29 // CHECK-INST
: whilele p15.
b, w0
, wzr
30 // CHECK-ENCODING
: [0x1f,0x04,0x3f,0x25]
31 // CHECK-ERROR
: instruction requires
: sve
32 // CHECK-UNKNOWN
: 1f
04 3f
25 <unknown
>
34 whilele p15.h
, x0
, xzr
35 // CHECK-INST
: whilele p15.h
, x0
, xzr
36 // CHECK-ENCODING
: [0x1f,0x14,0x7f,0x25]
37 // CHECK-ERROR
: instruction requires
: sve
38 // CHECK-UNKNOWN
: 1f
14 7f
25 <unknown
>
40 whilele p15.h
, w0
, wzr
41 // CHECK-INST
: whilele p15.h
, w0
, wzr
42 // CHECK-ENCODING
: [0x1f,0x04,0x7f,0x25]
43 // CHECK-ERROR
: instruction requires
: sve
44 // CHECK-UNKNOWN
: 1f
04 7f
25 <unknown
>
46 whilele p15.s
, x0
, xzr
47 // CHECK-INST
: whilele p15.s
, x0
, xzr
48 // CHECK-ENCODING
: [0x1f,0x14,0xbf,0x25]
49 // CHECK-ERROR
: instruction requires
: sve
50 // CHECK-UNKNOWN
: 1f
14 bf 25 <unknown
>
52 whilele p15.s
, w0
, wzr
53 // CHECK-INST
: whilele p15.s
, w0
, wzr
54 // CHECK-ENCODING
: [0x1f,0x04,0xbf,0x25]
55 // CHECK-ERROR
: instruction requires
: sve
56 // CHECK-UNKNOWN
: 1f
04 bf 25 <unknown
>
58 whilele p15.d
, w0
, wzr
59 // CHECK-INST
: whilele p15.d
, w0
, wzr
60 // CHECK-ENCODING
: [0x1f,0x04,0xff,0x25]
61 // CHECK-ERROR
: instruction requires
: sve
62 // CHECK-UNKNOWN
: 1f
04 ff
25 <unknown
>
64 whilele p15.d
, x0
, xzr
65 // CHECK-INST
: whilele p15.d
, x0
, xzr
66 // CHECK-ENCODING
: [0x1f,0x14,0xff,0x25]
67 // CHECK-ERROR
: instruction requires
: sve
68 // CHECK-UNKNOWN
: 1f
14 ff
25 <unknown
>