1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme2
< %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
=+sme2
< %s \
6 // RUN
: | llvm-objdump
-d
--mattr
=+sme2
- | FileCheck
%s
--check-prefix
=CHECK-INST
7 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sme2
< %s \
8 // RUN
: | llvm-objdump
-d
--mattr
=-sme2
- | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
9 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme2
< %s \
10 // RUN
: | sed
'/.text/d' | sed
's/.*encoding: //g' \
11 // RUN
: | llvm-mc
-triple
=aarch64
-mattr
=+sme2
-disassemble
-show-encoding \
12 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
15 fcvtn z0.h
, {z0.s
, z1.s
} // 11000001-00100000-11100000-00100000
16 // CHECK-INST
: fcvtn z0.h
, { z0.s
, z1.s
}
17 // CHECK-ENCODING
: [0x20,0xe0,0x20,0xc1]
18 // CHECK-ERROR
: instruction requires
: sme2
19 // CHECK-UNKNOWN
: c120e020
<unknown
>
21 fcvtn z21.h
, {z10.s
, z11.s
} // 11000001-00100000-11100001-01110101
22 // CHECK-INST
: fcvtn z21.h
, { z10.s
, z11.s
}
23 // CHECK-ENCODING
: [0x75,0xe1,0x20,0xc1]
24 // CHECK-ERROR
: instruction requires
: sme2
25 // CHECK-UNKNOWN
: c120e175
<unknown
>
27 fcvtn z23.h
, {z12.s
, z13.s
} // 11000001-00100000-11100001-10110111
28 // CHECK-INST
: fcvtn z23.h
, { z12.s
, z13.s
}
29 // CHECK-ENCODING
: [0xb7,0xe1,0x20,0xc1]
30 // CHECK-ERROR
: instruction requires
: sme2
31 // CHECK-UNKNOWN
: c120e1b7
<unknown
>
33 fcvtn z31.h
, {z30.s
, z31.s
} // 11000001-00100000-11100011-11111111
34 // CHECK-INST
: fcvtn z31.h
, { z30.s
, z31.s
}
35 // CHECK-ENCODING
: [0xff,0xe3,0x20,0xc1]
36 // CHECK-ERROR
: instruction requires
: sme2
37 // CHECK-UNKNOWN
: c120e3ff
<unknown
>