• Home
  • Raw
  • Download

Lines Matching refs:ra

224 MemOperand::MemOperand(Register ra, Register rb) {  in MemOperand()  argument
225 ra_ = ra; in MemOperand()
625 void Assembler::d_form(Instr instr, Register rt, Register ra, in d_form() argument
640 emit(instr | rt.code() * B21 | ra.code() * B16 | (kImm16Mask & val)); in d_form()
644 void Assembler::x_form(Instr instr, Register ra, Register rs, Register rb, in x_form() argument
646 emit(instr | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | r); in x_form()
649 void Assembler::xo_form(Instr instr, Register rt, Register ra, Register rb, in xo_form() argument
651 emit(instr | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 | o | r); in xo_form()
663 void Assembler::md_form(Instr instr, Register ra, Register rs, int shift, in md_form() argument
670 emit(instr | rs.code() * B21 | ra.code() * B16 | sh0_4 * B11 | m0_4 * B6 | in md_form()
675 void Assembler::mds_form(Instr instr, Register ra, Register rs, Register rb, in mds_form() argument
680 emit(instr | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | m0_4 * B6 | in mds_form()
764 void Assembler::xoris(Register ra, Register rs, const Operand& imm) { in xoris() argument
765 d_form(XORIS, rs, ra, imm.imm_, false); in xoris()
774 void Assembler::cntlzw_(Register ra, Register rs, RCBit rc) { in cntlzw_() argument
775 x_form(EXT2 | CNTLZWX, ra, rs, r0, rc); in cntlzw_()
779 void Assembler::popcntw(Register ra, Register rs) { in popcntw() argument
780 emit(EXT2 | POPCNTW | rs.code() * B21 | ra.code() * B16); in popcntw()
784 void Assembler::and_(Register ra, Register rs, Register rb, RCBit rc) { in and_() argument
785 x_form(EXT2 | ANDX, ra, rs, rb, rc); in and_()
789 void Assembler::rlwinm(Register ra, Register rs, int sh, int mb, int me, in rlwinm() argument
794 emit(RLWINMX | rs.code() * B21 | ra.code() * B16 | sh * B11 | mb * B6 | in rlwinm()
799 void Assembler::rlwnm(Register ra, Register rs, Register rb, int mb, int me, in rlwnm() argument
803 emit(RLWNMX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | mb * B6 | in rlwnm()
808 void Assembler::rlwimi(Register ra, Register rs, int sh, int mb, int me, in rlwimi() argument
813 emit(RLWIMIX | rs.code() * B21 | ra.code() * B16 | sh * B11 | mb * B6 | in rlwimi()
844 void Assembler::srawi(Register ra, Register rs, int sh, RCBit r) { in srawi() argument
845 emit(EXT2 | SRAWIX | rs.code() * B21 | ra.code() * B16 | sh * B11 | r); in srawi()
859 void Assembler::sraw(Register ra, Register rs, Register rb, RCBit r) { in sraw() argument
860 x_form(EXT2 | SRAW, ra, rs, rb, r); in sraw()
864 void Assembler::rotlw(Register ra, Register rs, Register rb, RCBit r) { in rotlw() argument
865 rlwnm(ra, rs, rb, 0, 31, r); in rotlw()
869 void Assembler::rotlwi(Register ra, Register rs, int sh, RCBit r) { in rotlwi() argument
870 rlwinm(ra, rs, sh, 0, 31, r); in rotlwi()
874 void Assembler::rotrwi(Register ra, Register rs, int sh, RCBit r) { in rotrwi() argument
875 rlwinm(ra, rs, 32 - sh, 0, 31, r); in rotrwi()
957 void Assembler::modsw(Register rt, Register ra, Register rb) { in modsw() argument
958 x_form(EXT2 | MODSW, ra, rt, rb, LeaveRC); in modsw()
961 void Assembler::moduw(Register rt, Register ra, Register rb) { in moduw() argument
962 x_form(EXT2 | MODUW, ra, rt, rb, LeaveRC); in moduw()
982 void Assembler::andi(Register ra, Register rs, const Operand& imm) { in andi() argument
983 d_form(ANDIx, rs, ra, imm.imm_, false); in andi()
987 void Assembler::andis(Register ra, Register rs, const Operand& imm) { in andis() argument
988 d_form(ANDISx, rs, ra, imm.imm_, false); in andis()
1002 void Assembler::ori(Register ra, Register rs, const Operand& imm) { in ori() argument
1003 d_form(ORI, rs, ra, imm.imm_, false); in ori()
1118 void Assembler::isel(Register rt, Register ra, Register rb, int cb) { in isel() argument
1119 emit(EXT2 | ISEL | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in isel()
1144 d_form(LBZ, dst, src.ra(), src.offset(), true); in lbz()
1149 Register ra = src.ra(); in lbzx() local
1151 DCHECK(!ra.is(r0)); in lbzx()
1152 emit(EXT2 | LBZX | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lbzx()
1158 Register ra = src.ra(); in lbzux() local
1160 DCHECK(!ra.is(r0)); in lbzux()
1161 emit(EXT2 | LBZUX | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lbzux()
1168 d_form(LHZ, dst, src.ra(), src.offset(), true); in lhz()
1173 Register ra = src.ra(); in lhzx() local
1175 DCHECK(!ra.is(r0)); in lhzx()
1176 emit(EXT2 | LHZX | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lhzx()
1182 Register ra = src.ra(); in lhzux() local
1184 DCHECK(!ra.is(r0)); in lhzux()
1185 emit(EXT2 | LHZUX | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lhzux()
1191 Register ra = src.ra(); in lhax() local
1193 DCHECK(!ra.is(r0)); in lhax()
1194 emit(EXT2 | LHAX | rt.code() * B21 | ra.code() * B16 | rb.code() * B11); in lhax()
1200 d_form(LWZ, dst, src.ra(), src.offset(), true); in lwz()
1206 d_form(LWZU, dst, src.ra(), src.offset(), true); in lwzu()
1211 Register ra = src.ra(); in lwzx() local
1213 DCHECK(!ra.is(r0)); in lwzx()
1214 emit(EXT2 | LWZX | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lwzx()
1220 Register ra = src.ra(); in lwzux() local
1222 DCHECK(!ra.is(r0)); in lwzux()
1223 emit(EXT2 | LWZUX | rt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lwzux()
1230 d_form(LHA, dst, src.ra(), src.offset(), true); in lha()
1240 emit(LD | dst.code() * B21 | src.ra().code() * B16 | offset | 2); in lwa()
1249 Register ra = src.ra(); in lwax() local
1251 DCHECK(!ra.is(r0)); in lwax()
1252 emit(EXT2 | LWAX | rt.code() * B21 | ra.code() * B16 | rb.code() * B11); in lwax()
1260 x_form(EXT2 | LDBRX, src.ra(), dst, src.rb(), LeaveRC); in ldbrx()
1265 x_form(EXT2 | LWBRX, src.ra(), dst, src.rb(), LeaveRC); in lwbrx()
1270 x_form(EXT2 | LHBRX, src.ra(), dst, src.rb(), LeaveRC); in lhbrx()
1276 d_form(STB, dst, src.ra(), src.offset(), true); in stb()
1281 Register ra = src.ra(); in stbx() local
1283 DCHECK(!ra.is(r0)); in stbx()
1284 emit(EXT2 | STBX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in stbx()
1290 Register ra = src.ra(); in stbux() local
1292 DCHECK(!ra.is(r0)); in stbux()
1293 emit(EXT2 | STBUX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in stbux()
1300 d_form(STH, dst, src.ra(), src.offset(), true); in sth()
1305 Register ra = src.ra(); in sthx() local
1307 DCHECK(!ra.is(r0)); in sthx()
1308 emit(EXT2 | STHX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in sthx()
1314 Register ra = src.ra(); in sthux() local
1316 DCHECK(!ra.is(r0)); in sthux()
1317 emit(EXT2 | STHUX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in sthux()
1324 d_form(STW, dst, src.ra(), src.offset(), true); in stw()
1330 d_form(STWU, dst, src.ra(), src.offset(), true); in stwu()
1335 Register ra = src.ra(); in stwx() local
1337 DCHECK(!ra.is(r0)); in stwx()
1338 emit(EXT2 | STWX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in stwx()
1344 Register ra = src.ra(); in stwux() local
1346 DCHECK(!ra.is(r0)); in stwux()
1347 emit(EXT2 | STWUX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in stwux()
1352 void Assembler::extsb(Register rs, Register ra, RCBit rc) { in extsb() argument
1353 emit(EXT2 | EXTSB | ra.code() * B21 | rs.code() * B16 | rc); in extsb()
1357 void Assembler::extsh(Register rs, Register ra, RCBit rc) { in extsh() argument
1358 emit(EXT2 | EXTSH | ra.code() * B21 | rs.code() * B16 | rc); in extsh()
1362 void Assembler::extsw(Register rs, Register ra, RCBit rc) { in extsw() argument
1364 emit(EXT2 | EXTSW | ra.code() * B21 | rs.code() * B16 | rc); in extsw()
1367 DCHECK(rs.is(ra) && rc == LeaveRC); in extsw()
1372 void Assembler::neg(Register rt, Register ra, OEBit o, RCBit r) { in neg() argument
1373 emit(EXT2 | NEGX | rt.code() * B21 | ra.code() * B16 | o | r); in neg()
1389 emit(LD | rd.code() * B21 | src.ra().code() * B16 | offset); in ld()
1394 Register ra = src.ra(); in ldx() local
1396 DCHECK(!ra.is(r0)); in ldx()
1397 emit(EXT2 | LDX | rd.code() * B21 | ra.code() * B16 | rb.code() * B11); in ldx()
1406 emit(LD | rd.code() * B21 | src.ra().code() * B16 | offset | 1); in ldu()
1411 Register ra = src.ra(); in ldux() local
1413 DCHECK(!ra.is(r0)); in ldux()
1414 emit(EXT2 | LDUX | rd.code() * B21 | ra.code() * B16 | rb.code() * B11); in ldux()
1423 emit(STD | rs.code() * B21 | src.ra().code() * B16 | offset); in std()
1428 Register ra = src.ra(); in stdx() local
1430 DCHECK(!ra.is(r0)); in stdx()
1431 emit(EXT2 | STDX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11); in stdx()
1440 emit(STD | rs.code() * B21 | src.ra().code() * B16 | offset | 1); in stdu()
1445 Register ra = src.ra(); in stdux() local
1447 DCHECK(!ra.is(r0)); in stdux()
1448 emit(EXT2 | STDUX | rs.code() * B21 | ra.code() * B16 | rb.code() * B11); in stdux()
1452 void Assembler::rldic(Register ra, Register rs, int sh, int mb, RCBit r) { in rldic() argument
1453 md_form(EXT5 | RLDIC, ra, rs, sh, mb, r); in rldic()
1457 void Assembler::rldicl(Register ra, Register rs, int sh, int mb, RCBit r) { in rldicl() argument
1458 md_form(EXT5 | RLDICL, ra, rs, sh, mb, r); in rldicl()
1462 void Assembler::rldcl(Register ra, Register rs, Register rb, int mb, RCBit r) { in rldcl() argument
1463 mds_form(EXT5 | RLDCL, ra, rs, rb, mb, r); in rldcl()
1467 void Assembler::rldicr(Register ra, Register rs, int sh, int me, RCBit r) { in rldicr() argument
1468 md_form(EXT5 | RLDICR, ra, rs, sh, me, r); in rldicr()
1498 void Assembler::rldimi(Register ra, Register rs, int sh, int mb, RCBit r) { in rldimi() argument
1499 md_form(EXT5 | RLDIMI, ra, rs, sh, mb, r); in rldimi()
1503 void Assembler::sradi(Register ra, Register rs, int sh, RCBit r) { in sradi() argument
1507 emit(EXT2 | SRADIX | rs.code() * B21 | ra.code() * B16 | sh0_4 * B11 | in sradi()
1522 void Assembler::srad(Register ra, Register rs, Register rb, RCBit r) { in srad() argument
1523 x_form(EXT2 | SRAD, ra, rs, rb, r); in srad()
1527 void Assembler::rotld(Register ra, Register rs, Register rb, RCBit r) { in rotld() argument
1528 rldcl(ra, rs, rb, 0, r); in rotld()
1532 void Assembler::rotldi(Register ra, Register rs, int sh, RCBit r) { in rotldi() argument
1533 rldicl(ra, rs, sh, 0, r); in rotldi()
1537 void Assembler::rotrdi(Register ra, Register rs, int sh, RCBit r) { in rotrdi() argument
1538 rldicl(ra, rs, 64 - sh, 0, r); in rotrdi()
1542 void Assembler::cntlzd_(Register ra, Register rs, RCBit rc) { in cntlzd_() argument
1543 x_form(EXT2 | CNTLZDX, ra, rs, r0, rc); in cntlzd_()
1547 void Assembler::popcntd(Register ra, Register rs) { in popcntd() argument
1548 emit(EXT2 | POPCNTD | rs.code() * B21 | ra.code() * B16); in popcntd()
1569 void Assembler::modsd(Register rt, Register ra, Register rb) { in modsd() argument
1570 x_form(EXT2 | MODSD, ra, rt, rb, LeaveRC); in modsd()
1573 void Assembler::modud(Register rt, Register ra, Register rb) { in modud() argument
1574 x_form(EXT2 | MODUD, ra, rt, rb, LeaveRC); in modud()
1980 void Assembler::dcbf(Register ra, Register rb) { in dcbf() argument
1981 emit(EXT2 | DCBF | ra.code() * B16 | rb.code() * B11); in dcbf()
1991 void Assembler::icbi(Register ra, Register rb) { in icbi() argument
1992 emit(EXT2 | ICBI | ra.code() * B16 | rb.code() * B11); in icbi()
2003 Register ra = src.ra(); in lfd() local
2004 DCHECK(!ra.is(r0)); in lfd()
2008 emit(LFD | frt.code() * B21 | ra.code() * B16 | imm16); in lfd()
2014 Register ra = src.ra(); in lfdu() local
2015 DCHECK(!ra.is(r0)); in lfdu()
2019 emit(LFDU | frt.code() * B21 | ra.code() * B16 | imm16); in lfdu()
2024 Register ra = src.ra(); in lfdx() local
2026 DCHECK(!ra.is(r0)); in lfdx()
2027 emit(EXT2 | LFDX | frt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lfdx()
2033 Register ra = src.ra(); in lfdux() local
2035 DCHECK(!ra.is(r0)); in lfdux()
2036 emit(EXT2 | LFDUX | frt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lfdux()
2043 Register ra = src.ra(); in lfs() local
2045 DCHECK(!ra.is(r0)); in lfs()
2048 emit(LFS | frt.code() * B21 | ra.code() * B16 | imm16); in lfs()
2054 Register ra = src.ra(); in lfsu() local
2056 DCHECK(!ra.is(r0)); in lfsu()
2059 emit(LFSU | frt.code() * B21 | ra.code() * B16 | imm16); in lfsu()
2064 Register ra = src.ra(); in lfsx() local
2066 DCHECK(!ra.is(r0)); in lfsx()
2067 emit(EXT2 | LFSX | frt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lfsx()
2073 Register ra = src.ra(); in lfsux() local
2075 DCHECK(!ra.is(r0)); in lfsux()
2076 emit(EXT2 | LFSUX | frt.code() * B21 | ra.code() * B16 | rb.code() * B11 | in lfsux()
2083 Register ra = src.ra(); in stfd() local
2085 DCHECK(!ra.is(r0)); in stfd()
2088 emit(STFD | frs.code() * B21 | ra.code() * B16 | imm16); in stfd()
2094 Register ra = src.ra(); in stfdu() local
2096 DCHECK(!ra.is(r0)); in stfdu()
2099 emit(STFDU | frs.code() * B21 | ra.code() * B16 | imm16); in stfdu()
2104 Register ra = src.ra(); in stfdx() local
2106 DCHECK(!ra.is(r0)); in stfdx()
2107 emit(EXT2 | STFDX | frs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in stfdx()
2113 Register ra = src.ra(); in stfdux() local
2115 DCHECK(!ra.is(r0)); in stfdux()
2116 emit(EXT2 | STFDUX | frs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in stfdux()
2123 Register ra = src.ra(); in stfs() local
2125 DCHECK(!ra.is(r0)); in stfs()
2128 emit(STFS | frs.code() * B21 | ra.code() * B16 | imm16); in stfs()
2134 Register ra = src.ra(); in stfsu() local
2136 DCHECK(!ra.is(r0)); in stfsu()
2139 emit(STFSU | frs.code() * B21 | ra.code() * B16 | imm16); in stfsu()
2144 Register ra = src.ra(); in stfsx() local
2146 DCHECK(!ra.is(r0)); in stfsx()
2147 emit(EXT2 | STFSX | frs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in stfsx()
2153 Register ra = src.ra(); in stfsux() local
2155 DCHECK(!ra.is(r0)); in stfsux()
2156 emit(EXT2 | STFSUX | frs.code() * B21 | ra.code() * B16 | rb.code() * B11 | in stfsux()