Debian Codegraph @

llvm/test/MC/AArch64/FP8_SVE2/fcvtn.s

raw
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2,+fp8 < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2,+fp8 < %s \
4 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
5 // RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
6 // RUN: | FileCheck %s --check-prefix=CHECK-ERROR
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2,+fp8 < %s \
8 // RUN: | llvm-objdump -d --mattr=+sve2,+fp8 - | FileCheck %s --check-prefix=CHECK-INST
9 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2,+fp8 < %s \
10 // RUN: | llvm-objdump -d --mattr=-sme2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
11 // Disassemble encoding and check the re-encoding (-show-encoding) matches.
12 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2,+fp8 < %s \
13 // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
14 // RUN: | llvm-mc -triple=aarch64 -mattr=+sve2,+fp8 -disassemble -show-encoding \
15 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
16
17 //
18 // FCVTN instructions
19 //
20 fcvtn z0.b, {z0.h, z1.h} // 01100101-00001010-00110000-00000000
21 // CHECK-INST: fcvtn z0.b, { z0.h, z1.h }
22 // CHECK-ENCODING: [0x00,0x30,0x0a,0x65]
23 // CHECK-ERROR: instruction requires: fp8 sve2
24 // CHECK-UNKNOWN: 650a3000 <unknown>
25
26 fcvtn z0.b, {z30.h, z31.h} // 01100101-00001010-00110011-11000000
27 // CHECK-INST: fcvtn z0.b, { z30.h, z31.h }
28 // CHECK-ENCODING: [0xc0,0x33,0x0a,0x65]
29 // CHECK-ERROR: instruction requires: fp8 sve2
30 // CHECK-UNKNOWN: 650a33c0 <unknown>
31
32 fcvtn z31.b, {z0.h, z1.h} // 01100101-00001010-00110000-00011111
33 // CHECK-INST: fcvtn z31.b, { z0.h, z1.h }
34 // CHECK-ENCODING: [0x1f,0x30,0x0a,0x65]
35 // CHECK-ERROR: instruction requires: fp8 sve2
36 // CHECK-UNKNOWN: 650a301f <unknown>
37
38 fcvtn z31.b, {z30.h, z31.h} // 01100101-00001010-00110011-11011111
39 // CHECK-INST: fcvtn z31.b, { z30.h, z31.h }
40 // CHECK-ENCODING: [0xdf,0x33,0x0a,0x65]
41 // CHECK-ERROR: instruction requires: fp8 sve2
42 // CHECK-UNKNOWN: 650a33df <unknown>
43
44 //
45 // FCVTNB instructions
46 //
47 fcvtnb z0.b, {z0.s, z1.s} // 01100101-00001010-00110100-00000000
48 // CHECK-INST: fcvtnb z0.b, { z0.s, z1.s }
49 // CHECK-ENCODING: [0x00,0x34,0x0a,0x65]
50 // CHECK-ERROR: instruction requires: fp8 sve2
51 // CHECK-UNKNOWN: 650a3400 <unknown>
52
53 fcvtnb z0.b, {z30.s, z31.s} // 01100101-00001010-00110111-11000000
54 // CHECK-INST: fcvtnb z0.b, { z30.s, z31.s }
55 // CHECK-ENCODING: [0xc0,0x37,0x0a,0x65]
56 // CHECK-ERROR: instruction requires: fp8 sve2
57 // CHECK-UNKNOWN: 650a37c0 <unknown>
58
59 fcvtnb z31.b, {z0.s, z1.s} // 01100101-00001010-00110100-00011111
60 // CHECK-INST: fcvtnb z31.b, { z0.s, z1.s }
61 // CHECK-ENCODING: [0x1f,0x34,0x0a,0x65]
62 // CHECK-ERROR: instruction requires: fp8 sve2
63 // CHECK-UNKNOWN: 650a341f <unknown>
64
65 fcvtnb z31.b, {z30.s, z31.s} // 01100101-00001010-00110111-11011111
66 // CHECK-INST: fcvtnb z31.b, { z30.s, z31.s }
67 // CHECK-ENCODING: [0xdf,0x37,0x0a,0x65]
68 // CHECK-ERROR: instruction requires: fp8 sve2
69 // CHECK-UNKNOWN: 650a37df <unknown>
70
71
72 //
73 // BFCVTN instructions
74 //
75 bfcvtn z0.b, {z0.h, z1.h} // 01100101-00001010-00111000-00000000
76 // CHECK-INST: bfcvtn z0.b, { z0.h, z1.h }
77 // CHECK-ENCODING: [0x00,0x38,0x0a,0x65]
78 // CHECK-ERROR: instruction requires: fp8 sve2
79 // CHECK-UNKNOWN: 650a3800 <unknown>
80
81 bfcvtn z0.b, {z30.h, z31.h} // 01100101-00001010-00111011-11000000
82 // CHECK-INST: bfcvtn z0.b, { z30.h, z31.h }
83 // CHECK-ENCODING: [0xc0,0x3b,0x0a,0x65]
84 // CHECK-ERROR: instruction requires: fp8 sve2
85 // CHECK-UNKNOWN: 650a3bc0 <unknown>
86
87 bfcvtn z31.b, {z0.h, z1.h} // 01100101-00001010-00111000-00011111
88 // CHECK-INST: bfcvtn z31.b, { z0.h, z1.h }
89 // CHECK-ENCODING: [0x1f,0x38,0x0a,0x65]
90 // CHECK-ERROR: instruction requires: fp8 sve2
91 // CHECK-UNKNOWN: 650a381f <unknown>
92
93 bfcvtn z31.b, {z30.h, z31.h} // 01100101-00001010-00111011-11011111
94 // CHECK-INST: bfcvtn z31.b, { z30.h, z31.h }
95 // CHECK-ENCODING: [0xdf,0x3b,0x0a,0x65]
96 // CHECK-ERROR: instruction requires: fp8 sve2
97 // CHECK-UNKNOWN: 650a3bdf <unknown>
98
99
100 //
101 // FCVTNT instructions
102 //
103 fcvtnt z0.b, {z0.s, z1.s} // 01100101-00001010-00111100-00000000
104 // CHECK-INST: fcvtnt z0.b, { z0.s, z1.s }
105 // CHECK-ENCODING: [0x00,0x3c,0x0a,0x65]
106 // CHECK-ERROR: instruction requires: fp8 sve2
107 // CHECK-UNKNOWN: 650a3c00 <unknown>
108
109 fcvtnt z0.b, {z30.s, z31.s} // 01100101-00001010-00111111-11000000
110 // CHECK-INST: fcvtnt z0.b, { z30.s, z31.s }
111 // CHECK-ENCODING: [0xc0,0x3f,0x0a,0x65]
112 // CHECK-ERROR: instruction requires: fp8 sve2
113 // CHECK-UNKNOWN: 650a3fc0 <unknown>
114
115 fcvtnt z31.b, {z0.s, z1.s} // 01100101-00001010-00111100-00011111
116 // CHECK-INST: fcvtnt z31.b, { z0.s, z1.s }
117 // CHECK-ENCODING: [0x1f,0x3c,0x0a,0x65]
118 // CHECK-ERROR: instruction requires: fp8 sve2
119 // CHECK-UNKNOWN: 650a3c1f <unknown>
120
121 fcvtnt z31.b, {z30.s, z31.s} // 01100101-00001010-00111111-11011111
122 // CHECK-INST: fcvtnt z31.b, { z30.s, z31.s }
123 // CHECK-ENCODING: [0xdf,0x3f,0x0a,0x65]
124 // CHECK-ERROR: instruction requires: fp8 sve2
125 // CHECK-UNKNOWN: 650a3fdf <unknown>