blob: 15c23b644886194ab48977e849c3e6fb36e5d033 (
plain)
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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
|
# RUN: llvm-mc -triple hexagon -disassemble < %s | FileCheck %s
# Hexagon Programmer's Reference Manual 11.5 LD
# Load doubleword
0x90 0xff 0xd5 0x3a
# CHECK: r17:16 = memd(r21 + r31<<#3)
0x10 0xc5 0xc0 0x49
# CHECK: r17:16 = memd(##320)
0xb0 0xe0 0xd5 0x99
# CHECK: r17:16 = memd(r21 ++ #40:circ(m1))
0x10 0xe2 0xd5 0x99
# CHECK: r17:16 = memd(r21 ++ I:circ(m1))
0xb0 0xc0 0xd5 0x9b
# CHECK: r17:16 = memd(r21++#40)
0x10 0xe0 0xd5 0x9d
# CHECK: r17:16 = memd(r21++m1)
0x10 0xe0 0xd5 0x9f
# CHECK: r17:16 = memd(r21 ++ m1:brev)
# Load doubleword conditionally
0xf0 0xff 0xd5 0x30
# CHECK: if (p3) r17:16 = memd(r21+r31<<#3)
0xf0 0xff 0xd5 0x31
# CHECK: if (!p3) r17:16 = memd(r21+r31<<#3)
0x03 0x40 0x45 0x85 0xf0 0xff 0xd5 0x32
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) r17:16 = memd(r21+r31<<#3)
0x03 0x40 0x45 0x85 0xf0 0xff 0xd5 0x33
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) r17:16 = memd(r21+r31<<#3)
0x70 0xd8 0xd5 0x41
# CHECK: if (p3) r17:16 = memd(r21 + #24)
0x03 0x40 0x45 0x85 0x70 0xd8 0xd5 0x43
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) r17:16 = memd(r21 + #24)
0x70 0xd8 0xd5 0x45
# CHECK: if (!p3) r17:16 = memd(r21 + #24)
0x03 0x40 0x45 0x85 0x70 0xd8 0xd5 0x47
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) r17:16 = memd(r21 + #24)
0xb0 0xe6 0xd5 0x9b
# CHECK: if (p3) r17:16 = memd(r21++#40)
0xb0 0xee 0xd5 0x9b
# CHECK: if (!p3) r17:16 = memd(r21++#40)
0x03 0x40 0x45 0x85 0xb0 0xf6 0xd5 0x9b
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) r17:16 = memd(r21++#40)
0x03 0x40 0x45 0x85 0xb0 0xfe 0xd5 0x9b
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) r17:16 = memd(r21++#40)
# Load byte
0x91 0xff 0x15 0x3a
# CHECK: r17 = memb(r21 + r31<<#3)
0xb1 0xc2 0x00 0x49
# CHECK: r17 = memb(##21)
0xf1 0xc3 0x15 0x91
# CHECK: r17 = memb(r21 + #31)
0xb1 0xe0 0x15 0x99
# CHECK: r17 = memb(r21 ++ #5:circ(m1))
0x11 0xe2 0x15 0x99
# CHECK: r17 = memb(r21 ++ I:circ(m1))
0xb1 0xc0 0x15 0x9b
# CHECK: r17 = memb(r21++#5)
0x11 0xe0 0x15 0x9d
# CHECK: r17 = memb(r21++m1)
0x11 0xe0 0x15 0x9f
# CHECK: r17 = memb(r21 ++ m1:brev)
# Load byte conditionally
0xf1 0xff 0x15 0x30
# CHECK: if (p3) r17 = memb(r21+r31<<#3)
0xf1 0xff 0x15 0x31
# CHECK: if (!p3) r17 = memb(r21+r31<<#3)
0x03 0x40 0x45 0x85 0xf1 0xff 0x15 0x32
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) r17 = memb(r21+r31<<#3)
0x03 0x40 0x45 0x85 0xf1 0xff 0x15 0x33
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) r17 = memb(r21+r31<<#3)
0x91 0xdd 0x15 0x41
# CHECK: if (p3) r17 = memb(r21 + #44)
0x03 0x40 0x45 0x85 0x91 0xdd 0x15 0x43
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) r17 = memb(r21 + #44)
0x91 0xdd 0x15 0x45
# CHECK: if (!p3) r17 = memb(r21 + #44)
0x03 0x40 0x45 0x85 0x91 0xdd 0x15 0x47
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) r17 = memb(r21 + #44)
0xb1 0xe6 0x15 0x9b
# CHECK: if (p3) r17 = memb(r21++#5)
0xb1 0xee 0x15 0x9b
# CHECK: if (!p3) r17 = memb(r21++#5)
0x03 0x40 0x45 0x85 0xb1 0xf6 0x15 0x9b
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) r17 = memb(r21++#5)
0x03 0x40 0x45 0x85 0xb1 0xfe 0x15 0x9b
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) r17 = memb(r21++#5)
# Load halfword
0x91 0xff 0x55 0x3a
# CHECK: r17 = memh(r21 + r31<<#3)
0x51 0xc5 0x40 0x49
# CHECK: r17 = memh(##84)
0xf1 0xc3 0x55 0x91
# CHECK: r17 = memh(r21 + #62)
0xb1 0xe0 0x55 0x99
# CHECK: r17 = memh(r21 ++ #10:circ(m1))
0x11 0xe2 0x55 0x99
# CHECK: r17 = memh(r21 ++ I:circ(m1))
0xb1 0xc0 0x55 0x9b
# CHECK: r17 = memh(r21++#10)
0x11 0xe0 0x55 0x9d
# CHECK: r17 = memh(r21++m1)
0x11 0xe0 0x55 0x9f
# CHECK: r17 = memh(r21 ++ m1:brev)
# Load halfword conditionally
0xf1 0xff 0x55 0x30
# CHECK: if (p3) r17 = memh(r21+r31<<#3)
0xf1 0xff 0x55 0x31
# CHECK: if (!p3) r17 = memh(r21+r31<<#3)
0x03 0x40 0x45 0x85 0xf1 0xff 0x55 0x32
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) r17 = memh(r21+r31<<#3)
0x03 0x40 0x45 0x85 0xf1 0xff 0x55 0x33
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) r17 = memh(r21+r31<<#3)
0xb1 0xe6 0x55 0x9b
# CHECK: if (p3) r17 = memh(r21++#10)
0xb1 0xee 0x55 0x9b
# CHECK: if (!p3) r17 = memh(r21++#10)
0x03 0x40 0x45 0x85 0xb1 0xf6 0x55 0x9b
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) r17 = memh(r21++#10)
0x03 0x40 0x45 0x85 0xb1 0xfe 0x55 0x9b
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) r17 = memh(r21++#10)
# Load unsigned byte
0x91 0xff 0x35 0x3a
# CHECK: r17 = memub(r21 + r31<<#3)
0xb1 0xc2 0x20 0x49
# CHECK: r17 = memub(##21)
0xf1 0xc3 0x35 0x91
# CHECK: r17 = memub(r21 + #31)
0xb1 0xe0 0x35 0x99
# CHECK: r17 = memub(r21 ++ #5:circ(m1))
0x11 0xe2 0x35 0x99
# CHECK: r17 = memub(r21 ++ I:circ(m1))
0xb1 0xc0 0x35 0x9b
# CHECK: r17 = memub(r21++#5)
0x11 0xe0 0x35 0x9d
# CHECK: r17 = memub(r21++m1)
0x11 0xe0 0x35 0x9f
# CHECK: r17 = memub(r21 ++ m1:brev)
# Load unsigned byte conditionally
0xf1 0xff 0x35 0x30
# CHECK: if (p3) r17 = memub(r21+r31<<#3)
0xf1 0xff 0x35 0x31
# CHECK: if (!p3) r17 = memub(r21+r31<<#3)
0x03 0x40 0x45 0x85 0xf1 0xff 0x35 0x32
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) r17 = memub(r21+r31<<#3)
0x03 0x40 0x45 0x85 0xf1 0xff 0x35 0x33
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) r17 = memub(r21+r31<<#3)
0xf1 0xdb 0x35 0x41
# CHECK: if (p3) r17 = memub(r21 + #31)
0x03 0x40 0x45 0x85 0xf1 0xdb 0x35 0x43
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) r17 = memub(r21 + #31)
0xf1 0xdb 0x35 0x45
# CHECK: if (!p3) r17 = memub(r21 + #31)
0x03 0x40 0x45 0x85 0xf1 0xdb 0x35 0x47
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) r17 = memub(r21 + #31)
0xb1 0xe6 0x35 0x9b
# CHECK: if (p3) r17 = memub(r21++#5)
0xb1 0xee 0x35 0x9b
# CHECK: if (!p3) r17 = memub(r21++#5)
0x03 0x40 0x45 0x85 0xb1 0xf6 0x35 0x9b
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) r17 = memub(r21++#5)
0x03 0x40 0x45 0x85 0xb1 0xfe 0x35 0x9b
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) r17 = memub(r21++#5)
# Load unsigned halfword
0x91 0xff 0x75 0x3a
# CHECK: r17 = memuh(r21 + r31<<#3)
0x51 0xc5 0x60 0x49
# CHECK: r17 = memuh(##84)
0xb1 0xc2 0x75 0x91
# CHECK: r17 = memuh(r21 + #42)
0xb1 0xe0 0x75 0x99
# CHECK: r17 = memuh(r21 ++ #10:circ(m1))
0x11 0xe2 0x75 0x99
# CHECK: r17 = memuh(r21 ++ I:circ(m1))
0xb1 0xc0 0x75 0x9b
# CHECK: r17 = memuh(r21++#10)
0x11 0xe0 0x75 0x9d
# CHECK: r17 = memuh(r21++m1)
0x11 0xe0 0x75 0x9f
# CHECK: r17 = memuh(r21 ++ m1:brev)
# Load unsigned halfword conditionally
0xf1 0xff 0x75 0x30
# CHECK: if (p3) r17 = memuh(r21+r31<<#3)
0xf1 0xff 0x75 0x31
# CHECK: if (!p3) r17 = memuh(r21+r31<<#3)
0x03 0x40 0x45 0x85 0xf1 0xff 0x75 0x32
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) r17 = memuh(r21+r31<<#3)
0x03 0x40 0x45 0x85 0xf1 0xff 0x75 0x33
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) r17 = memuh(r21+r31<<#3)
0xb1 0xda 0x75 0x41
# CHECK: if (p3) r17 = memuh(r21 + #42)
0xb1 0xda 0x75 0x45
# CHECK: if (!p3) r17 = memuh(r21 + #42)
0x03 0x40 0x45 0x85 0xb1 0xda 0x75 0x43
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) r17 = memuh(r21 + #42)
0x03 0x40 0x45 0x85 0xb1 0xda 0x75 0x47
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) r17 = memuh(r21 + #42)
0xb1 0xe6 0x75 0x9b
# CHECK: if (p3) r17 = memuh(r21++#10)
0xb1 0xee 0x75 0x9b
# CHECK: if (!p3) r17 = memuh(r21++#10)
0x03 0x40 0x45 0x85 0xb1 0xf6 0x75 0x9b
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) r17 = memuh(r21++#10)
0x03 0x40 0x45 0x85 0xb1 0xfe 0x75 0x9b
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) r17 = memuh(r21++#10)
# Load word
0x91 0xff 0x95 0x3a
# CHECK: r17 = memw(r21 + r31<<#3)
0x91 0xc2 0x80 0x49
# CHECK: r17 = memw(##80)
0xb1 0xc2 0x95 0x91
# CHECK: r17 = memw(r21 + #84)
0xb1 0xe0 0x95 0x99
# CHECK: r17 = memw(r21 ++ #20:circ(m1))
0x11 0xe2 0x95 0x99
# CHECK: r17 = memw(r21 ++ I:circ(m1))
0xb1 0xc0 0x95 0x9b
# CHECK: r17 = memw(r21++#20)
0x11 0xe0 0x95 0x9d
# CHECK: r17 = memw(r21++m1)
0x11 0xe0 0x95 0x9f
# CHECK: r17 = memw(r21 ++ m1:brev)
# Load word conditionally
0xf1 0xff 0x95 0x30
# CHECK: if (p3) r17 = memw(r21+r31<<#3)
0xf1 0xff 0x95 0x31
# CHECK: if (!p3) r17 = memw(r21+r31<<#3)
0x03 0x40 0x45 0x85 0xf1 0xff 0x95 0x32
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) r17 = memw(r21+r31<<#3)
0x03 0x40 0x45 0x85 0xf1 0xff 0x95 0x33
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) r17 = memw(r21+r31<<#3)
0xb1 0xda 0x95 0x41
# CHECK: if (p3) r17 = memw(r21 + #84)
0xb1 0xda 0x95 0x45
# CHECK: if (!p3) r17 = memw(r21 + #84)
0x03 0x40 0x45 0x85 0xb1 0xda 0x95 0x43
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) r17 = memw(r21 + #84)
0x03 0x40 0x45 0x85 0xb1 0xda 0x95 0x47
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) r17 = memw(r21 + #84)
0xb1 0xe6 0x95 0x9b
# CHECK: if (p3) r17 = memw(r21++#20)
0xb1 0xee 0x95 0x9b
# CHECK: if (!p3) r17 = memw(r21++#20)
0x03 0x40 0x45 0x85 0xb1 0xf6 0x95 0x9b
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) r17 = memw(r21++#20)
0x03 0x40 0x45 0x85 0xb1 0xfe 0x95 0x9b
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) r17 = memw(r21++#20)
# Deallocate stack frame
0x1e 0xc0 0x1e 0x90
# CHECK: deallocframe
# Deallocate stack frame and return
0x1e 0xc0 0x1e 0x96
# CHECK: dealloc_return
0x03 0x40 0x45 0x85 0x1e 0xcb 0x1e 0x96
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) dealloc_return:nt
0x1e 0xd3 0x1e 0x96
# CHECK: if (p3) dealloc_return
0x03 0x40 0x45 0x85 0x1e 0xdb 0x1e 0x96
# CHECK: p3 = r5
# CHECK-NEXT: if (p3.new) dealloc_return:t
0x03 0x40 0x45 0x85 0x1e 0xeb 0x1e 0x96
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) dealloc_return:nt
0x1e 0xf3 0x1e 0x96
# CHECK: if (!p3) dealloc_return
0x03 0x40 0x45 0x85 0x1e 0xfb 0x1e 0x96
# CHECK: p3 = r5
# CHECK-NEXT: if (!p3.new) dealloc_return:t
# Load and unpack bytes to halfwords
0xf1 0xc3 0x35 0x90
# CHECK: r17 = membh(r21 + #62)
0xf1 0xc3 0x75 0x90
# CHECK: r17 = memubh(r21 + #62)
0xf0 0xc3 0xb5 0x90
# CHECK: r17:16 = memubh(r21 + #124)
0xf0 0xc3 0xf5 0x90
# CHECK: r17:16 = membh(r21 + #124)
0xb1 0xe0 0x35 0x98
# CHECK: r17 = membh(r21 ++ #10:circ(m1))
0x11 0xe2 0x35 0x98
# CHECK: r17 = membh(r21 ++ I:circ(m1))
0xb1 0xe0 0x75 0x98
# CHECK: r17 = memubh(r21 ++ #10:circ(m1))
0x11 0xe2 0x75 0x98
# CHECK: r17 = memubh(r21 ++ I:circ(m1))
0xb0 0xe0 0xf5 0x98
# CHECK: r17:16 = membh(r21 ++ #20:circ(m1))
0x10 0xe2 0xf5 0x98
# CHECK: r17:16 = membh(r21 ++ I:circ(m1))
0xb0 0xe0 0xb5 0x98
# CHECK: r17:16 = memubh(r21 ++ #20:circ(m1))
0x10 0xe2 0xb5 0x98
# CHECK: r17:16 = memubh(r21 ++ I:circ(m1))
0xb1 0xc0 0x35 0x9a
# CHECK: r17 = membh(r21++#10)
0xb1 0xc0 0x75 0x9a
# CHECK: r17 = memubh(r21++#10)
0xb0 0xc0 0xb5 0x9a
# CHECK: r17:16 = memubh(r21++#20)
0xb0 0xc0 0xf5 0x9a
# CHECK: r17:16 = membh(r21++#20)
0x11 0xe0 0x35 0x9c
# CHECK: r17 = membh(r21++m1)
0x11 0xe0 0x75 0x9c
# CHECK: r17 = memubh(r21++m1)
0x10 0xe0 0xf5 0x9c
# CHECK: r17:16 = membh(r21++m1)
0x10 0xe0 0xb5 0x9c
# CHECK: r17:16 = memubh(r21++m1)
0x11 0xe0 0x35 0x9e
# CHECK: r17 = membh(r21 ++ m1:brev)
0x11 0xe0 0x75 0x9e
# CHECK: r17 = memubh(r21 ++ m1:brev)
0x10 0xe0 0xb5 0x9e
# CHECK: r17:16 = memubh(r21 ++ m1:brev)
0x10 0xe0 0xf5 0x9e
# CHECK: r17:16 = membh(r21 ++ m1:brev)
|