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
11 // CHECK-INST
: st1d
{ z0.d
}, p0
, [x0
]
12 // CHECK-ENCODING
: [0x00,0xe0,0xe0,0xe5]
13 // CHECK-ERROR
: instruction requires
: sve
14 // CHECK-UNKNOWN
: 00 e0 e0 e5
<unknown
>
16 st1d
{ z0.d
}, p0
, [x0
]
17 // CHECK-INST
: st1d
{ z0.d
}, p0
, [x0
]
18 // CHECK-ENCODING
: [0x00,0xe0,0xe0,0xe5]
19 // CHECK-ERROR
: instruction requires
: sve
20 // CHECK-UNKNOWN
: 00 e0 e0 e5
<unknown
>
22 st1d
{ z31.d
}, p7
, [sp
, #-1, mul vl]
23 // CHECK-INST
: st1d
{ z31.d
}, p7
, [sp
, #-1, mul vl]
24 // CHECK-ENCODING
: [0xff,0xff,0xef,0xe5]
25 // CHECK-ERROR
: instruction requires
: sve
26 // CHECK-UNKNOWN
: ff ff ef e5
<unknown
>
28 st1d
{ z21.d
}, p5
, [x10
, #5, mul vl]
29 // CHECK-INST
: st1d
{ z21.d
}, p5
, [x10
, #5, mul vl]
30 // CHECK-ENCODING
: [0x55,0xf5,0xe5,0xe5]
31 // CHECK-ERROR
: instruction requires
: sve
32 // CHECK-UNKNOWN
: 55 f5 e5 e5
<unknown
>
34 st1d
{ z0.d
}, p0
, [x0
, x0
, lsl
#3]
35 // CHECK-INST
: st1d
{ z0.d
}, p0
, [x0
, x0
, lsl
#3]
36 // CHECK-ENCODING
: [0x00,0x40,0xe0,0xe5]
37 // CHECK-ERROR
: instruction requires
: sve
38 // CHECK-UNKNOWN
: 00 40 e0 e5
<unknown
>
40 st1d
{ z0.d
}, p0
, [x0
, z0.d
, uxtw
]
41 // CHECK-INST
: st1d
{ z0.d
}, p0
, [x0
, z0.d
, uxtw
]
42 // CHECK-ENCODING
: [0x00,0x80,0x80,0xe5]
43 // CHECK-ERROR
: instruction requires
: sve
44 // CHECK-UNKNOWN
: 00 80 80 e5
<unknown
>
46 st1d
{ z0.d
}, p0
, [x0
, z0.d
, sxtw
]
47 // CHECK-INST
: st1d
{ z0.d
}, p0
, [x0
, z0.d
, sxtw
]
48 // CHECK-ENCODING
: [0x00,0xc0,0x80,0xe5]
49 // CHECK-ERROR
: instruction requires
: sve
50 // CHECK-UNKNOWN
: 00 c0
80 e5
<unknown
>
52 st1d
{ z0.d
}, p0
, [x0
, z0.d
, uxtw
#3]
53 // CHECK-INST
: st1d
{ z0.d
}, p0
, [x0
, z0.d
, uxtw
#3]
54 // CHECK-ENCODING
: [0x00,0x80,0xa0,0xe5]
55 // CHECK-ERROR
: instruction requires
: sve
56 // CHECK-UNKNOWN
: 00 80 a0 e5
<unknown
>
58 st1d
{ z0.d
}, p0
, [x0
, z0.d
, sxtw
#3]
59 // CHECK-INST
: st1d
{ z0.d
}, p0
, [x0
, z0.d
, sxtw
#3]
60 // CHECK-ENCODING
: [0x00,0xc0,0xa0,0xe5]
61 // CHECK-ERROR
: instruction requires
: sve
62 // CHECK-UNKNOWN
: 00 c0 a0 e5
<unknown
>
64 st1d
{ z0.d
}, p0
, [x0
, z0.d
]
65 // CHECK-INST
: st1d
{ z0.d
}, p0
, [x0
, z0.d
]
66 // CHECK-ENCODING
: [0x00,0xa0,0x80,0xe5]
67 // CHECK-ERROR
: instruction requires
: sve
68 // CHECK-UNKNOWN
: 00 a0
80 e5
<unknown
>
70 st1d
{ z0.d
}, p0
, [x0
, z0.d
, lsl
#3]
71 // CHECK-INST
: st1d
{ z0.d
}, p0
, [x0
, z0.d
, lsl
#3]
72 // CHECK-ENCODING
: [0x00,0xa0,0xa0,0xe5]
73 // CHECK-ERROR
: instruction requires
: sve
74 // CHECK-UNKNOWN
: 00 a0 a0 e5
<unknown
>
76 st1d
{ z31.d
}, p7
, [z31.d
, #248]
77 // CHECK-INST
: st1d
{ z31.d
}, p7
, [z31.d
, #248]
78 // CHECK-ENCODING
: [0xff,0xbf,0xdf,0xe5]
79 // CHECK-ERROR
: instruction requires
: sve
80 // CHECK-UNKNOWN
: ff
bf df e5
<unknown
>