Lines Matching full:hi

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