• Home
  • Raw
  • Download

Lines Matching refs:Rs

247                                      int Rs __unused)  in reg_reg()
608 int Rd, int Rm, int Rs, int Rn) { in MLA() argument
612 mMips->MUL(R_at, Rm, Rs); in MLA()
621 int Rd, int Rm, int Rs) { in MUL() argument
623 mMips->MUL(Rd, Rm, Rs); in MUL()
631 int RdLo, int RdHi, int Rm, int Rs) { in UMULL() argument
633 mMips->MULT(Rm, Rs); in UMULL()
644 int RdLo __unused, int RdHi, int Rm __unused, int Rs __unused) { in UMUAL()
646 "UMUAL(r%u,r%u,r%u,r%u)", RdLo,RdHi,Rm,Rs); in UMUAL()
660 int RdLo __unused, int RdHi, int Rm __unused, int Rs __unused) { in SMULL()
662 "SMULL(r%u,r%u,r%u,r%u)", RdLo,RdHi,Rm,Rs); in SMULL()
675 int RdLo __unused, int RdHi, int Rm __unused, int Rs __unused) { in SMUAL()
677 "SMUAL(r%u,r%u,r%u,r%u)", RdLo,RdHi,Rm,Rs); in SMUAL()
1084 int Rd, int Rm, int Rs) in SMUL() argument
1108 mMips->SRA(R_at2, Rs, 16); in SMUL()
1112 mMips->SEH(R_at2, Rs); in SMUL()
1114 mMips->SLL(R_at2, Rs, 16); in SMUL()
1123 int Rd, int Rm, int Rs) in SMULW() argument
1130 mMips->SRL(R_at, Rs, 16); in SMULW()
1135 mMips->SLL(R_at, Rs, 16); in SMULW()
1143 int Rd, int Rm, int Rs, int Rn) in SMLA() argument
1167 mMips->SRA(R_at2, Rs, 16); in SMLA()
1171 mMips->SEH(R_at2, Rs); in SMLA()
1173 mMips->SLL(R_at2, Rs, 16); in SMLA()
1184 int Rs __unused, int Rm __unused) in SMLAL()
1194 int Rs __unused, int Rn __unused) in SMLAW()
1439 void MIPSAssembler::ADDU(int Rd, int Rs, int Rt) in ADDU() argument
1442 | (Rs<<RS_SHF) | (Rt<<RT_SHF) | (Rd<<RD_SHF); in ADDU()
1446 void MIPSAssembler::ADDIU(int Rt, int Rs, int16_t imm) in ADDIU() argument
1448 *mPC++ = (addiu_op<<OP_SHF) | (Rt<<RT_SHF) | (Rs<<RS_SHF) | (imm & MSK_16); in ADDIU()
1452 void MIPSAssembler::SUBU(int Rd, int Rs, int Rt) in SUBU() argument
1455 (Rs<<RS_SHF) | (Rt<<RT_SHF) | (Rd<<RD_SHF) ; in SUBU()
1459 void MIPSAssembler::SUBIU(int Rt, int Rs, int16_t imm) // really addiu(d, s, -j) in SUBIU() argument
1461 *mPC++ = (addiu_op<<OP_SHF) | (Rt<<RT_SHF) | (Rs<<RS_SHF) | ((-imm) & MSK_16); in SUBIU()
1465 void MIPSAssembler::NEGU(int Rd, int Rs) // really subu(d, zero, s) in NEGU() argument
1467 MIPSAssembler::SUBU(Rd, 0, Rs); in NEGU()
1470 void MIPSAssembler::MUL(int Rd, int Rs, int Rt) in MUL() argument
1473 (Rs<<RS_SHF) | (Rt<<RT_SHF) | (Rd<<RD_SHF) ; in MUL()
1476 void MIPSAssembler::MULT(int Rs, int Rt) // dest is hi,lo in MULT() argument
1478 *mPC++ = (spec_op<<OP_SHF) | (mult_fn<<FUNC_SHF) | (Rt<<RT_SHF) | (Rs<<RS_SHF); in MULT()
1481 void MIPSAssembler::MULTU(int Rs, int Rt) // dest is hi,lo in MULTU() argument
1483 *mPC++ = (spec_op<<OP_SHF) | (multu_fn<<FUNC_SHF) | (Rt<<RT_SHF) | (Rs<<RS_SHF); in MULTU()
1486 void MIPSAssembler::MADD(int Rs, int Rt) // hi,lo = hi,lo + Rs * Rt in MADD() argument
1488 *mPC++ = (spec2_op<<OP_SHF) | (madd_fn<<FUNC_SHF) | (Rt<<RT_SHF) | (Rs<<RS_SHF); in MADD()
1491 void MIPSAssembler::MADDU(int Rs, int Rt) // hi,lo = hi,lo + Rs * Rt in MADDU() argument
1493 *mPC++ = (spec2_op<<OP_SHF) | (maddu_fn<<FUNC_SHF) | (Rt<<RT_SHF) | (Rs<<RS_SHF); in MADDU()
1497 void MIPSAssembler::MSUB(int Rs, int Rt) // hi,lo = hi,lo - Rs * Rt in MSUB() argument
1499 *mPC++ = (spec2_op<<OP_SHF) | (msub_fn<<FUNC_SHF) | (Rt<<RT_SHF) | (Rs<<RS_SHF); in MSUB()
1502 void MIPSAssembler::MSUBU(int Rs, int Rt) // hi,lo = hi,lo - Rs * Rt in MSUBU() argument
1504 *mPC++ = (spec2_op<<OP_SHF) | (msubu_fn<<FUNC_SHF) | (Rt<<RT_SHF) | (Rs<<RS_SHF); in MSUBU()
1527 void MIPSAssembler::SLT(int Rd, int Rs, int Rt) in SLT() argument
1530 (Rd<<RD_SHF) | (Rs<<RS_SHF) | (Rt<<RT_SHF); in SLT()
1533 void MIPSAssembler::SLTI(int Rt, int Rs, int16_t imm) in SLTI() argument
1535 *mPC++ = (slti_op<<OP_SHF) | (Rt<<RT_SHF) | (Rs<<RS_SHF) | (imm & MSK_16); in SLTI()
1539 void MIPSAssembler::SLTU(int Rd, int Rs, int Rt) in SLTU() argument
1542 (Rd<<RD_SHF) | (Rs<<RS_SHF) | (Rt<<RT_SHF); in SLTU()
1545 void MIPSAssembler::SLTIU(int Rt, int Rs, int16_t imm) in SLTIU() argument
1547 *mPC++ = (sltiu_op<<OP_SHF) | (Rt<<RT_SHF) | (Rs<<RS_SHF) | (imm & MSK_16); in SLTIU()
1557 void MIPSAssembler::AND(int Rd, int Rs, int Rt) in AND() argument
1560 (Rd<<RD_SHF) | (Rs<<RS_SHF) | (Rt<<RT_SHF); in AND()
1563 void MIPSAssembler::ANDI(int Rt, int Rs, uint16_t imm) // todo: support larger immediate in ANDI() argument
1565 *mPC++ = (andi_op<<OP_SHF) | (Rt<<RT_SHF) | (Rs<<RS_SHF) | (imm & MSK_16); in ANDI()
1569 void MIPSAssembler::OR(int Rd, int Rs, int Rt) in OR() argument
1572 (Rd<<RD_SHF) | (Rs<<RS_SHF) | (Rt<<RT_SHF); in OR()
1575 void MIPSAssembler::ORI(int Rt, int Rs, uint16_t imm) in ORI() argument
1577 *mPC++ = (ori_op<<OP_SHF) | (Rt<<RT_SHF) | (Rs<<RS_SHF) | (imm & MSK_16); in ORI()
1580 void MIPSAssembler::NOR(int Rd, int Rs, int Rt) in NOR() argument
1583 (Rd<<RD_SHF) | (Rs<<RS_SHF) | (Rt<<RT_SHF); in NOR()
1586 void MIPSAssembler::NOT(int Rd, int Rs) in NOT() argument
1588 MIPSAssembler::NOR(Rd, Rs, 0); // NOT(d,s) = NOR(d,s,zero) in NOT()
1591 void MIPSAssembler::XOR(int Rd, int Rs, int Rt) in XOR() argument
1594 (Rd<<RD_SHF) | (Rs<<RS_SHF) | (Rt<<RT_SHF); in XOR()
1597 void MIPSAssembler::XORI(int Rt, int Rs, uint16_t imm) // todo: support larger immediate in XORI() argument
1599 *mPC++ = (xori_op<<OP_SHF) | (Rt<<RT_SHF) | (Rs<<RS_SHF) | (imm & MSK_16); in XORI()
1608 void MIPSAssembler::SLLV(int Rd, int Rt, int Rs) in SLLV() argument
1611 (Rd<<RD_SHF) | (Rs<<RS_SHF) | (Rt<<RT_SHF); in SLLV()
1620 void MIPSAssembler::SRLV(int Rd, int Rt, int Rs) in SRLV() argument
1623 (Rd<<RD_SHF) | (Rs<<RS_SHF) | (Rt<<RT_SHF); in SRLV()
1632 void MIPSAssembler::SRAV(int Rd, int Rt, int Rs) in SRAV() argument
1635 (Rd<<RD_SHF) | (Rs<<RS_SHF) | (Rt<<RT_SHF); in SRAV()
1645 void MIPSAssembler::ROTRV(int Rd, int Rt, int Rs) // mips32r2 in ROTRV() argument
1649 (Rd<<RD_SHF) | (Rs<<RS_SHF) | (Rt<<RT_SHF) | (1<<RE_SHF); in ROTRV()
1653 void MIPSAssembler::RORsyn(int Rd, int Rt, int Rs) in RORsyn() argument
1656 MIPSAssembler::NEGU(R_at2, Rs); in RORsyn()
1658 MIPSAssembler::SRLV(Rd, Rt, Rs); in RORsyn()
1672 void MIPSAssembler::CLO(int Rd, int Rs) in CLO() argument
1676 (Rd<<RD_SHF) | (Rs<<RS_SHF) | (Rd<<RT_SHF); in CLO()
1679 void MIPSAssembler::CLZ(int Rd, int Rs) in CLZ() argument
1683 (Rd<<RD_SHF) | (Rs<<RS_SHF) | (Rd<<RT_SHF); in CLZ()
1753 void MIPSAssembler::MOVE(int Rd, int Rs) in MOVE() argument
1757 (Rd<<RD_SHF) | (Rs<<RS_SHF) | (0<<RT_SHF); in MOVE()
1760 void MIPSAssembler::MOVN(int Rd, int Rs, int Rt) in MOVN() argument
1763 (Rd<<RD_SHF) | (Rs<<RS_SHF) | (Rt<<RT_SHF); in MOVN()
1766 void MIPSAssembler::MOVZ(int Rd, int Rs, int Rt) in MOVZ() argument
1769 (Rd<<RD_SHF) | (Rs<<RS_SHF) | (Rt<<RT_SHF); in MOVZ()
1782 void MIPSAssembler::MTHI(int Rs) in MTHI() argument
1784 *mPC++ = (spec_op<<OP_SHF) | (mthi_fn<<FUNC_SHF) | (Rs<<RS_SHF); in MTHI()
1787 void MIPSAssembler::MTLO(int Rs) in MTLO() argument
1789 *mPC++ = (spec_op<<OP_SHF) | (mtlo_fn<<FUNC_SHF) | (Rs<<RS_SHF); in MTLO()
1812 void MIPSAssembler::BEQ(int Rs, int Rt, const char* label) in BEQ() argument
1815 *mPC++ = (beq_op<<OP_SHF) | (Rt<<RT_SHF) | (Rs<<RS_SHF) | 0; in BEQ()
1819 void MIPSAssembler::BNE(int Rs, int Rt, const char* label) in BNE() argument
1822 *mPC++ = (bne_op<<OP_SHF) | (Rt<<RT_SHF) | (Rs<<RS_SHF) | 0; in BNE()
1826 void MIPSAssembler::BLEZ(int Rs, const char* label) in BLEZ() argument
1829 *mPC++ = (blez_op<<OP_SHF) | (0<<RT_SHF) | (Rs<<RS_SHF) | 0; in BLEZ()
1833 void MIPSAssembler::BLTZ(int Rs, const char* label) in BLTZ() argument
1836 *mPC++ = (regimm_op<<OP_SHF) | (bltz_fn<<RT_SHF) | (Rs<<RS_SHF) | 0; in BLTZ()
1840 void MIPSAssembler::BGTZ(int Rs, const char* label) in BGTZ() argument
1843 *mPC++ = (bgtz_op<<OP_SHF) | (0<<RT_SHF) | (Rs<<RS_SHF) | 0; in BGTZ()
1848 void MIPSAssembler::BGEZ(int Rs, const char* label) in BGEZ() argument
1851 *mPC++ = (regimm_op<<OP_SHF) | (bgez_fn<<RT_SHF) | (Rs<<RS_SHF) | 0; in BGEZ()
1855 void MIPSAssembler::JR(int Rs) in JR() argument
1857 *mPC++ = (spec_op<<OP_SHF) | (Rs<<RS_SHF) | (jr_fn << FUNC_SHF); in JR()
1868 void MIPSAssembler::BEQZ(int Rs, const char* label) in BEQZ() argument
1870 BEQ(Rs, R_zero, label); in BEQZ()
1873 void MIPSAssembler::BNEZ(int Rs __unused, const char* label) in BNEZ()
1878 void MIPSAssembler::BGE(int Rs, int Rt, const char* label) in BGE() argument
1880 SLT(R_at, Rs, Rt); in BGE()
1884 void MIPSAssembler::BGEU(int Rs, int Rt, const char* label) in BGEU() argument
1886 SLTU(R_at, Rs, Rt); in BGEU()
1890 void MIPSAssembler::BGT(int Rs, int Rt, const char* label) in BGT() argument
1892 SLT(R_at, Rt, Rs); // rev in BGT()
1896 void MIPSAssembler::BGTU(int Rs, int Rt, const char* label) in BGTU() argument
1898 SLTU(R_at, Rt, Rs); // rev in BGTU()
1902 void MIPSAssembler::BLE(int Rs, int Rt, const char* label) in BLE() argument
1904 SLT(R_at, Rt, Rs); // rev in BLE()
1908 void MIPSAssembler::BLEU(int Rs, int Rt, const char* label) in BLEU() argument
1910 SLTU(R_at, Rt, Rs); // rev in BLEU()
1914 void MIPSAssembler::BLT(int Rs, int Rt, const char* label) in BLT() argument
1916 SLT(R_at, Rs, Rt); in BLT()
1920 void MIPSAssembler::BLTU(int Rs, int Rt, const char* label) in BLTU() argument
1922 SLTU(R_at, Rs, Rt); in BLTU()