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
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
|
# RUN: llvm-mc -triple mblaze-unknown-unknown -show-encoding %s | FileCheck %s
# Test to ensure that all FSL immediate operands and FSL instructions
# can be parsed by the assembly parser correctly.
# TYPE F: OPCODE RD NCTAE FSL
# BINARY: 011011 00000 000000 00000 000000 0000
# TYPE FD: OPCODE RD RB NCTAE
# BINARY: 011011 00000 00000 00000 0 00000 00000
# TYPE FP: OPCODE RA NCTA FSL
# 000000 00000 00000 1 0000 0000000 0000
# CHECK: get
# BINARY: 011011 00000 000000 00000 000000 0000
# CHECK: encoding: [0x6c,0x00,0x00,0x00]
get r0, rfsl0
# CHECK: nget
# BINARY: 011011 00000 000000 10000 000000 0000
# CHECK: encoding: [0x6c,0x00,0x40,0x00]
nget r0, rfsl0
# CHECK: cget
# BINARY: 011011 00000 000000 01000 000000 0000
# CHECK: encoding: [0x6c,0x00,0x20,0x00]
cget r0, rfsl0
# CHECK: ncget
# BINARY: 011011 00000 000000 11000 000000 0000
# CHECK: encoding: [0x6c,0x00,0x60,0x00]
ncget r0, rfsl0
# CHECK: tget
# BINARY: 011011 00000 000000 00100 000000 0000
# CHECK: encoding: [0x6c,0x00,0x10,0x00]
tget r0, rfsl0
# CHECK: tnget
# BINARY: 011011 00000 000000 10100 000000 0000
# CHECK: encoding: [0x6c,0x00,0x50,0x00]
tnget r0, rfsl0
# CHECK: tcget
# BINARY: 011011 00000 000000 01100 000000 0000
# CHECK: encoding: [0x6c,0x00,0x30,0x00]
tcget r0, rfsl0
# CHECK: tncget
# BINARY: 011011 00000 000000 11100 000000 0000
# CHECK: encoding: [0x6c,0x00,0x70,0x00]
tncget r0, rfsl0
# CHECK: aget
# BINARY: 011011 00000 000000 00010 000000 0000
# CHECK: encoding: [0x6c,0x00,0x08,0x00]
aget r0, rfsl0
# CHECK: naget
# BINARY: 011011 00000 000000 10010 000000 0000
# CHECK: encoding: [0x6c,0x00,0x48,0x00]
naget r0, rfsl0
# CHECK: caget
# BINARY: 011011 00000 000000 01010 000000 0000
# CHECK: encoding: [0x6c,0x00,0x28,0x00]
caget r0, rfsl0
# CHECK: ncaget
# BINARY: 011011 00000 000000 11010 000000 0000
# CHECK: encoding: [0x6c,0x00,0x68,0x00]
ncaget r0, rfsl0
# CHECK: taget
# BINARY: 011011 00000 000000 00110 000000 0000
# CHECK: encoding: [0x6c,0x00,0x18,0x00]
taget r0, rfsl0
# CHECK: tnaget
# BINARY: 011011 00000 000000 10110 000000 0000
# CHECK: encoding: [0x6c,0x00,0x58,0x00]
tnaget r0, rfsl0
# CHECK: tcaget
# BINARY: 011011 00000 000000 01110 000000 0000
# CHECK: encoding: [0x6c,0x00,0x38,0x00]
tcaget r0, rfsl0
# CHECK: tncaget
# BINARY: 011011 00000 000000 11110 000000 0000
# CHECK: encoding: [0x6c,0x00,0x78,0x00]
tncaget r0, rfsl0
# CHECK: eget
# BINARY: 011011 00000 000000 00001 000000 0000
# CHECK: encoding: [0x6c,0x00,0x04,0x00]
eget r0, rfsl0
# CHECK: neget
# BINARY: 011011 00000 000000 10001 000000 0000
# CHECK: encoding: [0x6c,0x00,0x44,0x00]
neget r0, rfsl0
# CHECK: ecget
# BINARY: 011011 00000 000000 01001 000000 0000
# CHECK: encoding: [0x6c,0x00,0x24,0x00]
ecget r0, rfsl0
# CHECK: necget
# BINARY: 011011 00000 000000 11001 000000 0000
# CHECK: encoding: [0x6c,0x00,0x64,0x00]
necget r0, rfsl0
# CHECK: teget
# BINARY: 011011 00000 000000 00101 000000 0000
# CHECK: encoding: [0x6c,0x00,0x14,0x00]
teget r0, rfsl0
# CHECK: tneget
# BINARY: 011011 00000 000000 10101 000000 0000
# CHECK: encoding: [0x6c,0x00,0x54,0x00]
tneget r0, rfsl0
# CHECK: tecget
# BINARY: 011011 00000 000000 01101 000000 0000
# CHECK: encoding: [0x6c,0x00,0x34,0x00]
tecget r0, rfsl0
# CHECK: tnecget
# BINARY: 011011 00000 000000 11101 000000 0000
# CHECK: encoding: [0x6c,0x00,0x74,0x00]
tnecget r0, rfsl0
# CHECK: eaget
# BINARY: 011011 00000 000000 00011 000000 0000
# CHECK: encoding: [0x6c,0x00,0x0c,0x00]
eaget r0, rfsl0
# CHECK: neaget
# BINARY: 011011 00000 000000 10011 000000 0000
# CHECK: encoding: [0x6c,0x00,0x4c,0x00]
neaget r0, rfsl0
# CHECK: ecaget
# BINARY: 011011 00000 000000 01011 000000 0000
# CHECK: encoding: [0x6c,0x00,0x2c,0x00]
ecaget r0, rfsl0
# CHECK: necaget
# BINARY: 011011 00000 000000 11011 000000 0000
# CHECK: encoding: [0x6c,0x00,0x6c,0x00]
necaget r0, rfsl0
# CHECK: teaget
# BINARY: 011011 00000 000000 00111 000000 0000
# CHECK: encoding: [0x6c,0x00,0x1c,0x00]
teaget r0, rfsl0
# CHECK: tneaget
# BINARY: 011011 00000 000000 10111 000000 0000
# CHECK: encoding: [0x6c,0x00,0x5c,0x00]
tneaget r0, rfsl0
# CHECK: tecaget
# BINARY: 011011 00000 000000 01111 000000 0000
# CHECK: encoding: [0x6c,0x00,0x3c,0x00]
tecaget r0, rfsl0
# CHECK: tnecaget
# BINARY: 011011 00000 000000 11111 000000 0000
# CHECK: encoding: [0x6c,0x00,0x7c,0x00]
tnecaget r0, rfsl0
# CHECK: getd
# BINARY: 010011 00000 00000 00001 0 00000 00000
# CHECK: encoding: [0x4c,0x00,0x08,0x00]
getd r0, r1
# CHECK: ngetd
# BINARY: 010011 00000 00000 00001 0 10000 00000
# CHECK: encoding: [0x4c,0x00,0x0a,0x00]
ngetd r0, r1
# CHECK: cgetd
# BINARY: 010011 00000 00000 00001 0 01000 00000
# CHECK: encoding: [0x4c,0x00,0x09,0x00]
cgetd r0, r1
# CHECK: ncgetd
# BINARY: 010011 00000 00000 00001 0 11000 00000
# CHECK: encoding: [0x4c,0x00,0x0b,0x00]
ncgetd r0, r1
# CHECK: tgetd
# BINARY: 010011 00000 00000 00001 0 00100 00000
# CHECK: encoding: [0x4c,0x00,0x08,0x80]
tgetd r0, r1
# CHECK: tngetd
# BINARY: 010011 00000 00000 00001 0 10100 00000
# CHECK: encoding: [0x4c,0x00,0x0a,0x80]
tngetd r0, r1
# CHECK: tcgetd
# BINARY: 010011 00000 00000 00001 0 01100 00000
# CHECK: encoding: [0x4c,0x00,0x09,0x80]
tcgetd r0, r1
# CHECK: tncgetd
# BINARY: 010011 00000 00000 00001 0 11100 00000
# CHECK: encoding: [0x4c,0x00,0x0b,0x80]
tncgetd r0, r1
# CHECK: agetd
# BINARY: 010011 00000 00000 00001 0 00010 00000
# CHECK: encoding: [0x4c,0x00,0x08,0x40]
agetd r0, r1
# CHECK: nagetd
# BINARY: 010011 00000 00000 00001 0 10010 00000
# CHECK: encoding: [0x4c,0x00,0x0a,0x40]
nagetd r0, r1
# CHECK: cagetd
# BINARY: 010011 00000 00000 00001 0 01010 00000
# CHECK: encoding: [0x4c,0x00,0x09,0x40]
cagetd r0, r1
# CHECK: ncagetd
# BINARY: 010011 00000 00000 00001 0 11010 00000
# CHECK: encoding: [0x4c,0x00,0x0b,0x40]
ncagetd r0, r1
# CHECK: tagetd
# BINARY: 010011 00000 00000 00001 0 00110 00000
# CHECK: encoding: [0x4c,0x00,0x08,0xc0]
tagetd r0, r1
# CHECK: tnagetd
# BINARY: 010011 00000 00000 00001 0 10110 00000
# CHECK: encoding: [0x4c,0x00,0x0a,0xc0]
tnagetd r0, r1
# CHECK: tcagetd
# BINARY: 010011 00000 00000 00001 0 01110 00000
# CHECK: encoding: [0x4c,0x00,0x09,0xc0]
tcagetd r0, r1
# CHECK: tncagetd
# BINARY: 010011 00000 00000 00001 0 11110 00000
# CHECK: encoding: [0x4c,0x00,0x0b,0xc0]
tncagetd r0, r1
# CHECK: egetd
# BINARY: 010011 00000 00000 00001 0 00001 00000
# CHECK: encoding: [0x4c,0x00,0x08,0x20]
egetd r0, r1
# CHECK: negetd
# BINARY: 010011 00000 00000 00001 0 10001 00000
# CHECK: encoding: [0x4c,0x00,0x0a,0x20]
negetd r0, r1
# CHECK: ecgetd
# BINARY: 010011 00000 00000 00001 0 01001 00000
# CHECK: encoding: [0x4c,0x00,0x09,0x20]
ecgetd r0, r1
# CHECK: necgetd
# BINARY: 010011 00000 00000 00001 0 11001 00000
# CHECK: encoding: [0x4c,0x00,0x0b,0x20]
necgetd r0, r1
# CHECK: tegetd
# BINARY: 010011 00000 00000 00001 0 00101 00000
# CHECK: encoding: [0x4c,0x00,0x08,0xa0]
tegetd r0, r1
# CHECK: tnegetd
# BINARY: 010011 00000 00000 00001 0 10101 00000
# CHECK: encoding: [0x4c,0x00,0x0a,0xa0]
tnegetd r0, r1
# CHECK: tecgetd
# BINARY: 010011 00000 00000 00001 0 01101 00000
# CHECK: encoding: [0x4c,0x00,0x09,0xa0]
tecgetd r0, r1
# CHECK: tnecgetd
# BINARY: 010011 00000 00000 00001 0 11101 00000
# CHECK: encoding: [0x4c,0x00,0x0b,0xa0]
tnecgetd r0, r1
# CHECK: eagetd
# BINARY: 010011 00000 00000 00001 0 00011 00000
# CHECK: encoding: [0x4c,0x00,0x08,0x60]
eagetd r0, r1
# CHECK: neagetd
# BINARY: 010011 00000 00000 00001 0 10011 00000
# CHECK: encoding: [0x4c,0x00,0x0a,0x60]
neagetd r0, r1
# CHECK: ecagetd
# BINARY: 010011 00000 00000 00001 0 01011 00000
# CHECK: encoding: [0x4c,0x00,0x09,0x60]
ecagetd r0, r1
# CHECK: necagetd
# BINARY: 010011 00000 00000 00001 0 11011 00000
# CHECK: encoding: [0x4c,0x00,0x0b,0x60]
necagetd r0, r1
# CHECK: teagetd
# BINARY: 010011 00000 00000 00001 0 00111 00000
# CHECK: encoding: [0x4c,0x00,0x08,0xe0]
teagetd r0, r1
# CHECK: tneagetd
# BINARY: 010011 00000 00000 00001 0 10111 00000
# CHECK: encoding: [0x4c,0x00,0x0a,0xe0]
tneagetd r0, r1
# CHECK: tecagetd
# BINARY: 010011 00000 00000 00001 0 01111 00000
# CHECK: encoding: [0x4c,0x00,0x09,0xe0]
tecagetd r0, r1
# CHECK: tnecagetd
# BINARY: 010011 00000 00000 00001 0 11111 00000
# CHECK: encoding: [0x4c,0x00,0x0b,0xe0]
tnecagetd r0, r1
# CHECK: put
# BINARY: 011011 00000 00000 1 0000 0000000 0000
# CHECK: encoding: [0x6c,0x00,0x80,0x00]
put r0, rfsl0
# CHECK: aput
# BINARY: 011011 00000 00000 1 0001 0000000 0000
# CHECK: encoding: [0x6c,0x00,0x88,0x00]
aput r0, rfsl0
# CHECK: cput
# BINARY: 011011 00000 00000 1 0100 0000000 0000
# CHECK: encoding: [0x6c,0x00,0xa0,0x00]
cput r0, rfsl0
# CHECK: caput
# BINARY: 011011 00000 00000 1 0101 0000000 0000
# CHECK: encoding: [0x6c,0x00,0xa8,0x00]
caput r0, rfsl0
# CHECK: nput
# BINARY: 011011 00000 00000 1 1000 0000000 0000
# CHECK: encoding: [0x6c,0x00,0xc0,0x00]
nput r0, rfsl0
# CHECK: naput
# BINARY: 011011 00000 00000 1 1001 0000000 0000
# CHECK: encoding: [0x6c,0x00,0xc8,0x00]
naput r0, rfsl0
# CHECK: ncput
# BINARY: 011011 00000 00000 1 1100 0000000 0000
# CHECK: encoding: [0x6c,0x00,0xe0,0x00]
ncput r0, rfsl0
# CHECK: ncaput
# BINARY: 011011 00000 00000 1 1101 0000000 0000
# CHECK: encoding: [0x6c,0x00,0xe8,0x00]
ncaput r0, rfsl0
# CHECK: tput
# BINARY: 011011 00000 00000 1 0010 0000000 0000
# CHECK: encoding: [0x6c,0x00,0x90,0x00]
tput rfsl0
# CHECK: taput
# BINARY: 011011 00000 00000 1 0011 0000000 0000
# CHECK: encoding: [0x6c,0x00,0x98,0x00]
taput rfsl0
# CHECK: tcput
# BINARY: 011011 00000 00000 1 0110 0000000 0000
# CHECK: encoding: [0x6c,0x00,0xb0,0x00]
tcput rfsl0
# CHECK: tcaput
# BINARY: 011011 00000 00000 1 0111 0000000 0000
# CHECK: encoding: [0x6c,0x00,0xb8,0x00]
tcaput rfsl0
# CHECK: tnput
# BINARY: 011011 00000 00000 1 1010 0000000 0000
# CHECK: encoding: [0x6c,0x00,0xd0,0x00]
tnput rfsl0
# CHECK: tnaput
# BINARY: 011011 00000 00000 1 1011 0000000 0000
# CHECK: encoding: [0x6c,0x00,0xd8,0x00]
tnaput rfsl0
# CHECK: tncput
# BINARY: 011011 00000 00000 1 1110 0000000 0000
# CHECK: encoding: [0x6c,0x00,0xf0,0x00]
tncput rfsl0
# CHECK: tncaput
# BINARY: 011011 00000 00000 1 1111 0000000 0000
# CHECK: encoding: [0x6c,0x00,0xf8,0x00]
tncaput rfsl0
# CHECK: putd
# BINARY: 010011 00000 00000 00001 1 0000 000000
# CHECK: encoding: [0x4c,0x00,0x0c,0x00]
putd r0, r1
# CHECK: aputd
# BINARY: 010011 00000 00000 00001 1 0001 000000
# CHECK: encoding: [0x4c,0x00,0x0c,0x40]
aputd r0, r1
# CHECK: cputd
# BINARY: 010011 00000 00000 00001 1 0100 000000
# CHECK: encoding: [0x4c,0x00,0x0d,0x00]
cputd r0, r1
# CHECK: caputd
# BINARY: 010011 00000 00000 00001 1 0101 000000
# CHECK: encoding: [0x4c,0x00,0x0d,0x40]
caputd r0, r1
# CHECK: nputd
# BINARY: 010011 00000 00000 00001 1 1000 000000
# CHECK: encoding: [0x4c,0x00,0x0e,0x00]
nputd r0, r1
# CHECK: naputd
# BINARY: 010011 00000 00000 00001 1 1001 000000
# CHECK: encoding: [0x4c,0x00,0x0e,0x40]
naputd r0, r1
# CHECK: ncputd
# BINARY: 010011 00000 00000 00001 1 1100 000000
# CHECK: encoding: [0x4c,0x00,0x0f,0x00]
ncputd r0, r1
# CHECK: ncaputd
# BINARY: 010011 00000 00000 00001 1 1101 000000
# CHECK: encoding: [0x4c,0x00,0x0f,0x40]
ncaputd r0, r1
# CHECK: tputd
# BINARY: 010011 00000 00000 00001 1 0010 000000
# CHECK: encoding: [0x4c,0x00,0x0c,0x80]
tputd r1
# CHECK: taputd
# BINARY: 010011 00000 00000 00001 1 0011 000000
# CHECK: encoding: [0x4c,0x00,0x0c,0xc0]
taputd r1
# CHECK: tcputd
# BINARY: 010011 00000 00000 00001 1 0110 000000
# CHECK: encoding: [0x4c,0x00,0x0d,0x80]
tcputd r1
# CHECK: tcaputd
# BINARY: 010011 00000 00000 00001 1 0111 000000
# CHECK: encoding: [0x4c,0x00,0x0d,0xc0]
tcaputd r1
# CHECK: tnputd
# BINARY: 010011 00000 00000 00001 1 1010 000000
# CHECK: encoding: [0x4c,0x00,0x0e,0x80]
tnputd r1
# CHECK: tnaputd
# BINARY: 010011 00000 00000 00001 1 1011 000000
# CHECK: encoding: [0x4c,0x00,0x0e,0xc0]
tnaputd r1
# CHECK: tncputd
# BINARY: 010011 00000 00000 00001 1 1110 000000
# CHECK: encoding: [0x4c,0x00,0x0f,0x80]
tncputd r1
# CHECK: tncaputd
# BINARY: 010011 00000 00000 00001 1 1111 000000
# CHECK: encoding: [0x4c,0x00,0x0f,0xc0]
tncaputd r1
# CHECK: get
# BINARY: 011011 00000 000000 00000 000000 0001
# CHECK: encoding: [0x6c,0x00,0x00,0x01]
get r0, rfsl1
# CHECK: get
# BINARY: 011011 00000 000000 00000 000000 0010
# CHECK: encoding: [0x6c,0x00,0x00,0x02]
get r0, rfsl2
# CHECK: get
# BINARY: 011011 00000 000000 00000 000000 0011
# CHECK: encoding: [0x6c,0x00,0x00,0x03]
get r0, rfsl3
# CHECK: get
# BINARY: 011011 00000 000000 00000 000000 0100
# CHECK: encoding: [0x6c,0x00,0x00,0x04]
get r0, rfsl4
# CHECK: get
# BINARY: 011011 00000 000000 00000 000000 0101
# CHECK: encoding: [0x6c,0x00,0x00,0x05]
get r0, rfsl5
# CHECK: get
# BINARY: 011011 00000 000000 00000 000000 0110
# CHECK: encoding: [0x6c,0x00,0x00,0x06]
get r0, rfsl6
# CHECK: get
# BINARY: 011011 00000 000000 00000 000000 0111
# CHECK: encoding: [0x6c,0x00,0x00,0x07]
get r0, rfsl7
# CHECK: get
# BINARY: 011011 00000 000000 00000 000000 1000
# CHECK: encoding: [0x6c,0x00,0x00,0x08]
get r0, rfsl8
# CHECK: get
# BINARY: 011011 00000 000000 00000 000000 1001
# CHECK: encoding: [0x6c,0x00,0x00,0x09]
get r0, rfsl9
# CHECK: get
# BINARY: 011011 00000 000000 00000 000000 1010
# CHECK: encoding: [0x6c,0x00,0x00,0x0a]
get r0, rfsl10
# CHECK: get
# BINARY: 011011 00000 000000 00000 000000 1011
# CHECK: encoding: [0x6c,0x00,0x00,0x0b]
get r0, rfsl11
# CHECK: get
# BINARY: 011011 00000 000000 00000 000000 1100
# CHECK: encoding: [0x6c,0x00,0x00,0x0c]
get r0, rfsl12
# CHECK: get
# BINARY: 011011 00000 000000 00000 000000 1101
# CHECK: encoding: [0x6c,0x00,0x00,0x0d]
get r0, rfsl13
# CHECK: get
# BINARY: 011011 00000 000000 00000 000000 1110
# CHECK: encoding: [0x6c,0x00,0x00,0x0e]
get r0, rfsl14
# CHECK: get
# BINARY: 011011 00000 000000 00000 000000 1111
# CHECK: encoding: [0x6c,0x00,0x00,0x0f]
get r0, rfsl15
|