fp-encoding.txt
5.39 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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
# RUN: llvm-mc -triple armv7-apple-darwin -mcpu=cortex-a8 -disassemble < %s | FileCheck %s
0xa0 0x0b 0x71 0xee
# CHECK: vadd.f64 d16, d17, d16
0x80 0x0a 0x30 0xee
# CHECK: vadd.f32 s0, s1, s0
0xe0 0x0b 0x71 0xee
# CHECK: vsub.f64 d16, d17, d16
0xc0 0x0a 0x30 0xee
# CHECK: vsub.f32 s0, s1, s0
0xa0 0x0b 0xc1 0xee
# CHECK: vdiv.f64 d16, d17, d16
0x80 0x0a 0x80 0xee
# CHECK: vdiv.f32 s0, s1, s0
0xa0 0x0b 0x61 0xee
# CHECK: vmul.f64 d16, d17, d16
0x80 0x0a 0x20 0xee
# CHECK: vmul.f32 s0, s1, s0
0xe0 0x0b 0x61 0xee
# CHECK: vnmul.f64 d16, d17, d16
0xc0 0x0a 0x20 0xee
# CHECK: vnmul.f32 s0, s1, s0
0xe0 0x1b 0xf4 0xee
# CHECK: vcmpe.f64 d17, d16
0xc0 0x0a 0xf4 0xee
# CHECK: vcmpe.f32 s1, s0
0xe0 0x0b 0xf0 0xee
# CHECK: vabs.f64 d16, d16
0xc0 0x0a 0xb0 0xee
# CHECK: vabs.f32 s0, s0
0xe0 0x0b 0xb7 0xee
# CHECK: vcvt.f32.f64 s0, d16
0xc0 0x0a 0xf7 0xee
# CHECK: vcvt.f64.f32 d16, s0
0x60 0x0b 0xf1 0xee
# CHECK: vneg.f64 d16, d16
0x40 0x0a 0xb1 0xee
# CHECK: vneg.f32 s0, s0
0xe0 0x0b 0xf1 0xee
# CHECK: vsqrt.f64 d16, d16
0xc0 0x0a 0xb1 0xee
# CHECK: vsqrt.f32 s0, s0
0xc0 0x0b 0xf8 0xee
# CHECK: vcvt.f64.s32 d16, s0
0xc0 0x0a 0xb8 0xee
# CHECK: vcvt.f32.s32 s0, s0
0x40 0x0b 0xf8 0xee
# CHECK: vcvt.f64.u32 d16, s0
0x40 0x0a 0xb8 0xee
# CHECK: vcvt.f32.u32 s0, s0
0xe0 0x0b 0xbd 0xee
# CHECK: vcvt.s32.f64 s0, d16
0xc0 0x0a 0xbd 0xee
# CHECK: vcvt.s32.f32 s0, s0
0xe0 0x0b 0xbc 0xee
# CHECK: vcvt.u32.f64 s0, d16
0xc0 0x0a 0xbc 0xee
# CHECK: vcvt.u32.f32 s0, s0
0xa1 0x0b 0x42 0xee
# CHECK: vmla.f64 d16, d18, d17
0x00 0x0a 0x41 0xee
# CHECK: vmla.f32 s1, s2, s0
0xe1 0x0b 0x42 0xee
# CHECK: vmls.f64 d16, d18, d17
0x40 0x0a 0x41 0xee
# CHECK: vmls.f32 s1, s2, s0
0xe1 0x0b 0x52 0xee
# CHECK: vnmla.f64 d16, d18, d17
0x40 0x0a 0x51 0xee
# CHECK: vnmla.f32 s1, s2, s0
0xa1 0x0b 0x52 0xee
# CHECK: vnmls.f64 d16, d18, d17
0x00 0x0a 0x51 0xee
# CHECK: vnmls.f32 s1, s2, s0
0x60 0x0b 0xf1 0x1e
# CHECK: vnegne.f64 d16, d16
0x10 0x0a 0x00 0x1e
0x10 0x1a 0x00 0x0e
# CHECK: vmovne s0, r0
# CHECK: vmoveq s0, r1
0x10 0x0a 0xf1 0xee
# CHECK: vmrs r0, fpscr
0x10 0x0a 0xf8 0xee
# CHECK: vmrs r0, fpexc
0x10 0x0a 0xf0 0xee
# CHECK: vmrs r0, fpsid
0x10 0x1a 0xf9 0xee
# CHECK: vmrs r1, fpinst
0x10 0x8a 0xfa 0xee
# CHECK: vmrs r8, fpinst2
0x10 0x0a 0xe1 0xee
# CHECK: vmsr fpscr, r0
0x10 0x0a 0xe8 0xee
# CHECK: vmsr fpexc, r0
0x10 0x0a 0xe0 0xee
# CHECK: vmsr fpsid, r0
0x10 0x3a 0xe9 0xee
# CHECK: vmsr fpinst, r3
0x10 0x4a 0xea 0xee
# CHECK: vmsr fpinst2, r4
0x10 0x0a 0x00 0xee
0x90 0x1a 0x00 0xee
0x10 0x2a 0x01 0xee
0x90 0x3a 0x01 0xee
# CHECK: vmov s0, r0
# CHECK: vmov s1, r1
# CHECK: vmov s2, r2
# CHECK: vmov s3, r3
0x10 0x0a 0x10 0xee
0x90 0x1a 0x10 0xee
0x10 0x2a 0x11 0xee
0x90 0x3a 0x11 0xee
# CHECK: vmov r0, s0
# CHECK: vmov r1, s1
# CHECK: vmov r2, s2
# CHECK: vmov r3, s3
0x30 0x0b 0x51 0xec
# CHECK: vmov r0, r1, d16
0x00 0x1b 0xd0 0xed
# CHECK: vldr d17, [r0]
0x08 0x1b 0x92 0xed
0x08 0x1b 0x12 0xed
# CHECK: vldr d1, [r2, #32]
# CHECK: vldr d1, [r2, #-32]
0x00 0x2b 0x93 0xed
# CHECK: vldr d2, [r3]
0x00 0x3b 0x9f 0xed
# CHECK: vldr d3, [pc]
0x00 0x6a 0xd0 0xed
# CHECK: vldr s13, [r0]
0x08 0x0a 0xd2 0xed
0x08 0x0a 0x52 0xed
# CHECK: vldr s1, [r2, #32]
# CHECK: vldr s1, [r2, #-32]
0x00 0x1a 0x93 0xed
# CHECK: vldr s2, [r3]
0x00 0x2a 0xdf 0xed
# CHECK: vldr s5, [pc]
0x00 0x4b 0x81 0xed
0x06 0x4b 0x81 0xed
0x06 0x4b 0x01 0xed
# CHECK: vstr d4, [r1]
# CHECK: vstr d4, [r1, #24]
# CHECK: vstr d4, [r1, #-24]
0x00 0x2a 0x81 0xed
0x06 0x2a 0x81 0xed
0x06 0x2a 0x01 0xed
# CHECK: vstr s4, [r1]
# CHECK: vstr s4, [r1, #24]
# CHECK: vstr s4, [r1, #-24]
0x0c 0x2b 0x91 0xec
0x06 0x1a 0x91 0xec
# CHECK: vldmia r1, {d2, d3, d4, d5, d6, d7}
# CHECK: vldmia r1, {s2, s3, s4, s5, s6, s7}
0x0c 0x2b 0x81 0xec
0x06 0x1a 0x81 0xec
# CHECK: vstmia r1, {d2, d3, d4, d5, d6, d7}
# CHECK: vstmia r1, {s2, s3, s4, s5, s6, s7}
0x05 0x9a 0xc0 0x0c
0x0c 0x0b 0xc7 0x0c
0x06 0x9a 0x93 0x0c
0x0a 0x5b 0xd2 0x0c
# CHECK: vstmiaeq r0, {s19, s20, s21, s22, s23}
# CHECK: vstmiaeq r7, {d16, d17, d18, d19, d20, d21}
# CHECK: vldmiaeq r3, {s18, s19, s20, s21, s22, s23}
# CHECK: vldmiaeq r2, {d21, d22, d23, d24, d25}
0x04 0xca 0x6c 0x0d
0x06 0x1b 0x69 0x0d
0x03 0xaa 0x75 0x0d
0x08 0xeb 0x37 0x0d
# CHECK: vstmdbeq r12!, {s25, s26, s27, s28}
# CHECK: vstmdbeq r9!, {d17, d18, d19}
# CHECK: vldmdbeq r5!, {s21, s22, s23}
# CHECK: vldmdbeq r7!, {d14, d15, d16, d17}
0x0d 0x4b 0x96 0x0c
0x0f 0x3b 0xb7 0x0c
0x09 0x1b 0x38 0xed
# CHECK: fldmiaxeq r6, {d4, d5, d6, d7, d8, d9}
# CHECK: fldmiaxeq r7!, {d3, d4, d5, d6, d7, d8, d9}
# CHECK: fldmdbx r8!, {d1, d2, d3, d4}
0x07 0x2b 0x83 0xec
0x05 0x5b 0xa3 0x0c
0x0f 0x3b 0x20 0x1d
# CHECK: fstmiax r3, {d2, d3, d4}
# CHECK: fstmiaxeq r3!, {d5, d6}
# CHECK: fstmdbxne r0!, {d3, d4, d5, d6, d7, d8, d9}
0x04 0x7a 0xa6 0x0c
0x0c 0xfb 0xa4 0x0c
0x03 0xaa 0xf8 0x0c
0x0a 0x3b 0xfb 0x0c
# CHECK: vstmiaeq r6!, {s14, s15, s16, s17}
# CHECK: vstmiaeq r4!, {d15, d16, d17, d18, d19, d20}
# CHECK: vldmiaeq r8!, {s21, s22, s23}
# CHECK: vldmiaeq r11!, {d19, d20, d21, d22, d23}
0x40 0x0b 0xbd 0xee
0x60 0x0a 0xbd 0xee
0x40 0x0b 0xbc 0xee
0x60 0x0a 0xbc 0xee
# CHECK: vcvtr.s32.f64 s0, d0
# CHECK: vcvtr.s32.f32 s0, s1
# CHECK: vcvtr.u32.f64 s0, d0
# CHECK: vcvtr.u32.f32 s0, s1