Lines Matching refs:MBlaze
10 // This file is part of the MBlaze Disassembler. It contains code to translate
16 #include "MBlaze.h"
37 MBlaze::ADD, MBlaze::RSUB, MBlaze::ADDC, MBlaze::RSUBC, //00,01,02,03
38 MBlaze::ADDK, MBlaze::RSUBK, MBlaze::ADDKC, MBlaze::RSUBKC, //04,05,06,07
39 MBlaze::ADDI, MBlaze::RSUBI, MBlaze::ADDIC, MBlaze::RSUBIC, //08,09,0A,0B
40 MBlaze::ADDIK, MBlaze::RSUBIK, MBlaze::ADDIKC, MBlaze::RSUBIKC, //0C,0D,0E,0F
42 MBlaze::MUL, MBlaze::BSRL, MBlaze::IDIV, MBlaze::GETD, //10,11,12,13
43 UNSUPPORTED, UNSUPPORTED, MBlaze::FADD, UNSUPPORTED, //14,15,16,17
44 MBlaze::MULI, MBlaze::BSRLI, UNSUPPORTED, MBlaze::GET, //18,19,1A,1B
47 MBlaze::OR, MBlaze::AND, MBlaze::XOR, MBlaze::ANDN, //20,21,22,23
48 MBlaze::SEXT8, MBlaze::MFS, MBlaze::BR, MBlaze::BEQ, //24,25,26,27
49 MBlaze::ORI, MBlaze::ANDI, MBlaze::XORI, MBlaze::ANDNI, //28,29,2A,2B
50 MBlaze::IMM, MBlaze::RTSD, MBlaze::BRI, MBlaze::BEQI, //2C,2D,2E,2F
52 MBlaze::LBU, MBlaze::LHU, MBlaze::LW, UNSUPPORTED, //30,31,32,33
53 MBlaze::SB, MBlaze::SH, MBlaze::SW, UNSUPPORTED, //34,35,36,37
54 MBlaze::LBUI, MBlaze::LHUI, MBlaze::LWI, UNSUPPORTED, //38,39,3A,3B
55 MBlaze::SBI, MBlaze::SHI, MBlaze::SWI, UNSUPPORTED, //3C,3D,3E,3F
104 case 0: return MBlaze::MUL;
105 case 1: return MBlaze::MULH;
106 case 2: return MBlaze::MULHSU;
107 case 3: return MBlaze::MULHU;
114 case 0x60: return MBlaze::SEXT8;
115 case 0x68: return MBlaze::WIC;
116 case 0x64: return MBlaze::WDC;
117 case 0x66: return MBlaze::WDCC;
118 case 0x74: return MBlaze::WDCF;
119 case 0x61: return MBlaze::SEXT16;
120 case 0x41: return MBlaze::SRL;
121 case 0x21: return MBlaze::SRC;
122 case 0x01: return MBlaze::SRA;
123 case 0xE0: return MBlaze::CLZ;
130 case 0x00: return MBlaze::BEQ;
131 case 0x10: return MBlaze::BEQD;
132 case 0x05: return MBlaze::BGE;
133 case 0x15: return MBlaze::BGED;
134 case 0x04: return MBlaze::BGT;
135 case 0x14: return MBlaze::BGTD;
136 case 0x03: return MBlaze::BLE;
137 case 0x13: return MBlaze::BLED;
138 case 0x02: return MBlaze::BLT;
139 case 0x12: return MBlaze::BLTD;
140 case 0x01: return MBlaze::BNE;
141 case 0x11: return MBlaze::BNED;
148 case 0x00: return MBlaze::BEQI;
149 case 0x10: return MBlaze::BEQID;
150 case 0x05: return MBlaze::BGEI;
151 case 0x15: return MBlaze::BGEID;
152 case 0x04: return MBlaze::BGTI;
153 case 0x14: return MBlaze::BGTID;
154 case 0x03: return MBlaze::BLEI;
155 case 0x13: return MBlaze::BLEID;
156 case 0x02: return MBlaze::BLTI;
157 case 0x12: return MBlaze::BLTID;
158 case 0x01: return MBlaze::BNEI;
159 case 0x11: return MBlaze::BNEID;
166 case 0x00: return MBlaze::BR;
167 case 0x08: return MBlaze::BRA;
168 case 0x0C: return MBlaze::BRK;
169 case 0x10: return MBlaze::BRD;
170 case 0x14: return MBlaze::BRLD;
171 case 0x18: return MBlaze::BRAD;
172 case 0x1C: return MBlaze::BRALD;
179 case 0x0020004: return MBlaze::IDMEMBAR;
180 case 0x0220004: return MBlaze::DMEMBAR;
181 case 0x0420004: return MBlaze::IMEMBAR;
186 case 0x00: return MBlaze::BRI;
187 case 0x08: return MBlaze::BRAI;
188 case 0x0C: return MBlaze::BRKI;
189 case 0x10: return MBlaze::BRID;
190 case 0x14: return MBlaze::BRLID;
191 case 0x18: return MBlaze::BRAID;
192 case 0x1C: return MBlaze::BRALID;
199 case 0x2: return MBlaze::BSLL;
200 case 0x1: return MBlaze::BSRA;
201 case 0x0: return MBlaze::BSRL;
208 case 0x2: return MBlaze::BSLLI;
209 case 0x1: return MBlaze::BSRAI;
210 case 0x0: return MBlaze::BSRLI;
217 case 0x0: return MBlaze::RSUBK;
218 case 0x1: return MBlaze::CMP;
219 case 0x3: return MBlaze::CMPU;
226 case 0x000: return MBlaze::FADD;
227 case 0x080: return MBlaze::FRSUB;
228 case 0x100: return MBlaze::FMUL;
229 case 0x180: return MBlaze::FDIV;
230 case 0x200: return MBlaze::FCMP_UN;
231 case 0x210: return MBlaze::FCMP_LT;
232 case 0x220: return MBlaze::FCMP_EQ;
233 case 0x230: return MBlaze::FCMP_LE;
234 case 0x240: return MBlaze::FCMP_GT;
235 case 0x250: return MBlaze::FCMP_NE;
236 case 0x260: return MBlaze::FCMP_GE;
237 case 0x280: return MBlaze::FLT;
238 case 0x300: return MBlaze::FINT;
239 case 0x380: return MBlaze::FSQRT;
246 case 0x00: return MBlaze::GET;
247 case 0x01: return MBlaze::EGET;
248 case 0x02: return MBlaze::AGET;
249 case 0x03: return MBlaze::EAGET;
250 case 0x04: return MBlaze::TGET;
251 case 0x05: return MBlaze::TEGET;
252 case 0x06: return MBlaze::TAGET;
253 case 0x07: return MBlaze::TEAGET;
254 case 0x08: return MBlaze::CGET;
255 case 0x09: return MBlaze::ECGET;
256 case 0x0A: return MBlaze::CAGET;
257 case 0x0B: return MBlaze::ECAGET;
258 case 0x0C: return MBlaze::TCGET;
259 case 0x0D: return MBlaze::TECGET;
260 case 0x0E: return MBlaze::TCAGET;
261 case 0x0F: return MBlaze::TECAGET;
262 case 0x10: return MBlaze::NGET;
263 case 0x11: return MBlaze::NEGET;
264 case 0x12: return MBlaze::NAGET;
265 case 0x13: return MBlaze::NEAGET;
266 case 0x14: return MBlaze::TNGET;
267 case 0x15: return MBlaze::TNEGET;
268 case 0x16: return MBlaze::TNAGET;
269 case 0x17: return MBlaze::TNEAGET;
270 case 0x18: return MBlaze::NCGET;
271 case 0x19: return MBlaze::NECGET;
272 case 0x1A: return MBlaze::NCAGET;
273 case 0x1B: return MBlaze::NECAGET;
274 case 0x1C: return MBlaze::TNCGET;
275 case 0x1D: return MBlaze::TNECGET;
276 case 0x1E: return MBlaze::TNCAGET;
277 case 0x1F: return MBlaze::TNECAGET;
278 case 0x20: return MBlaze::PUT;
279 case 0x22: return MBlaze::APUT;
280 case 0x24: return MBlaze::TPUT;
281 case 0x26: return MBlaze::TAPUT;
282 case 0x28: return MBlaze::CPUT;
283 case 0x2A: return MBlaze::CAPUT;
284 case 0x2C: return MBlaze::TCPUT;
285 case 0x2E: return MBlaze::TCAPUT;
286 case 0x30: return MBlaze::NPUT;
287 case 0x32: return MBlaze::NAPUT;
288 case 0x34: return MBlaze::TNPUT;
289 case 0x36: return MBlaze::TNAPUT;
290 case 0x38: return MBlaze::NCPUT;
291 case 0x3A: return MBlaze::NCAPUT;
292 case 0x3C: return MBlaze::TNCPUT;
293 case 0x3E: return MBlaze::TNCAPUT;
300 case 0x00: return MBlaze::GETD;
301 case 0x01: return MBlaze::EGETD;
302 case 0x02: return MBlaze::AGETD;
303 case 0x03: return MBlaze::EAGETD;
304 case 0x04: return MBlaze::TGETD;
305 case 0x05: return MBlaze::TEGETD;
306 case 0x06: return MBlaze::TAGETD;
307 case 0x07: return MBlaze::TEAGETD;
308 case 0x08: return MBlaze::CGETD;
309 case 0x09: return MBlaze::ECGETD;
310 case 0x0A: return MBlaze::CAGETD;
311 case 0x0B: return MBlaze::ECAGETD;
312 case 0x0C: return MBlaze::TCGETD;
313 case 0x0D: return MBlaze::TECGETD;
314 case 0x0E: return MBlaze::TCAGETD;
315 case 0x0F: return MBlaze::TECAGETD;
316 case 0x10: return MBlaze::NGETD;
317 case 0x11: return MBlaze::NEGETD;
318 case 0x12: return MBlaze::NAGETD;
319 case 0x13: return MBlaze::NEAGETD;
320 case 0x14: return MBlaze::TNGETD;
321 case 0x15: return MBlaze::TNEGETD;
322 case 0x16: return MBlaze::TNAGETD;
323 case 0x17: return MBlaze::TNEAGETD;
324 case 0x18: return MBlaze::NCGETD;
325 case 0x19: return MBlaze::NECGETD;
326 case 0x1A: return MBlaze::NCAGETD;
327 case 0x1B: return MBlaze::NECAGETD;
328 case 0x1C: return MBlaze::TNCGETD;
329 case 0x1D: return MBlaze::TNECGETD;
330 case 0x1E: return MBlaze::TNCAGETD;
331 case 0x1F: return MBlaze::TNECAGETD;
332 case 0x20: return MBlaze::PUTD;
333 case 0x22: return MBlaze::APUTD;
334 case 0x24: return MBlaze::TPUTD;
335 case 0x26: return MBlaze::TAPUTD;
336 case 0x28: return MBlaze::CPUTD;
337 case 0x2A: return MBlaze::CAPUTD;
338 case 0x2C: return MBlaze::TCPUTD;
339 case 0x2E: return MBlaze::TCAPUTD;
340 case 0x30: return MBlaze::NPUTD;
341 case 0x32: return MBlaze::NAPUTD;
342 case 0x34: return MBlaze::TNPUTD;
343 case 0x36: return MBlaze::TNAPUTD;
344 case 0x38: return MBlaze::NCPUTD;
345 case 0x3A: return MBlaze::NCAPUTD;
346 case 0x3C: return MBlaze::TNCPUTD;
347 case 0x3E: return MBlaze::TNCAPUTD;
354 case 0x0: return MBlaze::IDIV;
355 case 0x2: return MBlaze::IDIVU;
362 case 0x0: return MBlaze::LBU;
363 case 0x1: return MBlaze::LBUR;
370 case 0x0: return MBlaze::LHU;
371 case 0x1: return MBlaze::LHUR;
378 case 0x0: return MBlaze::LW;
379 case 0x1: return MBlaze::LWR;
380 case 0x2: return MBlaze::LWX;
387 case 0x0: return MBlaze::SB;
388 case 0x1: return MBlaze::SBR;
395 case 0x0: return MBlaze::SH;
396 case 0x1: return MBlaze::SHR;
403 case 0x0: return MBlaze::SW;
404 case 0x1: return MBlaze::SWR;
405 case 0x2: return MBlaze::SWX;
415 case 0x0: return MBlaze::MSRSET;
416 case 0x1: return MBlaze::MSRCLR;
421 case 0x0: return MBlaze::MFS;
422 case 0x1: return MBlaze::MTS;
430 case 0x000: return MBlaze::OR;
431 case 0x400: return MBlaze::PCMPBF;
438 case 0x000: return MBlaze::XOR;
439 case 0x400: return MBlaze::PCMPEQ;
446 case 0x000: return MBlaze::ANDN;
447 case 0x400: return MBlaze::PCMPNE;
454 case 0x10: return MBlaze::RTSD;
455 case 0x11: return MBlaze::RTID;
456 case 0x12: return MBlaze::RTBD;
457 case 0x14: return MBlaze::RTED;
464 case MBlaze::MUL: return decodeMUL(insn);
465 case MBlaze::SEXT8: return decodeSEXT(insn);
466 case MBlaze::BEQ: return decodeBEQ(insn);
467 case MBlaze::BEQI: return decodeBEQI(insn);
468 case MBlaze::BR: return decodeBR(insn);
469 case MBlaze::BRI: return decodeBRI(insn);
470 case MBlaze::BSRL: return decodeBSRL(insn);
471 case MBlaze::BSRLI: return decodeBSRLI(insn);
472 case MBlaze::RSUBK: return decodeRSUBK(insn);
473 case MBlaze::FADD: return decodeFADD(insn);
474 case MBlaze::GET: return decodeGET(insn);
475 case MBlaze::GETD: return decodeGETD(insn);
476 case MBlaze::IDIV: return decodeIDIV(insn);
477 case MBlaze::LBU: return decodeLBU(insn);
478 case MBlaze::LHU: return decodeLHU(insn);
479 case MBlaze::LW: return decodeLW(insn);
480 case MBlaze::SB: return decodeSB(insn);
481 case MBlaze::SH: return decodeSH(insn);
482 case MBlaze::SW: return decodeSW(insn);
483 case MBlaze::MFS: return decodeMFS(insn);
484 case MBlaze::OR: return decodeOR(insn);
485 case MBlaze::XOR: return decodeXOR(insn);
486 case MBlaze::ANDN: return decodeANDN(insn);
487 case MBlaze::RTSD: return decodeRTSD(insn);
565 case MBlaze::MFS:
571 case MBlaze::MTS:
577 case MBlaze::MSRSET:
578 case MBlaze::MSRCLR:
596 case MBlaze::BSRLI:
597 case MBlaze::BSRAI:
598 case MBlaze::BSLLI: