Lines Matching refs:rs
405 s32 rt, rs; in mult_func() local
408 rs = regs->regs[MIPSInst_RS(ir)]; in mult_func()
409 res = (s64)rt * (s64)rs; in mult_func()
411 rs = res; in mult_func()
412 regs->lo = (s64)rs; in mult_func()
432 u32 rt, rs; in multu_func() local
435 rs = regs->regs[MIPSInst_RS(ir)]; in multu_func()
436 res = (u64)rt * (u64)rs; in multu_func()
455 s32 rt, rs; in div_func() local
458 rs = regs->regs[MIPSInst_RS(ir)]; in div_func()
460 regs->lo = (s64)(rs / rt); in div_func()
461 regs->hi = (s64)(rs % rt); in div_func()
477 u32 rt, rs; in divu_func() local
480 rs = regs->regs[MIPSInst_RS(ir)]; in divu_func()
482 regs->lo = (s64)(rs / rt); in divu_func()
483 regs->hi = (s64)(rs % rt); in divu_func()
500 s64 rt, rs; in dmult_func() local
506 rs = regs->regs[MIPSInst_RS(ir)]; in dmult_func()
507 res = rt * rs; in dmult_func()
513 : "r"(rt), "r"(rs)); in dmult_func()
532 u64 rt, rs; in dmultu_func() local
538 rs = regs->regs[MIPSInst_RS(ir)]; in dmultu_func()
539 res = rt * rs; in dmultu_func()
545 : "r"(rt), "r"(rs)); in dmultu_func()
563 s64 rt, rs; in ddiv_func() local
569 rs = regs->regs[MIPSInst_RS(ir)]; in ddiv_func()
571 regs->lo = rs / rt; in ddiv_func()
572 regs->hi = rs % rt; in ddiv_func()
588 u64 rt, rs; in ddivu_func() local
594 rs = regs->regs[MIPSInst_RS(ir)]; in ddivu_func()
596 regs->lo = rs / rt; in ddivu_func()
597 regs->hi = rs % rt; in ddivu_func()
636 s32 rt, rs; in madd_func() local
639 rs = regs->regs[MIPSInst_RS(ir)]; in madd_func()
640 res = (s64)rt * (s64)rs; in madd_func()
642 rs = regs->lo; in madd_func()
643 res += ((((s64)rt) << 32) | (u32)rs); in madd_func()
647 rs = res >> 32; in madd_func()
648 regs->hi = (s64)rs; in madd_func()
665 u32 rt, rs; in maddu_func() local
668 rs = regs->regs[MIPSInst_RS(ir)]; in maddu_func()
669 res = (u64)rt * (u64)rs; in maddu_func()
671 rs = regs->lo; in maddu_func()
672 res += ((((s64)rt) << 32) | (u32)rs); in maddu_func()
676 rs = res >> 32; in maddu_func()
677 regs->hi = (s64)(s32)rs; in maddu_func()
694 s32 rt, rs; in msub_func() local
697 rs = regs->regs[MIPSInst_RS(ir)]; in msub_func()
698 res = (s64)rt * (s64)rs; in msub_func()
700 rs = regs->lo; in msub_func()
701 res = ((((s64)rt) << 32) | (u32)rs) - res; in msub_func()
705 rs = res >> 32; in msub_func()
706 regs->hi = (s64)rs; in msub_func()
723 u32 rt, rs; in msubu_func() local
726 rs = regs->regs[MIPSInst_RS(ir)]; in msubu_func()
727 res = (u64)rt * (u64)rs; in msubu_func()
729 rs = regs->lo; in msubu_func()
730 res = ((((s64)rt) << 32) | (u32)rs) - res; in msubu_func()
734 rs = res >> 32; in msubu_func()
735 regs->hi = (s64)(s32)rs; in msubu_func()
752 s32 rt, rs; in mul_func() local
757 rs = regs->regs[MIPSInst_RS(ir)]; in mul_func()
758 res = (s64)rt * (s64)rs; in mul_func()
760 rs = res; in mul_func()
761 regs->regs[MIPSInst_RD(ir)] = (s64)rs; in mul_func()
778 u32 rs; in clz_func() local
783 rs = regs->regs[MIPSInst_RS(ir)]; in clz_func()
784 __asm__ __volatile__("clz %0, %1" : "=r"(res) : "r"(rs)); in clz_func()
803 u32 rs; in clo_func() local
808 rs = regs->regs[MIPSInst_RS(ir)]; in clo_func()
809 __asm__ __volatile__("clo %0, %1" : "=r"(res) : "r"(rs)); in clo_func()
827 u64 rs; in dclz_func() local
835 rs = regs->regs[MIPSInst_RS(ir)]; in dclz_func()
836 __asm__ __volatile__("dclz %0, %1" : "=r"(res) : "r"(rs)); in dclz_func()
854 u64 rs; in dclo_func() local
862 rs = regs->regs[MIPSInst_RS(ir)]; in dclo_func()
863 __asm__ __volatile__("dclo %0, %1" : "=r"(res) : "r"(rs)); in dclo_func()
911 unsigned long cpc, epc, nepc, r31, res, rs, rt; in mipsr2_decoder() local
941 rs = MIPSInst_RS(inst); in mipsr2_decoder()
944 if ((long)regs->regs[rs] >= MIPSInst_SIMM(inst)) in mipsr2_decoder()
951 if (regs->regs[rs] >= MIPSInst_UIMM(inst)) in mipsr2_decoder()
958 if ((long)regs->regs[rs] < MIPSInst_SIMM(inst)) in mipsr2_decoder()
965 if (regs->regs[rs] < MIPSInst_UIMM(inst)) in mipsr2_decoder()
972 if (regs->regs[rs] == MIPSInst_SIMM(inst)) in mipsr2_decoder()
979 if (regs->regs[rs] != MIPSInst_SIMM(inst)) in mipsr2_decoder()
1267 : "+&r"(rt), "=&r"(rs), in mipsr2_decoder()
1342 : "+&r"(rt), "=&r"(rs), in mipsr2_decoder()
1413 : "+&r"(rt), "=&r"(rs), in mipsr2_decoder()
1483 : "+&r"(rt), "=&r"(rs), in mipsr2_decoder()
1602 : "+&r"(rt), "=&r"(rs), in mipsr2_decoder()
1721 : "+&r"(rt), "=&r"(rs), in mipsr2_decoder()
1840 : "+&r"(rt), "=&r"(rs), in mipsr2_decoder()
1958 : "+&r"(rt), "=&r"(rs), in mipsr2_decoder()