Lines Matching refs:hi
154 static inline u8 hi(const u8 reg[])
178 emit(ctx, addiu, hi(dst), MIPS_R_ZERO, -1);
180 emit(ctx, move, hi(dst), MIPS_R_ZERO);
188 emit(ctx, move, hi(dst), MIPS_R_ZERO);
189 clobber_reg(ctx, hi(dst));
230 emit(ctx, addu, hi(dst), hi(dst), MIPS_R_T9);
232 emit(ctx, addiu, hi(dst), hi(dst), -1);
238 emit(ctx, subu, hi(dst), hi(dst), MIPS_R_T9);
240 emit(ctx, addiu, hi(dst), hi(dst), 1);
246 emit(ctx, addiu, hi(dst), MIPS_R_ZERO, -1);
252 emit(ctx, move, hi(dst), MIPS_R_ZERO);
258 emit(ctx, subu, hi(dst), MIPS_R_ZERO, hi(dst));
259 emit(ctx, addiu, hi(dst), hi(dst), -1);
280 emit(ctx, addu, hi(dst), hi(dst), hi(src));
281 emit(ctx, addu, hi(dst), hi(dst), MIPS_R_T9);
287 emit(ctx, subu, hi(dst), hi(dst), hi(src));
288 emit(ctx, subu, hi(dst), hi(dst), MIPS_R_T9);
293 emit(ctx, or, hi(dst), hi(dst), hi(src));
298 emit(ctx, and, hi(dst), hi(dst), hi(src));
303 emit(ctx, xor, hi(dst), hi(dst), hi(src));
314 emit(ctx, subu, hi(dst), MIPS_R_ZERO, hi(dst));
315 emit(ctx, subu, hi(dst), hi(dst), MIPS_R_T9);
330 emit(ctx, sll, hi(dst), hi(dst), imm);
331 emit(ctx, or, hi(dst), hi(dst), MIPS_R_T9);
333 emit(ctx, sll, hi(dst), lo(dst), imm - 32);
340 emit(ctx, sll, MIPS_R_T9, hi(dst), 32 - imm);
342 emit(ctx, srl, hi(dst), hi(dst), imm);
345 emit(ctx, srl, lo(dst), hi(dst), imm - 32);
346 emit(ctx, move, hi(dst), MIPS_R_ZERO);
352 emit(ctx, sll, MIPS_R_T9, hi(dst), 32 - imm);
354 emit(ctx, sra, hi(dst), hi(dst), imm);
357 emit(ctx, sra, lo(dst), hi(dst), imm - 32);
358 emit(ctx, sra, hi(dst), hi(dst), 31);
380 emit(ctx, sllv, hi(dst), lo(dst), src); /* dh = dl << src */
387 emit(ctx, sllv, hi(dst), hi(dst), src); /* dh = dh << src */
388 emit(ctx, or, hi(dst), hi(dst), t1); /* dh = dh | t1 */
393 emit(ctx, srlv, lo(dst), hi(dst), src); /* dl = dh >> src */
394 emit(ctx, move, hi(dst), MIPS_R_ZERO); /* dh = 0 */
397 emit(ctx, sll, t1, hi(dst), 1); /* t1 = dl << 1 */
400 emit(ctx, srlv, hi(dst), hi(dst), src); /* dh = dh >> src */
406 emit(ctx, srav, lo(dst), hi(dst), src); /* dl = dh >>a src */
407 emit(ctx, sra, hi(dst), hi(dst), 31); /* dh = dh >>a 31 */
410 emit(ctx, sll, t1, hi(dst), 1); /* t1 = dl << 1 */
413 emit(ctx, srav, hi(dst), hi(dst), src); /* dh = dh >> src */
438 emit_mov_r(ctx, hi(dst), MIPS_R_ZERO);
442 /* hi(dst) = hi(dst) * src(imm) */
445 emit(ctx, mul, hi(dst), hi(dst), src);
447 emit(ctx, multu, hi(dst), src);
448 emit(ctx, mflo, hi(dst));
451 /* hi(dst) = hi(dst) - lo(dst) */
453 emit(ctx, subu, hi(dst), hi(dst), lo(dst));
466 /* hi(dst) += tmp */
467 emit(ctx, addu, hi(dst), hi(dst), tmp);
480 /* acc = hi(dst) * lo(src) */
482 emit(ctx, mul, acc, hi(dst), lo(src));
484 emit(ctx, multu, hi(dst), lo(src));
488 /* tmp = lo(dst) * hi(src) */
490 emit(ctx, mul, tmp, lo(dst), hi(src));
492 emit(ctx, multu, lo(dst), hi(src));
510 /* hi(dst) = acc + tmp */
511 emit(ctx, addu, hi(dst), acc, tmp);
565 exclude = BIT(lo(dst)) | BIT(hi(dst));
607 emit(ctx, rotr, tmp, hi(dst), 16);
608 emit(ctx, rotr, hi(dst), lo(dst), 16);
610 emit(ctx, wsbh, hi(dst), hi(dst));
613 emit_swap16_r(ctx, lo(dst), hi(dst));
614 emit(ctx, move, hi(dst), tmp);
619 emit_swap8_r(ctx, hi(dst), hi(dst), tmp);
627 emit(ctx, move, hi(dst), MIPS_R_ZERO);
641 emit(ctx, move, hi(dst), MIPS_R_ZERO);
642 clobber_reg(ctx, hi(dst));
646 emit(ctx, move, hi(dst), MIPS_R_ZERO);
661 emit(ctx, move, hi(dst), MIPS_R_ZERO);
666 emit(ctx, move, hi(dst), MIPS_R_ZERO);
671 emit(ctx, move, hi(dst), MIPS_R_ZERO);
860 emit(ctx, move, hi(src), hi(r0));
998 emit(ctx, sltiu, tmp, hi(rs), -1); /* tmp = rsh < ~0U */
1007 emit_movn_r(ctx, rd, MIPS_R_ZERO, hi(rs)); /* rd = 0 if rsh */
1018 emit(ctx, subu, tmp, hi(rs), hi(rt)); /* tmp = rsh - rth */
1020 emit(ctx, sltu, tmp, hi(rs), hi(rt)); /* tmp = rsh < rth */
1039 emit(ctx, srl, rd, hi(rs), 31); /* rd = rsh >> 31 */
1050 emit(ctx, addiu, rd, hi(rs), 1); /* rd = rsh + 1 */
1053 cmp = hi(rs);
1062 emit(ctx, slti, rd, hi(rs), imm < 0 ? -1 : 0); /* rd = rsh < hi(imm) */
1081 emit(ctx, xor, t3, hi(rs), hi(rt)); /* t3 = rlh ^ rth */
1087 emit(ctx, slt, rd, hi(rs), hi(rt)); /* rd = rsh <s rth */
1114 emit(ctx, addu, MIPS_R_T9, hi(dst), 1);
1117 emit(ctx, or, tmp, tmp, hi(dst));
1135 emit(ctx, or, tmp, tmp, hi(dst));
1200 emit(ctx, subu, t2, hi(dst), hi(src));
1212 emit(ctx, and, t2, hi(dst), hi(src));
1407 emit(ctx, move, hi(r1), MIPS_R_ZERO);
1486 emit_mov_i(ctx, hi(dst), 0);
1559 emit_mov_r(ctx, hi(dst), hi(src));
1652 emit_mov_i(ctx, hi(dst), insn[1].imm);