Lines Matching refs:ra
213 MemOperand::MemOperand(Register ra, Register rb) { in MemOperand() argument
214 ra_ = ra; in MemOperand()
614 void Assembler::d_form(Instr instr, Register rt, Register ra, in d_form() argument
629 emit(instr | rt.code() * B21 | ra.code() * B16 | (kImm16Mask & val)); in d_form()
633 void Assembler::x_form(Instr instr, Register ra, Register rs, Register rb, in x_form() argument
635 emit(instr | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | r); in x_form()
639 void Assembler::xo_form(Instr instr, Register rt, Register ra, Register rb, in xo_form() argument
641 emit(instr | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 | o | r); in xo_form()
645 void Assembler::md_form(Instr instr, Register ra, Register rs, int shift, in md_form() argument
652 emit(instr | rs.code() * B21 | ra.code() * B16 | sh0_4 * B11 | m0_4 * B6 | in md_form()
657 void Assembler::mds_form(Instr instr, Register ra, Register rs, Register rb, in mds_form() argument
662 emit(instr | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | m0_4 * B6 | in mds_form()
746 void Assembler::xoris(Register ra, Register rs, const Operand& imm) { in xoris() argument
747 d_form(XORIS, rs, ra, imm.imm_, false); in xoris()
756 void Assembler::cntlzw_(Register ra, Register rs, RCBit rc) { in cntlzw_() argument
757 x_form(EXT2 | CNTLZWX, ra, rs, r0, rc); in cntlzw_()
761 void Assembler::popcntw(Register ra, Register rs) { in popcntw() argument
762 emit(EXT2 | POPCNTW | rs.code() * B21 | ra.code() * B16); in popcntw()
766 void Assembler::and_(Register ra, Register rs, Register rb, RCBit rc) { in and_() argument
767 x_form(EXT2 | ANDX, ra, rs, rb, rc); in and_()
771 void Assembler::rlwinm(Register ra, Register rs, int sh, int mb, int me, in rlwinm() argument
776 emit(RLWINMX | rs.code() * B21 | ra.code() * B16 | sh * B11 | mb * B6 | in rlwinm()
781 void Assembler::rlwnm(Register ra, Register rs, Register rb, int mb, int me, in rlwnm() argument
785 emit(RLWNMX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | mb * B6 | in rlwnm()
790 void Assembler::rlwimi(Register ra, Register rs, int sh, int mb, int me, in rlwimi() argument
795 emit(RLWIMIX | rs.code() * B21 | ra.code() * B16 | sh * B11 | mb * B6 | in rlwimi()
826 void Assembler::srawi(Register ra, Register rs, int sh, RCBit r) { in srawi() argument
827 emit(EXT2 | SRAWIX | rs.code() * B21 | ra.code() * B16 | sh * B11 | r); in srawi()
841 void Assembler::sraw(Register ra, Register rs, Register rb, RCBit r) { in sraw() argument
842 x_form(EXT2 | SRAW, ra, rs, rb, r); in sraw()
846 void Assembler::rotlw(Register ra, Register rs, Register rb, RCBit r) { in rotlw() argument
847 rlwnm(ra, rs, rb, 0, 31, r); in rotlw()
851 void Assembler::rotlwi(Register ra, Register rs, int sh, RCBit r) { in rotlwi() argument
852 rlwinm(ra, rs, sh, 0, 31, r); in rotlwi()
856 void Assembler::rotrwi(Register ra, Register rs, int sh, RCBit r) { in rotrwi() argument
857 rlwinm(ra, rs, 32 - sh, 0, 31, r); in rotrwi()
957 void Assembler::andi(Register ra, Register rs, const Operand& imm) { in andi() argument
958 d_form(ANDIx, rs, ra, imm.imm_, false); in andi()
962 void Assembler::andis(Register ra, Register rs, const Operand& imm) { in andis() argument
963 d_form(ANDISx, rs, ra, imm.imm_, false); in andis()
977 void Assembler::ori(Register ra, Register rs, const Operand& imm) { in ori() argument
978 d_form(ORI, rs, ra, imm.imm_, false); in ori()
1093 void Assembler::isel(Register rt, Register ra, Register rb, int cb) { in isel() argument
1094 emit(EXT2 | ISEL | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in isel()
1119 d_form(LBZ, dst, src.ra(), src.offset(), true); in lbz()
1124 Register ra = src.ra(); in lbzx() local
1126 DCHECK(!ra.is(r0)); in lbzx()
1127 emit(EXT2 | LBZX | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lbzx()
1133 Register ra = src.ra(); in lbzux() local
1135 DCHECK(!ra.is(r0)); in lbzux()
1136 emit(EXT2 | LBZUX | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lbzux()
1143 d_form(LHZ, dst, src.ra(), src.offset(), true); in lhz()
1148 Register ra = src.ra(); in lhzx() local
1150 DCHECK(!ra.is(r0)); in lhzx()
1151 emit(EXT2 | LHZX | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lhzx()
1157 Register ra = src.ra(); in lhzux() local
1159 DCHECK(!ra.is(r0)); in lhzux()
1160 emit(EXT2 | LHZUX | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lhzux()
1166 Register ra = src.ra(); in lhax() local
1168 DCHECK(!ra.is(r0)); in lhax()
1169 emit(EXT2 | LHAX | rt.code() * B21 | ra.code() * B16 | rb.code() * B11); in lhax()
1175 d_form(LWZ, dst, src.ra(), src.offset(), true); in lwz()
1181 d_form(LWZU, dst, src.ra(), src.offset(), true); in lwzu()
1186 Register ra = src.ra(); in lwzx() local
1188 DCHECK(!ra.is(r0)); in lwzx()
1189 emit(EXT2 | LWZX | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lwzx()
1195 Register ra = src.ra(); in lwzux() local
1197 DCHECK(!ra.is(r0)); in lwzux()
1198 emit(EXT2 | LWZUX | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lwzux()
1205 d_form(LHA, dst, src.ra(), src.offset(), true); in lha()
1215 emit(LD | dst.code() * B21 | src.ra().code() * B16 | offset | 2); in lwa()
1224 Register ra = src.ra(); in lwax() local
1226 DCHECK(!ra.is(r0)); in lwax()
1227 emit(EXT2 | LWAX | rt.code() * B21 | ra.code() * B16 | rb.code() * B11); in lwax()
1235 x_form(EXT2 | LDBRX, src.ra(), dst, src.rb(), LeaveRC); in ldbrx()
1240 x_form(EXT2 | LWBRX, src.ra(), dst, src.rb(), LeaveRC); in lwbrx()
1245 x_form(EXT2 | LHBRX, src.ra(), dst, src.rb(), LeaveRC); in lhbrx()
1251 d_form(STB, dst, src.ra(), src.offset(), true); in stb()
1256 Register ra = src.ra(); in stbx() local
1258 DCHECK(!ra.is(r0)); in stbx()
1259 emit(EXT2 | STBX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in stbx()
1265 Register ra = src.ra(); in stbux() local
1267 DCHECK(!ra.is(r0)); in stbux()
1268 emit(EXT2 | STBUX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in stbux()
1275 d_form(STH, dst, src.ra(), src.offset(), true); in sth()
1280 Register ra = src.ra(); in sthx() local
1282 DCHECK(!ra.is(r0)); in sthx()
1283 emit(EXT2 | STHX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in sthx()
1289 Register ra = src.ra(); in sthux() local
1291 DCHECK(!ra.is(r0)); in sthux()
1292 emit(EXT2 | STHUX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in sthux()
1299 d_form(STW, dst, src.ra(), src.offset(), true); in stw()
1305 d_form(STWU, dst, src.ra(), src.offset(), true); in stwu()
1310 Register ra = src.ra(); in stwx() local
1312 DCHECK(!ra.is(r0)); in stwx()
1313 emit(EXT2 | STWX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in stwx()
1319 Register ra = src.ra(); in stwux() local
1321 DCHECK(!ra.is(r0)); in stwux()
1322 emit(EXT2 | STWUX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in stwux()
1327 void Assembler::extsb(Register rs, Register ra, RCBit rc) { in extsb() argument
1328 emit(EXT2 | EXTSB | ra.code() * B21 | rs.code() * B16 | rc); in extsb()
1332 void Assembler::extsh(Register rs, Register ra, RCBit rc) { in extsh() argument
1333 emit(EXT2 | EXTSH | ra.code() * B21 | rs.code() * B16 | rc); in extsh()
1337 void Assembler::extsw(Register rs, Register ra, RCBit rc) { in extsw() argument
1339 emit(EXT2 | EXTSW | ra.code() * B21 | rs.code() * B16 | rc); in extsw()
1342 DCHECK(rs.is(ra) && rc == LeaveRC); in extsw()
1347 void Assembler::neg(Register rt, Register ra, OEBit o, RCBit r) { in neg() argument
1348 emit(EXT2 | NEGX | rt.code() * B21 | ra.code() * B16 | o | r); in neg()
1364 emit(LD | rd.code() * B21 | src.ra().code() * B16 | offset); in ld()
1369 Register ra = src.ra(); in ldx() local
1371 DCHECK(!ra.is(r0)); in ldx()
1372 emit(EXT2 | LDX | rd.code() * B21 | ra.code() * B16 | rb.code() * B11); in ldx()
1381 emit(LD | rd.code() * B21 | src.ra().code() * B16 | offset | 1); in ldu()
1386 Register ra = src.ra(); in ldux() local
1388 DCHECK(!ra.is(r0)); in ldux()
1389 emit(EXT2 | LDUX | rd.code() * B21 | ra.code() * B16 | rb.code() * B11); in ldux()
1398 emit(STD | rs.code() * B21 | src.ra().code() * B16 | offset); in std()
1403 Register ra = src.ra(); in stdx() local
1405 DCHECK(!ra.is(r0)); in stdx()
1406 emit(EXT2 | STDX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11); in stdx()
1415 emit(STD | rs.code() * B21 | src.ra().code() * B16 | offset | 1); in stdu()
1420 Register ra = src.ra(); in stdux() local
1422 DCHECK(!ra.is(r0)); in stdux()
1423 emit(EXT2 | STDUX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11); in stdux()
1427 void Assembler::rldic(Register ra, Register rs, int sh, int mb, RCBit r) { in rldic() argument
1428 md_form(EXT5 | RLDIC, ra, rs, sh, mb, r); in rldic()
1432 void Assembler::rldicl(Register ra, Register rs, int sh, int mb, RCBit r) { in rldicl() argument
1433 md_form(EXT5 | RLDICL, ra, rs, sh, mb, r); in rldicl()
1437 void Assembler::rldcl(Register ra, Register rs, Register rb, int mb, RCBit r) { in rldcl() argument
1438 mds_form(EXT5 | RLDCL, ra, rs, rb, mb, r); in rldcl()
1442 void Assembler::rldicr(Register ra, Register rs, int sh, int me, RCBit r) { in rldicr() argument
1443 md_form(EXT5 | RLDICR, ra, rs, sh, me, r); in rldicr()
1473 void Assembler::rldimi(Register ra, Register rs, int sh, int mb, RCBit r) { in rldimi() argument
1474 md_form(EXT5 | RLDIMI, ra, rs, sh, mb, r); in rldimi()
1478 void Assembler::sradi(Register ra, Register rs, int sh, RCBit r) { in sradi() argument
1482 emit(EXT2 | SRADIX | rs.code() * B21 | ra.code() * B16 | sh0_4 * B11 | in sradi()
1497 void Assembler::srad(Register ra, Register rs, Register rb, RCBit r) { in srad() argument
1498 x_form(EXT2 | SRAD, ra, rs, rb, r); in srad()
1502 void Assembler::rotld(Register ra, Register rs, Register rb, RCBit r) { in rotld() argument
1503 rldcl(ra, rs, rb, 0, r); in rotld()
1507 void Assembler::rotldi(Register ra, Register rs, int sh, RCBit r) { in rotldi() argument
1508 rldicl(ra, rs, sh, 0, r); in rotldi()
1512 void Assembler::rotrdi(Register ra, Register rs, int sh, RCBit r) { in rotrdi() argument
1513 rldicl(ra, rs, 64 - sh, 0, r); in rotrdi()
1517 void Assembler::cntlzd_(Register ra, Register rs, RCBit rc) { in cntlzd_() argument
1518 x_form(EXT2 | CNTLZDX, ra, rs, r0, rc); in cntlzd_()
1522 void Assembler::popcntd(Register ra, Register rs) { in popcntd() argument
1523 emit(EXT2 | POPCNTD | rs.code() * B21 | ra.code() * B16); in popcntd()
1947 void Assembler::dcbf(Register ra, Register rb) { in dcbf() argument
1948 emit(EXT2 | DCBF | ra.code() * B16 | rb.code() * B11); in dcbf()
1958 void Assembler::icbi(Register ra, Register rb) { in icbi() argument
1959 emit(EXT2 | ICBI | ra.code() * B16 | rb.code() * B11); in icbi()
1970 Register ra = src.ra(); in lfd() local
1971 DCHECK(!ra.is(r0)); in lfd()
1975 emit(LFD | frt.code() * B21 | ra.code() * B16 | imm16); in lfd()
1981 Register ra = src.ra(); in lfdu() local
1982 DCHECK(!ra.is(r0)); in lfdu()
1986 emit(LFDU | frt.code() * B21 | ra.code() * B16 | imm16); in lfdu()
1991 Register ra = src.ra(); in lfdx() local
1993 DCHECK(!ra.is(r0)); in lfdx()
1994 emit(EXT2 | LFDX | frt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lfdx()
2000 Register ra = src.ra(); in lfdux() local
2002 DCHECK(!ra.is(r0)); in lfdux()
2003 emit(EXT2 | LFDUX | frt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lfdux()
2010 Register ra = src.ra(); in lfs() local
2012 DCHECK(!ra.is(r0)); in lfs()
2015 emit(LFS | frt.code() * B21 | ra.code() * B16 | imm16); in lfs()
2021 Register ra = src.ra(); in lfsu() local
2023 DCHECK(!ra.is(r0)); in lfsu()
2026 emit(LFSU | frt.code() * B21 | ra.code() * B16 | imm16); in lfsu()
2031 Register ra = src.ra(); in lfsx() local
2033 DCHECK(!ra.is(r0)); in lfsx()
2034 emit(EXT2 | LFSX | frt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lfsx()
2040 Register ra = src.ra(); in lfsux() local
2042 DCHECK(!ra.is(r0)); in lfsux()
2043 emit(EXT2 | LFSUX | frt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lfsux()
2050 Register ra = src.ra(); in stfd() local
2052 DCHECK(!ra.is(r0)); in stfd()
2055 emit(STFD | frs.code() * B21 | ra.code() * B16 | imm16); in stfd()
2061 Register ra = src.ra(); in stfdu() local
2063 DCHECK(!ra.is(r0)); in stfdu()
2066 emit(STFDU | frs.code() * B21 | ra.code() * B16 | imm16); in stfdu()
2071 Register ra = src.ra(); in stfdx() local
2073 DCHECK(!ra.is(r0)); in stfdx()
2074 emit(EXT2 | STFDX | frs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in stfdx()
2080 Register ra = src.ra(); in stfdux() local
2082 DCHECK(!ra.is(r0)); in stfdux()
2083 emit(EXT2 | STFDUX | frs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in stfdux()
2090 Register ra = src.ra(); in stfs() local
2092 DCHECK(!ra.is(r0)); in stfs()
2095 emit(STFS | frs.code() * B21 | ra.code() * B16 | imm16); in stfs()
2101 Register ra = src.ra(); in stfsu() local
2103 DCHECK(!ra.is(r0)); in stfsu()
2106 emit(STFSU | frs.code() * B21 | ra.code() * B16 | imm16); in stfsu()
2111 Register ra = src.ra(); in stfsx() local
2113 DCHECK(!ra.is(r0)); in stfsx()
2114 emit(EXT2 | STFSX | frs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in stfsx()
2120 Register ra = src.ra(); in stfsux() local
2122 DCHECK(!ra.is(r0)); in stfsux()
2123 emit(EXT2 | STFSUX | frs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in stfsux()