Lines Matching refs:rd
173 int ld, int mi, int rs, int rd) in prt_ldmi() argument
180 prt("%s\t%s[r%d]%s, r%d", insn, dsp, rs, sizes[mi], rd); in prt_ldmi()
182 prt("%s\tr%d, r%d", insn, rs, rd); in prt_ldmi()
186 static void prt_ir(DisasContext *ctx, const char *insn, int imm, int rd) in prt_ir() argument
189 prt("%s\t#%d, r%d", insn, imm, rd); in prt_ir()
191 prt("%s\t#0x%08x, r%d", insn, imm, rd); in prt_ir()
200 size[a->sz], a->rs, a->dsp << a->sz, a->rd); in trans_MOV_rm()
203 size[a->sz], a->rs, a->rd); in trans_MOV_rm()
213 size[a->sz], a->dsp << a->sz, a->rs, a->rd); in trans_MOV_mr()
216 size[a->sz], a->rs, a->rd); in trans_MOV_mr()
226 prt_ir(ctx, "mov.l", a->imm, a->rd); in trans_MOV_ir()
236 size[a->sz], a->imm, a->dsp << a->sz, a->rd); in trans_MOV_im()
239 size[a->sz], a->imm, a->rd); in trans_MOV_im()
247 prt("mov.%c\t[r%d,r%d], r%d", size[a->sz], a->ri, a->rb, a->rd); in trans_MOV_ar()
269 prt("mov.%c\tr%d, r%d", szc, a->rs, a->rd); in trans_MOV_mm()
272 prt("mov.%c\tr%d, %s[r%d]", szc, a->rs, dspd, a->rd); in trans_MOV_mm()
275 prt("mov.%c\t%s[r%d], r%d", szc, dsps, a->rs, a->rd); in trans_MOV_mm()
279 prt("mov.%c\t%s[r%d], %s[r%d]", szc, dsps, a->rs, dspd, a->rd); in trans_MOV_mm()
289 prt("mov.%c\tr%d, [-r%d]", size[a->sz], a->rs, a->rd); in trans_MOV_rp()
291 prt("mov.%c\tr%d, [r%d+]", size[a->sz], a->rs, a->rd); in trans_MOV_rp()
301 prt("mov.%c\t[-r%d], r%d", size[a->sz], a->rd, a->rs); in trans_MOV_pr()
303 prt("mov.%c\t[r%d+], r%d", size[a->sz], a->rd, a->rs); in trans_MOV_pr()
313 a->dsp << a->sz, a->rs, a->rd); in trans_MOVU_mr()
315 prt("movu.%c\t[r%d], r%d", size[a->sz], a->rs, a->rd); in trans_MOVU_mr()
323 prt("movu.%c\tr%d, r%d", size[a->sz], a->rs, a->rd); in trans_MOVU_rr()
330 prt("mov.%c\t[r%d,r%d], r%d", size[a->sz], a->ri, a->rb, a->rd); in trans_MOVU_ar()
339 prt("movu.%c\t[-r%d], r%d", size[a->sz], a->rd, a->rs); in trans_MOVU_pr()
341 prt("movu.%c\t[r%d+], r%d", size[a->sz], a->rd, a->rs); in trans_MOVU_pr()
349 prt("pop\tr%d", a->rd); in trans_POP()
363 prt("popm\tr%d-r%d", a->rd, a->rd2); in trans_POPM()
401 prt("xchg\tr%d, r%d", a->rs, a->rd); in trans_XCHG_rr()
407 prt_ldmi(ctx, "xchg", a->ld, a->mi, a->rs, a->rd); in trans_XCHG_mr()
414 prt_ir(ctx, "stz", a->imm, a->rd); in trans_STZ()
421 prt_ir(ctx, "stnz", a->imm, a->rd); in trans_STNZ()
435 prt("rtsd\t#%d, r%d - r%d", a->imm << 2, a->rd, a->rd2); in trans_RTSD_irr()
443 prt_ir(ctx, "and", a->imm, a->rd); in trans_AND_ir()
451 prt_ldmi(ctx, "and", a->ld, a->mi, a->rs, a->rd); in trans_AND_mr()
458 prt("and\tr%d,r%d, r%d", a->rs, a->rs2, a->rd); in trans_AND_rrr()
466 prt_ir(ctx, "or", a->imm, a->rd); in trans_OR_ir()
474 prt_ldmi(ctx, "or", a->ld, a->mi, a->rs, a->rd); in trans_OR_mr()
481 prt("or\tr%d, r%d, r%d", a->rs, a->rs2, a->rd); in trans_OR_rrr()
488 prt_ir(ctx, "xor", a->imm, a->rd); in trans_XOR_ir()
496 prt_ldmi(ctx, "xor", a->ld, a->mi, a->rs, a->rd); in trans_XOR_mr()
503 prt_ir(ctx, "tst", a->imm, a->rd); in trans_TST_ir()
511 prt_ldmi(ctx, "tst", a->ld, a->mi, a->rs, a->rd); in trans_TST_mr()
519 if (a->rs != a->rd) { in trans_NOT_rr()
520 prt("not\tr%d, r%d", a->rs, a->rd); in trans_NOT_rr()
531 if (a->rs != a->rd) { in trans_NEG_rr()
532 prt("neg\tr%d, r%d", a->rs, a->rd); in trans_NEG_rr()
542 prt_ir(ctx, "adc", a->imm, a->rd); in trans_ADC_ir()
549 prt("adc\tr%d, r%d", a->rs, a->rd); in trans_ADC_rr()
559 prt("adc\t%s[r%d], r%d", dsp, a->rs, a->rd); in trans_ADC_mr()
567 if (a->imm < 0x10 && a->rs2 == a->rd) { in trans_ADD_irr()
568 prt("add\t#%d, r%d", a->imm, a->rd); in trans_ADD_irr()
570 prt("add\t#0x%08x, r%d, r%d", a->imm, a->rs2, a->rd); in trans_ADD_irr()
579 prt_ldmi(ctx, "add", a->ld, a->mi, a->rs, a->rd); in trans_ADD_mr()
586 prt("add\tr%d, r%d, r%d", a->rs, a->rs2, a->rd); in trans_ADD_rrr()
603 prt_ldmi(ctx, "cmp", a->ld, a->mi, a->rs, a->rd); in trans_CMP_mr()
610 prt("sub\t#%d, r%d", a->imm, a->rd); in trans_SUB_ir()
618 prt_ldmi(ctx, "sub", a->ld, a->mi, a->rs, a->rd); in trans_SUB_mr()
625 prt("sub\tr%d, r%d, r%d", a->rs, a->rs2, a->rd); in trans_SUB_rrr()
632 prt("sbb\tr%d, r%d", a->rs, a->rd); in trans_SBB_rr()
639 prt_ldmi(ctx, "sbb", a->ld, RX_IM_LONG, a->rs, a->rd); in trans_SBB_mr()
647 if (a->rs != a->rd) { in trans_ABS_rr()
648 prt("abs\tr%d, r%d", a->rs, a->rd); in trans_ABS_rr()
658 prt_ir(ctx, "max", a->imm, a->rd); in trans_MAX_ir()
666 prt_ldmi(ctx, "max", a->ld, a->mi, a->rs, a->rd); in trans_MAX_mr()
673 prt_ir(ctx, "min", a->imm, a->rd); in trans_MIN_ir()
681 prt_ldmi(ctx, "min", a->ld, a->mi, a->rs, a->rd); in trans_MIN_mr()
689 prt_ir(ctx, "mul", a->imm, a->rd); in trans_MUL_ir()
697 prt_ldmi(ctx, "mul", a->ld, a->mi, a->rs, a->rd); in trans_MUL_mr()
704 prt("mul\tr%d,r%d,r%d", a->rs, a->rs2, a->rd); in trans_MUL_rrr()
711 prt_ir(ctx, "emul", a->imm, a->rd); in trans_EMUL_ir()
719 prt_ldmi(ctx, "emul", a->ld, a->mi, a->rs, a->rd); in trans_EMUL_mr()
726 prt_ir(ctx, "emulu", a->imm, a->rd); in trans_EMULU_ir()
734 prt_ldmi(ctx, "emulu", a->ld, a->mi, a->rs, a->rd); in trans_EMULU_mr()
741 prt_ir(ctx, "div", a->imm, a->rd); in trans_DIV_ir()
749 prt_ldmi(ctx, "div", a->ld, a->mi, a->rs, a->rd); in trans_DIV_mr()
756 prt_ir(ctx, "divu", a->imm, a->rd); in trans_DIVU_ir()
764 prt_ldmi(ctx, "divu", a->ld, a->mi, a->rs, a->rd); in trans_DIVU_mr()
773 if (a->rs2 != a->rd) { in trans_SHLL_irr()
774 prt("shll\t#%d, r%d, r%d", a->imm, a->rs2, a->rd); in trans_SHLL_irr()
776 prt("shll\t#%d, r%d", a->imm, a->rd); in trans_SHLL_irr()
784 prt("shll\tr%d, r%d", a->rs, a->rd); in trans_SHLL_rr()
792 if (a->rs2 != a->rd) { in trans_SHAR_irr()
793 prt("shar\t#%d, r%d, r%d", a->imm, a->rs2, a->rd); in trans_SHAR_irr()
795 prt("shar\t#%d, r%d", a->imm, a->rd); in trans_SHAR_irr()
803 prt("shar\tr%d, r%d", a->rs, a->rd); in trans_SHAR_rr()
811 if (a->rs2 != a->rd) { in trans_SHLR_irr()
812 prt("shlr\t#%d, r%d, r%d", a->imm, a->rs2, a->rd); in trans_SHLR_irr()
814 prt("shlr\t#%d, r%d", a->imm, a->rd); in trans_SHLR_irr()
822 prt("shlr\tr%d, r%d", a->rs, a->rd); in trans_SHLR_rr()
829 prt("rorc\tr%d", a->rd); in trans_ROLC()
836 prt("rorc\tr%d", a->rd); in trans_RORC()
843 prt("rotl\t#%d, r%d", a->imm, a->rd); in trans_ROTL_ir()
850 prt("rotl\tr%d, r%d", a->rs, a->rd); in trans_ROTL_rr()
857 prt("rotr\t#%d, r%d", a->imm, a->rd); in trans_ROTR_ir()
864 prt("rotr\tr%d, r%d", a->rs, a->rd); in trans_ROTR_rr()
871 prt("revl\tr%d, r%d", a->rs, a->rd); in trans_REVL()
878 prt("revw\tr%d, r%d", a->rs, a->rd); in trans_REVW()
917 prt("bra.l\tr%d", a->rd); in trans_BRA_l()
947 prt("bsr.l\tr%d", a->rd); in trans_BSR_l()
1051 prt("mvfachi\tr%d", a->rd); in trans_MVFACHI()
1058 prt("mvfacmi\tr%d", a->rd); in trans_MVFACMI()
1086 prt("sat\tr%d", a->rd); in trans_SAT()
1100 prt("fadd\t#%d,r%d", li(ctx, 0), a->rd); in trans_FADD_ir()
1108 prt_ldmi(ctx, "fadd", a->ld, RX_IM_LONG, a->rs, a->rd); in trans_FADD_mr()
1115 prt("fadd\t#%d,r%d", li(ctx, 0), a->rd); in trans_FCMP_ir()
1123 prt_ldmi(ctx, "fcmp", a->ld, RX_IM_LONG, a->rs, a->rd); in trans_FCMP_mr()
1130 prt("fsub\t#%d,r%d", li(ctx, 0), a->rd); in trans_FSUB_ir()
1138 prt_ldmi(ctx, "fsub", a->ld, RX_IM_LONG, a->rs, a->rd); in trans_FSUB_mr()
1146 prt_ldmi(ctx, "ftoi", a->ld, RX_IM_LONG, a->rs, a->rd); in trans_FTOI()
1153 prt("fmul\t#%d,r%d", li(ctx, 0), a->rd); in trans_FMUL_ir()
1161 prt_ldmi(ctx, "fmul", a->ld, RX_IM_LONG, a->rs, a->rd); in trans_FMUL_mr()
1168 prt("fdiv\t#%d,r%d", li(ctx, 0), a->rd); in trans_FDIV_ir()
1176 prt_ldmi(ctx, "fdiv", a->ld, RX_IM_LONG, a->rs, a->rd); in trans_FDIV_mr()
1184 prt_ldmi(ctx, "round", a->ld, RX_IM_LONG, a->rs, a->rd); in trans_ROUND()
1192 prt_ldmi(ctx, "itof", a->ld, RX_IM_LONG, a->rs, a->rd); in trans_ITOF()
1208 prt("b%s\tr%d, %s[r%d]", #name, a->rd, dsp, a->rs); \
1227 prt("bset\tr%d,r%d", a->rs, a->rd); in trans_BSET_rr()
1234 prt("bset\t#%d, r%d", a->imm, a->rd); in trans_BSET_ir()
1253 prt("bclr\tr%d, r%d", a->rs, a->rd); in trans_BCLR_rr()
1260 prt("bclr\t#%d,r%d", a->imm, a->rd); in trans_BCLR_ir()
1279 prt("btst\tr%d, r%d", a->rs, a->rd); in trans_BTST_rr()
1286 prt("btst\t#%d, r%d", a->imm, a->rd); in trans_BTST_ir()
1299 prt("bnot\tr%d, r%d", a->rs, a->rd); in trans_BNOT_rr()
1312 prt("bnot\t#%d, r%d", a->imm, a->rd); in trans_BNOT_ir()
1322 prt("bm%s\t#%d, %s[r%d]", cond[a->cd], a->imm, dsp, a->rd); in trans_BMCnd_im()
1329 prt("bm%s\t#%d, r%d", cond[a->cd], a->imm, a->rd); in trans_BMCnd_ir()
1371 prt("mvfc\t%s, r%d", rx_crname(a->cr), a->rd); in trans_MVFC()
1417 prt("sc%s.%c\t%s[r%d]", cond[a->cd], size[a->sz], dsp, a->rd); in trans_SCCnd()
1419 prt("sc%s.%c\tr%d", cond[a->cd], size[a->sz], a->rd); in trans_SCCnd()