fullfp16-thumb.txt
3.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# RUN: llvm-mc -disassemble -triple thumbv8a-none-eabi -mattr=+fullfp16,+thumb-mode -show-encoding < %s | FileCheck %s
# CHECK: vadd.f16 s0, s1, s0
[0x30,0xee,0x80,0x09]
# CHECK: vsub.f16 s0, s1, s0
[0x30,0xee,0xc0,0x09]
# CHECK: vdiv.f16 s0, s1, s0
[0x80,0xee,0x80,0x09]
# CHECK: vmul.f16 s0, s1, s0
[0x20,0xee,0x80,0x09]
# CHECK: vnmul.f16 s0, s1, s0
[0x20,0xee,0xc0,0x09]
# CHECK: vmla.f16 s1, s2, s0
[0x41,0xee,0x00,0x09]
# CHECK: vmls.f16 s1, s2, s0
[0x41,0xee,0x40,0x09]
# CHECK: vnmla.f16 s1, s2, s0
[0x51,0xee,0x40,0x09]
# CHECK: vnmls.f16 s1, s2, s0
[0x51,0xee,0x00,0x09]
# CHECK: vcmp.f16 s0, s1
[0xb4,0xee,0x60,0x09]
# CHECK: vcmp.f16 s2, #0
[0xb5,0xee,0x40,0x19]
# CHECK: vcmpe.f16 s1, s0
[0xf4,0xee,0xc0,0x09]
# CHECK: vcmpe.f16 s0, #0
[0xb5,0xee,0xc0,0x09]
# CHECK: vabs.f16 s0, s0
[0xb0,0xee,0xc0,0x09]
# CHECK: vneg.f16 s0, s0
[0xb1,0xee,0x40,0x09]
# CHECK: vsqrt.f16 s0, s0
[0xb1,0xee,0xc0,0x09]
# CHECK: vcvt.f16.s32 s0, s0
# CHECK: vcvt.f16.u32 s0, s0
# CHECK: vcvt.s32.f16 s0, s0
# CHECK: vcvt.u32.f16 s0, s0
[0xb8,0xee,0xc0,0x09]
[0xb8,0xee,0x40,0x09]
[0xbd,0xee,0xc0,0x09]
[0xbc,0xee,0xc0,0x09]
# CHECK: vcvtr.s32.f16 s0, s1
# CHECK: vcvtr.u32.f16 s0, s1
[0xbd,0xee,0x60,0x09]
[0xbc,0xee,0x60,0x09]
# CHECK: vcvt.f16.u32 s0, s0, #20
# CHECK: vcvt.f16.u16 s0, s0, #1
# CHECK: vcvt.f16.s32 s1, s1, #20
# CHECK: vcvt.f16.s16 s17, s17, #1
# CHECK: vcvt.u32.f16 s12, s12, #20
# CHECK: vcvt.u16.f16 s28, s28, #1
# CHECK: vcvt.s32.f16 s1, s1, #20
# CHECK: vcvt.s16.f16 s17, s17, #1
[0xbb,0xee,0xc6,0x09]
[0xbb,0xee,0x67,0x09]
[0xfa,0xee,0xc6,0x09]
[0xfa,0xee,0x67,0x89]
[0xbf,0xee,0xc6,0x69]
[0xbf,0xee,0x67,0xe9]
[0xfe,0xee,0xc6,0x09]
[0xfe,0xee,0x67,0x89]
# CHECK: vcvta.s32.f16 s2, s3
[0xbc,0xfe,0xe1,0x19]
# CHECK: vcvtn.s32.f16 s6, s23
[0xbd,0xfe,0xeb,0x39]
# CHECK: vcvtp.s32.f16 s0, s4
[0xbe,0xfe,0xc2,0x09]
# CHECK: vcvtm.s32.f16 s17, s8
[0xff,0xfe,0xc4,0x89]
# CHECK: vcvta.u32.f16 s2, s3
[0xbc,0xfe,0x61,0x19]
# CHECK: vcvtn.u32.f16 s6, s23
[0xbd,0xfe,0x6b,0x39]
# CHECK: vcvtp.u32.f16 s0, s4
[0xbe,0xfe,0x42,0x09]
# CHECK: vcvtm.u32.f16 s17, s8
[0xff,0xfe,0x44,0x89]
# CHECK: vselge.f16 s4, s1, s23
[0x20,0xfe,0xab,0x29]
# CHECK: vselgt.f16 s0, s1, s0
[0x30,0xfe,0x80,0x09]
# CHECK: vseleq.f16 s30, s28, s23
[0x0e,0xfe,0x2b,0xf9]
# CHECK: vselvs.f16 s21, s16, s14
[0x58,0xfe,0x07,0xa9]
# CHECK: vmaxnm.f16 s5, s12, s0
[0xc6,0xfe,0x00,0x29]
# CHECK: vminnm.f16 s0, s0, s12
[0x80,0xfe,0x46,0x09]
# CHECK: vrintz.f16 s3, s24
[0xf6,0xee,0xcc,0x19]
# CHECK: vrintr.f16 s0, s9
[0xb6,0xee,0x64,0x09]
# CHECK: vrintx.f16 s10, s14
[0xb7,0xee,0x47,0x59]
# CHECK: vrinta.f16 s12, s1
[0xb8,0xfe,0x60,0x69]
# CHECK: vrintn.f16 s12, s1
[0xb9,0xfe,0x60,0x69]
# CHECK: vrintp.f16 s12, s1
[0xba,0xfe,0x60,0x69]
# CHECK: vrintm.f16 s12, s1
[0xbb,0xfe,0x60,0x69]
# CHECK: vfma.f16 s2, s7, s4
[0xa3,0xee,0x82,0x19]
# CHECK: vfms.f16 s2, s7, s4
[0xa3,0xee,0xc2,0x19]
# CHECK: vfnma.f16 s2, s7, s4
[0x93,0xee,0xc2,0x19]
# CHECK: vfnms.f16 s2, s7, s4
[0x93,0xee,0x82,0x19]
# CHECK: vmovx.f16 s2, s5
# CHECK: vins.f16 s2, s5
[0xb0,0xfe,0x62,0x1a]
[0xb0,0xfe,0xe2,0x1a]
# CHECK: vldr.16 s1, [pc, #6]
# CHECK: vldr.16 s2, [pc, #510]
# CHECK: vldr.16 s3, [pc, #-510]
# CHECK: vldr.16 s4, [r4, #-18]
[0xdf,0xed,0x03,0x09]
[0x9f,0xed,0xff,0x19]
[0x5f,0xed,0xff,0x19]
[0x14,0xed,0x09,0x29]
# CHECK: vstr.16 s1, [pc, #6]
# CHECK: vstr.16 s2, [pc, #510]
# CHECK: vstr.16 s3, [pc, #-510]
# CHECK: vstr.16 s4, [r4, #-18]
[0xcf,0xed,0x03,0x09]
[0x8f,0xed,0xff,0x19]
[0x4f,0xed,0xff,0x19]
[0x04,0xed,0x09,0x29]
# CHECK: vmov.f16 s0, #1.0
[0xb7,0xee,0x00,0x09]
# CHECK: vmov.f16 s1, r2
# CHECK: vmov.f16 r3, s4
[0x00,0xee,0x90,0x29]
[0x12,0xee,0x10,0x39]