1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme
< %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
=+sme
< %s \
6 // RUN
: | llvm-objdump
--no-print-imm-hex
-d
--mattr
=+sme
- | FileCheck
%s
--check-prefix
=CHECK-INST
7 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sme
< %s \
8 // RUN
: | llvm-objdump
--no-print-imm-hex
-d
--mattr
=-sme
- | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
11 // CHECK-INST
: addsvl x21
, x21
, #0
12 // CHECK-ENCODING
: [0x15,0x58,0x35,0x04]
13 // CHECK-ERROR
: instruction requires
: sme
14 // CHECK-UNKNOWN
: 04355815 <unknown
>
17 // CHECK-INST
: addsvl x23
, x8
, #-1
18 // CHECK-ENCODING
: [0xf7,0x5f,0x28,0x04]
19 // CHECK-ERROR
: instruction requires
: sme
20 // CHECK-UNKNOWN
: 04285ff7
<unknown
>
23 // CHECK-INST
: addsvl sp
, sp
, #31
24 // CHECK-ENCODING
: [0xff,0x5b,0x3f,0x04]
25 // CHECK-ERROR
: instruction requires
: sme
26 // CHECK-UNKNOWN
: 043f5bff
<unknown
>
29 // CHECK-INST
: addsvl x0
, x0
, #-32
30 // CHECK-ENCODING
: [0x00,0x5c,0x20,0x04]
31 // CHECK-ERROR
: instruction requires
: sme
32 // CHECK-UNKNOWN
: 04205c00
<unknown
>