1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+fprcvt
< %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
=+fprcvt
< %s \
6 // RUN
: | llvm-objdump
-d
--mattr
=+fprcvt
- | FileCheck
%s
--check-prefix
=CHECK-INST
7 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+fprcvt
< %s \
8 // RUN
: | llvm-objdump
-d
--no-print-imm-hex
--mattr
=-fprcvt
- | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
9 // Disassemble encoding
and check the re-encoding
(-show-encoding
) matches.
10 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+fprcvt
< %s \
11 // RUN
: | sed
'/.text/d' | sed
's/.*encoding: //g' \
12 // RUN
: | llvm-mc
-triple
=aarch64
-mattr
=+fprcvt
-disassemble
-show-encoding \
13 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
16 // CHECK-INST
: scvtf d1
, s2
17 // CHECK-ENCODING
: [0x41,0x00,0x7c,0x1e]
18 // CHECK-ERROR
: instruction requires
: fprcvt
19 // CHECK-UNKNOWN
: 1e7c0041
<unknown
>
22 // CHECK-INST
: scvtf h1
, s2
23 // CHECK-ENCODING
: [0x41,0x00,0xfc,0x1e]
24 // CHECK-ERROR
: instruction requires
: fprcvt
25 // CHECK-UNKNOWN
: 1efc0041
<unknown
>
28 // CHECK-INST
: scvtf h2
, d0
29 // CHECK-ENCODING
: [0x02,0x00,0xfc,0x9e]
30 // CHECK-ERROR
: instruction requires
: fprcvt
31 // CHECK-UNKNOWN
: 9efc0002
<unknown
>
34 // CHECK-INST
: scvtf s3
, d4
35 // CHECK-ENCODING
: [0x83,0x00,0x3c,0x9e]
36 // CHECK-ERROR
: instruction requires
: fprcvt
37 // CHECK-UNKNOWN
: 9e3c0083
<unknown
>
40 // CHECK-INST
: ucvtf d1
, s2
41 // CHECK-ENCODING
: [0x41,0x00,0x7d,0x1e]
42 // CHECK-ERROR
: instruction requires
: fprcvt
43 // CHECK-UNKNOWN
: 1e7d0041
<unknown
>
46 // CHECK-INST
: ucvtf h1
, s2
47 // CHECK-ENCODING
: [0x41,0x00,0xfd,0x1e]
48 // CHECK-ERROR
: instruction requires
: fprcvt
49 // CHECK-UNKNOWN
: 1efd0041
<unknown
>
52 // CHECK-INST
: ucvtf h2
, d0
53 // CHECK-ENCODING
: [0x02,0x00,0xfd,0x9e]
54 // CHECK-ERROR
: instruction requires
: fprcvt
55 // CHECK-UNKNOWN
: 9efd0002
<unknown
>
58 // CHECK-INST
: ucvtf s3
, d4
59 // CHECK-ENCODING
: [0x83,0x00,0x3d,0x9e]
60 // CHECK-ERROR
: instruction requires
: fprcvt
61 // CHECK-UNKNOWN
: 9e3d0083
<unknown
>