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
|
0 0 0 0 0 0 0 0 BRK (v1, v2, v3)
0 0 0 0 0 0 1 0 RTS (v1, v2, v3)
0 0 0 0 0 0 1 1 NOP (v1, v2, v3)
0 0 0 0 0 1 0 0 | [ pcdsp:24 ] BRA.A src (v1, v2, v3)
0 0 0 0 0 1 0 1 | [ pcdsp:24 ] BSR.A src (v1, v2, v3)
0 0 0 0 0 1 1 0 | mi [ opc ] ld | [ rs ] [ rd ] SUB src, dest (v1, v2, v3)
0 0 => B 0 0 => [Rs]
0 1 => W 0 1 => dsp:8[Rs]
1 0 => L 1 0 => dsp:16[Rs]
1 1 => UW 1 1 => Rs
opc={sub, cmp, add, mul, and, or, X, X, see below}
0 0 0 0 0 1 1 0 | mi 1 0 0 0 ld | 0 0 0 [ opc ] | [ rs ] [ rd ] SBB src, dest (v1, v2, v3)
1 0 => L
_ _ => invalid
00 => [Rs]
01 => dsp:8[Rs]
10 => dsp:16[Rs]
opc={
sbb(mi=10,ld!=11), X, adc(mi=10,ld!=11), X,
max, min, emul, emulu,
div, divu, X, X
tst, xor, X, X,
xchg, itof, X, X,
X, utof(v2, v3), X, X,
X, X, X, X,
X, X, X, X,
}
0 0 0 0 1 [dsp] BRA.S src (v1, v2, v3)
0 0 0 1 c [dsp] BCnd.S src (v1, v2, v3)
0 => beq/bz (src = if dsp > 2 { dsp } else { dsp + 8 })
1 => bne/bnz
0 0 1 0 [ cnd ] | [ pcdsp ] BCnd.B src (v1, v2, v3)
cnd => {eq, ne, geu, ltu, gtu, leu, pz, n, ge, lt, gt, le, o, no, bra.b, Reserved}
0 0 1 0 1 1 1 0 | [ pcdsp ] BRA.B src (v1, v2, v3)
(bcnd.b w/ cnd = 1110)
0 0 1 1 1 0 0 0 | [ pcdsp:16 ] BRA.W src (v1, v2, v3)
0 0 1 1 1 0 0 1 | [ pcdsp:16 ] BSR.W src (v1, v2, v3)
0 0 1 1 1 0 1 c | [ pcdsp:16 ] BCnd.W src (v1, v2, v3)
0 => beq
1 => bne
0 0 1 1 1 1 sz | d [rdd] i s p p MOV.size src, dest (v1, v2, v3)
00 => B dispp: 5bit
01 => W "rdd" is 3-bit selector of r0..r7
10 => L
0 0 1 1 1 1 1 1 | [ rd ] [ rd2 ] | uimm8 RTSD src, dest-dest2 (v1, v2, v3)
0 1 0 [opc] ld | [ rs ] [ rd ] SUB src, dest (v1, v2, v3)
0 0 => [Rs]
0 1 => dsp:8[Rs]
1 0 => dsp:16[Rs]
1 1 => Rs
opc={sub, cmp, add, mul, and, or}
0 1 0 1 1 S ld | [ rs ] [ rd ] MOVU.size src, dest (v1, v2, v3)
S:0 => B
S:1 => W
0 1 1 0 0 [opc] | [ imm ] [ rd ] SUB src, dest (v1, v2, v3)
opc={sub, cmp, add, mul, and, or, mov.size(??), see RTSD}
0 1 1 0 0 1 1 1 | uimm8 RTSD src (v1, v2, v3)
0 1 1 0 1 0 0 i | m m m 5 [ rd ] SHLR src, dest (v1, v2, v3)
immm5: 5-bit immediate (rotate amount)
0 1 1 0 1 0 1 i | m m m 5 [ rd ] SHAR src, dest (v1, v2, v3)
immm5: 5-bit immediate (rotate amount)
0 1 1 0 1 1 0 i | m m m 5 [ rd ] SHLL src, dest (v1, v2, v3)
immm5: 5-bit immediate (rotate amount)
0 1 1 0 1 1 1 0 | [ rs ] [ rs2 ] PUSHM src-src2 (v1, v2, v3)
0 1 1 0 1 1 1 1 | [ rd ] [ rd2 ] POPM dest-dest2 (v1, v2, v3)
rd: 0001 to 1110
rd2: 0010 to 1111
0 1 1 1 0 0 li | [ rs2 ] [ rd ] ADD src, src2, dest (v1, v2, v3)
0 1 => [simm:8]
1 0 => [simm:16]
1 1 => [simm:24]
0 0 => [imm:32]
0 1 1 1 0 1 li | [ opc ] [ rs2 ] CMP src, src2 (v1, v2, v3)
0 1 => [simm:8]
1 0 => [simm:16]
1 1 => [simm:24]
0 0 => [imm:32]
opc={cmp, mul, and, or}
0 1 1 1 0 1 0 1 | 0 1 0 0 [ rd ] | [ uimm:8 ] MOV.size src, dest (v1, v2, v3)
0 1 1 1 0 1 0 1 | 0 1 0 1 [ rs2 ] | [ uimm:8 ] CMP src, src2 (v1, v2, v3)
0 1 1 1 0 1 0 1 | 0 1 1 0 0 0 0 0 | [ imm8 ] INT (v1, v2, v3)
0 1 1 1 0 1 0 1 | 0 1 1 1 0 0 0 0 | 0 0 0 0 [ imm ] MVTIPL src (v1, v2, v3)
0 1 1 1 0 1 0 1 | 1 0 0 1 0 0 0 0 | 0 0 0 1 1 0 1 1 MVFDR (v3)
0 1 1 1 0 1 0 1 | 1 0 1 0 0 0 0 0 | [ rd ] [ nm ] DPUSHM.L dest-dest2 (v3)
rs={ DPSW, DCMR, DECNT, DEPC }
0 1 1 1 0 1 0 1 | 1 0 1 0 1 0 0 0 | [ rd ] [ nm ] DPOPM.L dest-dest2 (v3)
rs={ DPSW, DCMR, DECNT, DEPC }
0 1 1 1 0 1 0 1 | 1 0 1 1 0 0 0 0 | [ rs ] [ nm ] DPUSHM.D dest-dest2 (v3)
rs=DRd, nm=0..1111 minus 1
0 1 1 1 0 1 0 1 | 1 0 1 1 1 0 0 0 | [ rs ] [ nm ] DPOPM.D dest-dest2 (v3)
rs=DRd, nm=0..1111 minus 1
0 1 1 1 0 1 1 0 | 1 0 0 1 0 0 0 0 | [ rs2 ] [ opc ] | [ rd ] [ rs ] DADD src, src2, dest (v3)
opc={dadd, dsub, dmul, X, ddiv, X, X, DCMPcm(notes), X, X, X, see below}
DCMPcm: rd=cm={X, UN, EQ, X, LT, X, LE, X}
0 1 1 1 0 1 1 0 | 1 0 0 1 0 0 0 0 | [ rs ] 1 1 0 0 | [ rd ] [ opc ] DMOV.D src, dest (v3) # exchanges D{Rs,Rd}
opc={dmov.d, dabs, dneg, X, X..}
0 1 1 1 0 1 1 0 | 1 0 0 1 0 0 0 0 | [ rs ] 1 1 0 1 | [ rd ] [ opc ] DSQRT src, dest (v3)
opc={dsqrt, X, X, X, X, X, X, X, dtoi, dtou, X, X, dtof, dround, X, X}
0 1 1 1 1 0 0 [ imm5 ] [ rd ] BSET src, dest (v1, v2, v3)
0 1 1 1 1 0 1 [ imm5 ] [ rd ] BCLR src, dest (v1, v2, v3)
0 1 1 1 1 1 0 [ imm5 ] [ rs ] BTST src, src2 (v1, v2, v3)
0 1 1 1 1 1 1 0 | 0 [opc] [ rd ] NOT (v1, v2, v3)
opc={not, neg, abs, sat, rorc, rolc, X, X}
0 1 1 1 1 1 1 0 | 1 0 sz [ rd ] PUSH.size src (v1, v2, v3)
00 => B
01 => W
10 => L
0 1 1 1 1 1 1 0 | 1 0 1 1 [ rd ] POP dest (v1, v2, v3)
0 1 1 1 1 1 1 0 | 1 1 0 0 [ cr ] PUSHC src (v1)
cr = { psw, pc, usp, fpsw, X, X, X, X, bpsw, bpc, isp, fintv, intb, X }
... , extb, X } (v2, v3)
0 1 1 1 1 1 1 0 | 1 1 1 0 [ rd ] POPC dest (v1)
cr = { psw, X, usp, fpsw, X, X, X, X, bpsw, bpc, isp, fintv, intb, X }
... , extb, X } (v2, v3)
0 1 1 1 1 1 1 1 | 0 0 0 0 [ rs ] JMP src (v1, v2, v3)
0 1 1 1 1 1 1 1 | 0 0 0 1 [ rs ] JSR src (v1, v2, v3)
0 1 1 1 1 1 1 1 | 0 1 0 0 [ rs ] BRA.L src (v1, v2, v3)
0 1 1 1 1 1 1 1 | 0 1 0 1 [ rs ] BSR.L src (v1, v2, v3)
0 1 1 1 1 1 1 1 | 1 0 0 0 0 0 sz SUNTIL.size (v1, v2, v3)
sz = { B, W, L }
0 1 1 1 1 1 1 1 | 1 0 0 0 0 0 1 1 SCMPU (v1, v2, v3)
0 1 1 1 1 1 1 1 | 1 0 0 0 0 1 sz SWHILE.size (v1, v2, v3)
sz = { B, W, L }
0 1 1 1 1 1 1 1 | 1 0 0 0 0 1 1 1 SMOVU (v1, v2, v3)
0 1 1 1 1 1 1 1 | 1 0 0 0 1 0 sz SSTR.size (v1, v2, v3)
sz = { B, W, L, X }
0 1 1 1 1 1 1 1 | 1 0 0 0 1 0 1 1 SMOVB (v1, v2, v3)
0 1 1 1 1 1 1 1 | 1 0 0 0 1 1 sz RMPA.size (v1, v2, v3)
00: B
01: W
10: L
0 1 1 1 1 1 1 1 | 1 0 0 0 1 1 1 1 SMOVF (v1, v2, v3)
0 1 1 1 1 1 1 1 | 1 0 0 1 0 0 1 1 SATR (v1, v2, v3)
0 1 1 1 1 1 1 1 | 1 0 0 1 0 1 0 0 RTFI (v1, v2, v3)
0 1 1 1 1 1 1 1 | 1 0 0 1 0 1 0 1 RTE (v1, v2, v3)
0 1 1 1 1 1 1 1 | 1 0 0 1 0 1 1 0 WAIT (v1, v2, v3)
0 1 1 1 1 1 1 1 | 1 0 1 0 [ cb ] SETPSW (v1, v2, v3)
cb = { c, z, s, o, X, X, X, X, i, u, X...}
0 1 1 1 1 1 1 1 | 1 0 1 1 [ cb ] CLRPSW (v1, v2, v3)
cb = { c, z, s, o, X, X, X, X, i, u, X, X, X, X, X, X }
1 0 sz 0 d i s | p [rdd] p [rss] MOV.size src, dest (v1, v2, v3)
00 => B dispp: 5bit
01 => W "rdd" is 3-bit selector of r0..r7
10 => L "rss" is 3-bit selector of r0..r7
1 0 sz 1 d i s | p [rss] p [rdd] MOV.size src, dest (v1, v2, v3)
00 => B dispp: 5bit
01 => W "rss" is 3-bit selector of r0..r7
10 => L "rdd" is 3-bit selector of r0..r7
1 0 1 1 S d i s | p [rss] p [rdd] MOVU.size src, dest (v1, v2, v3)
S:0 => B dispp: 5-bit displacement
S:1 => W "rdd", "rss" 3-bit selectors of r0..r7
1 1 sz ldd lds | [ rd ] [ rs ] MOV.size src, dest (v1, v2, c3)
00 => B ld{s,d}:00 => [Rd]
01 => W ld{s,d}:01 => dsp:8[Rd]
10 => L ld{s,d}:10 => dsp:16[Rd]
1 1 sz ld 1 1 | [ rd ] [ rs ] MOV.size src, dest (v1, v2, v3)
00 => B ld:00 => [Rd]
01 => W ld:01 => dsp:8[Rd]
10 => L ld:10 => dsp:16[Rd]
1 1 sz 1 1 ld | [ rs ] [ rd ] MOV.size src, dest (v1, v2, v3)
00 => B 00 => [Rs]
01 => W 01 => dsp:8[Rs]
10 => L 10 => dsp:16[Rs]
11 => Rs
1 1 1 1 0 0 ld | [ rd ] 0 [imm] BSET src, dest (v1, v2, v3)
0 0 => [Rd]
0 1 => dsp:8[Rd]
1 0 => dsp:16[Rd]
1 1 1 1 0 0 ld | [ rd ] 1 [imm] BCLR src, dest (v1, v2, v3)
0 0 => [Rd]
0 1 => dsp:8[Rd]
1 0 => dsp:16[Rd]
1 1 1 1 0 1 ld | [ rs2 ] 0 [imm] BTST src, src2 (v1, v2, v3)
0 0 => [Rs2]
0 1 => dsp:8[Rs2]
1 0 => dsp:16[Rs2]
1 1 1 1 0 1 ld | [ rs ] 1 0 sz PUSH.size src (v1, v2, v3)
00 => [Rs] 00 => B
01 => dsp:8[Rs] 01 => W
10 => dsp:16[Rs] 10 => L
1 1 1 1 1 0 ld | [ rd ] li sz MOV.size src, dest (v1, v2, v3)
00 => [Rd] li:01 => simm:8 sz:00 => B
01 => dsp:8[Rd] li:10 => simm:16 sz:01 => W
10 => dsp:16[Rd] li:11 => simm:24 sz:10 => L
li:00 => imm:32
1 1 1 1 1 0 0 1 | 0 0 0 0 0 0 1 1 | [ rd ] 0 0 0 0 | imm32 DMOV.L src, dest (v3) # stores to DRLd
1 1 1 1 1 0 0 1 | 0 0 0 0 0 0 1 1 | [ rd ] 0 0 1 0 | imm32 DMOV.L src, dest (v3) # stores to DRHd
1 1 1 1 1 0 0 1 | 0 0 0 0 0 0 1 1 | [ rd ] 0 0 1 1 | imm32 DMOV.D src, dest (v3) # stores to DRHd
1 1 1 1 1 0 1 1 | [ rd ] li 1 0 MOV.size src, dest (v1, v2, v3)
0 1 [simm:8]
1 0 [simm:16]
1 1 [simm:24]
0 0 [imm:32]
1 1 1 1 1 1 0 0 | 0 [ opc5 ] ld | [ rs ] [ rd ] SBB src, dest (v1, v2, v3)
00 => [Rs]
01 => dsp:8[Rs]
10 => dsp:16[Rs]
11 => Rs
opc5={
sbb(ld=11), neg(ld=11), adc(ld=11), abs(ld=11),
max, min, emul, emulu,
div, divu, X, X,
tst, xor, not(ld=11), X,
xchg(verify:opc=16), itof, X..}
1 1 1 1 1 1 0 0 | 0 1 0 0 1 0 1 1 | [ rs ] [ rd ] STZ src, dest (v2, v3) # manual has typo: stnz encoding 2 is the same as stz encoding 2. 6p did some digging in binutils to find the right one
# AND ITS STILL THERE IN V3
1 1 1 1 1 1 0 0 | 0 1 0 0 1 1 1 1 | [ rs ] [ rd ] STNZ src, dest (v2, v3) # manual has typo: stnz encoding 2 is the same as stz encoding 2. 6p did some digging in binutils to find the right one
# AND ITS STILL THERE IN V3
1 1 1 1 1 1 0 0 | 0 1 0 1 0 1 ld | [ rs ] [ rd ] UTOF (v2, v3)
1 1 1 1 1 1 0 0 | 0 1 0 1 1 0 1 0 | [ rs ] [ rd ] imm:16 BFMOVZ slsb, dlsb, width, src, dest (v3)
1 1 1 1 1 1 0 0 | 0 1 0 1 1 1 1 0 | [ rs ] [ rd ] imm:16 BFMOV slsb, dlsb, width, src, dest (v3)
1 1 1 1 1 1 0 0 | 0 1 1 0 opc ld | [ rd ] [ rs ] BNOT src, dest (v1, v2, v3)
0 0 => [Rd]
0 1 => dsp:8[Rd]
1 0 => dsp:16[Rd]
1 1 => Rd
opc={bset, bclr, btst, bnot}
1 1 1 1 1 1 0 0 | 0 1 1 1 1 0 ld | [ rd ] 1 0 0 0 |ld/none|[rs]0000 DMOV.D src, dest (v3) # displacement on dest scaled by 8
1 1 1 1 1 1 0 0 | 1 0 [ opc ] ld | [ rs ] [ rd ] FSUB src, dest (v1, v2, v3)
00 => [Rs]
01 => dsp:8[Rs]
10 => dsp:16[Rms]
11 => Rs
opc={
fsub, fcmp, fadd, fmul,
fdiv, ftoi, round, X,
fsqrt(v2,v3), ftou(v2,v3), X, X,
X, X, X, X
}
1 1 1 1 1 1 0 0 | 1 1 0 0 1 0 ld | [ rs ] 1 0 0 0 |ld/none|[rd]0000 DMOV.D src, dest (v3) # displacement on dest scaled by 8
1 1 1 1 1 1 0 0 | 1 1 0 1 sz ld | [ rd ] [ cnd ] SCCnd.size dest (v1, v2, v3)
cnd = { eq, ne, geu, ltu, gtu, leu, pz, n, ge, lt, gt, le, o, no, X, X }
ld = { [Rd], dsp:8[Rd], dsp:16[Rd], Rd }
sz = { B, W, L, X }
1 1 1 1 1 1 0 0 | 1 1 1 [imm] ld | [ rd ] [ cnd ] BMCnd src, dest (v1, v2, v3)
0 0 => [Rd]
0 1 => dsp:8[Rd]
1 0 => dsp:16[Rd]
cnd => {eq, ne, geu, ltu, gtu, leu, pz, n, ge, lt, gt, le, o, no, Reserved, Reserved}
cnd => 1111 see BNOT
1 1 1 1 1 1 0 0 | 1 1 1 [imm] ld | [ rd ] 1 1 1 1 BNOT src, dest (v1, v2, 3)
1 1 1 1 1 1 0 1 | 0 0 0 0 0 [opc] | [ rs ] [ rs2 ] MULHI src, src2 (v1)
a (v2, v3), a={A0, A1}
opc={mulhi, mullo, mullh(v2,v3), emula(v2,v3), machi, maclo, maclh(v2,v3), emaca(v2,v3)
1 1 1 1 1 1 0 1 | 0 0 0 1 0 1 1 1 | 0 0 0 0 [ rs ] MVTACHI src (v1)
a (v2, v3), a={A0, A1}
1 1 1 1 1 1 0 1 | 0 0 0 1 0 1 1 1 | 0 0 0 1 [ rs ] MVTACLO src (v1)
a (v2, v3), a={A0, A1}
1 1 1 1 1 1 0 1 | 0 0 0 1 0 1 1 1 | a 0 1 1 [ rs ] MVTACGU src, Adest (v2, v3)
1 1 1 1 1 1 0 1 | 0 0 0 1 1 0 0 0 | 0 0 0 I 0 0 0 0 RACW src (v1)
0: 1
1: 2
a={A0, A1} (v2, v3)
1 1 1 1 1 1 0 1 | 0 0 0 1 1 0 0 0 | a 1 0 I 0 0 0 0 RDACW src (v2, v3)
0: A0 0: 1
1: A1 1: 2
1 1 1 1 1 1 0 1 | 0 0 0 1 1 0 0 1 | a 0 0 I 0 0 0 0 RACL src (v2, v3)
0: A0 0: 1
1: A1 1: 2
1 1 1 1 1 1 0 1 | 0 0 0 1 1 0 0 1 | a 1 0 I 0 0 0 0 RDACL src (v2, v3)
0: A0 0: 1
1: A1 1: 2
1 1 1 1 1 1 0 1 | 0 0 0 1 1 1 1 1 | 0 0 opc [ rd ] MVFACHI dest (v1)
i a i src, Asrc, dest (v2, v3)
ii={2, X, 0, 1} a={A0, A1}
opc={mvfachi, mvfaclo, mvfacmi, mvfacgu}
1 1 1 1 1 1 0 1 | 0 1 0 0 a 1 opc | [ rs ] [ rs2 ] MSBHI src, src2, Adest (v2, v3)
a={A0, A1}
opc={msbhi, msblh, msblo, emsba}
1 1 1 1 1 1 0 1 | 0 1 1 0 0 [opc] | [ rs ] [ rd ] SHLR src, dest (v1, v2, v3)
opc={shlr, shar, shll, X, rotr, revw, rotl, revl}
1 1 1 1 1 1 0 1 | 0 1 1 0 1 0 0 0 | [ rs ] [ cr ] MVTC src, dest (v1)
cr = { psw, X, usp, fpsw, X, X, X, X, bpsw, bpc, isp, fintv, intb, X }
... , extb, X } (v2, v3)
1 1 1 1 1 1 0 1 | 0 1 1 0 1 0 1 0 | [ cr ] [ rd ] MVFC src, dest (v1)
cr = { psw, pc, usp, fpsw, X, X, X, X, bpsw, bpc, isp, fintv, intb, X }
... , extb, X } (v2, v3)
1 1 1 1 1 1 0 1 | 0 1 1 0 1 1 0 i | m m m 5 [ rd ] ROTR src, dest (v1, v2, v3)
immm5: 5-bit immediate (rotate amount)
1 1 1 1 1 1 0 1 | 0 1 1 0 1 1 1 i | m m m 5 [ rd ] ROTL src, dest (v1, v2, v3)
immm5: 5-bit immediate (rotate amount)
1 1 1 1 1 1 0 1 | 0 1 1 1 0 1 0 1 | 1 0 0 0 [ rd ] | [ rs ] 0 0 0 0 DMOV.L src, dest (v3) # stores from DRLs
1 1 1 1 1 1 0 1 | 0 1 1 1 0 1 0 1 | 1 0 0 0 [ rd ] | [ rs ] 0 0 1 0 DMOV.L src, dest (v3) # stores from DRHs
1 1 1 1 1 1 0 1 | 0 1 1 1 0 1 0 1 | 1 0 0 0 [ rd ] | [ rs ] 0 1 0 0 MVFDC src, dest (v3)
1 1 1 1 1 1 0 1 | 0 1 1 1 0 1 1 0 | 1 1 0 0 [ rs ] | 0 0 0 0 0 0 0 0 SAVE src (v3)
1 1 1 1 1 1 0 1 | 0 1 1 1 0 1 1 0 | 1 1 0 1 [ rs ] | 0 0 0 0 0 0 0 0 RSTR src (v3)
1 1 1 1 1 1 0 1 | 0 1 1 1 0 1 1 0 | 1 1 1 0 0 0 0 0 | uimm8 SAVE src (v3)
1 1 1 1 1 1 0 1 | 0 1 1 1 0 1 1 0 | 1 1 1 1 0 0 0 0 | uimm8 RSTR src (v3)
1 1 1 1 1 1 0 1 | 0 1 1 1 0 1 1 1 | 1 0 0 0 [ rs ] | [ rd ] [ opc ] DMOV.L src, dest (v3) # stores to DRLd
opc={dmov.l, X, dmov.l, dmov.d, mvtdc, X, X, X, X, itod, ftod, X, X, utod, X..}
MVTDC ONLY: rd={ dpsw, dcmr, decnt, depc }
1 1 1 1 1 1 0 1 | 0 1 1 1 il 0 0 | [ opc ] [ rd ] ADC src, dest (v1, v2, v3)
0 1 [simm:8]
1 0 [simm:16]
1 1 [simm:24]
0 0 [imm:32]
opc={X, X, adc, X, max, min, emul, emulu, div, divu, X, X, tst, xor, stz, stnz}
1 1 1 1 1 1 0 1 | 0 1 1 1 0 0 1 0 | 0 [opc] [ rd ] | [ imm:32 ] FSUB src, dest (v1, v2, v3)
opc={fsub, fcmp, fadd, fmul, fdiv, X..}
1 1 1 1 1 1 0 1 | 0 1 1 1 li 1 1 | 0 0 0 0 [ cr ] MVTC src, dest (v1)
cr = { psw, X, usp, fpsw, X, X, X, X, bpsw, bpc, isp, fintv, intb, X }
... , extb, X } (v2, v3)
1 1 1 1 1 1 0 1 | 1 opc [ imm5 ] | [ rs2 ] [ rd ] SHLR src, src2, dest (v1, v2, v3)
opc={slhr, shar, shll, see BMCnd}
1 1 1 1 1 1 0 1 | 1 1 1 [ imm5 ] | [ cnd ] [ rd ] BMCnd src, dest (v1, v2, v3)
cnd => {eq, ne, geu, ltu, gtu, leu, pz, n, ge, lt, gt, le, o, no, Reserved, Reserved}
cnd => 1111 see BNOT
1 1 1 1 1 1 0 1 | 1 1 1 [ imm5 ] | 1 1 1 1 [ rd ] BNOT src, dest (v1, v2, v3)
1 1 1 1 1 1 1 0 | 0 0 sz [ ri ] | [ rb ] [ rs ] MOV.size src, dest (v1, v2, v3)
00 => B
01 => W
10 => L
1 1 1 1 1 1 1 0 | 0 1 sz [ ri ] | [ rb ] [ rd ] MOV.size src, dest (v1, v2, v3)
00 => B
01 => W
10 => L
1 1 1 1 1 1 1 0 | 1 1 0 S [ ri ] | [ rb ] [ rd ] MOVU.size src, dest (v1, v2, v3)
S:0 => B
S:1 => W
1 1 1 1 1 1 1 1 | [ opc ] [ rd ] | [ rs ] [ rs2 ] SUB src, src2, dest (v1, v2, v3)
opc = { sub, X, add, mul, and, or, xor (v3), X, fsub (v2, 3), X, fadd (v2, 3), fmul (v2, 3), X.. }
|