Lines Matching refs:hi
101 static s8 hi(const s8 *r) in hi() function
131 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx); in emit_imm32()
133 emit(rv_addi(hi(rd), RV_REG_ZERO, -1), ctx); in emit_imm32()
140 emit_imm(hi(rd), imm_hi, ctx); in emit_imm64()
151 emit(rv_addi(RV_REG_A1, hi(r0), 0), ctx); in __build_epilogue()
188 if (is_stacked(hi(reg))) { in bpf_get_reg64()
189 emit(rv_lw(hi(tmp), hi(reg), RV_REG_FP), ctx); in bpf_get_reg64()
199 if (is_stacked(hi(reg))) { in bpf_put_reg64()
200 emit(rv_sw(RV_REG_FP, hi(reg), hi(src)), ctx); in bpf_put_reg64()
221 emit(rv_sw(RV_REG_FP, hi(reg), RV_REG_ZERO), ctx); in bpf_put_reg32()
223 emit(rv_addi(hi(reg), RV_REG_ZERO, 0), ctx); in bpf_put_reg32()
261 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx); in emit_alu_i64()
271 emit(rv_ori(hi(rd), RV_REG_ZERO, -1), ctx); in emit_alu_i64()
281 emit(rv_xori(hi(rd), hi(rd), -1), ctx); in emit_alu_i64()
285 emit(rv_slli(hi(rd), lo(rd), imm - 32), ctx); in emit_alu_i64()
291 emit(rv_slli(hi(rd), hi(rd), imm), ctx); in emit_alu_i64()
292 emit(rv_or(hi(rd), RV_REG_T0, hi(rd)), ctx); in emit_alu_i64()
298 emit(rv_srli(lo(rd), hi(rd), imm - 32), ctx); in emit_alu_i64()
299 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx); in emit_alu_i64()
303 emit(rv_slli(RV_REG_T0, hi(rd), 32 - imm), ctx); in emit_alu_i64()
306 emit(rv_srli(hi(rd), hi(rd), imm), ctx); in emit_alu_i64()
311 emit(rv_srai(lo(rd), hi(rd), imm - 32), ctx); in emit_alu_i64()
312 emit(rv_srai(hi(rd), hi(rd), 31), ctx); in emit_alu_i64()
316 emit(rv_slli(RV_REG_T0, hi(rd), 32 - imm), ctx); in emit_alu_i64()
319 emit(rv_srai(hi(rd), hi(rd), imm), ctx); in emit_alu_i64()
417 emit(rv_addi(hi(rd), hi(rs), 0), ctx); in emit_alu_r64()
422 emit(rv_slli(hi(rd), hi(rd), 1), ctx); in emit_alu_r64()
423 emit(rv_or(hi(rd), RV_REG_T0, hi(rd)), ctx); in emit_alu_r64()
428 emit(rv_add(hi(rd), hi(rd), hi(rs)), ctx); in emit_alu_r64()
429 emit(rv_add(hi(rd), hi(rd), RV_REG_T0), ctx); in emit_alu_r64()
433 emit(rv_sub(RV_REG_T1, hi(rd), hi(rs)), ctx); in emit_alu_r64()
435 emit(rv_sub(hi(rd), RV_REG_T1, RV_REG_T0), ctx); in emit_alu_r64()
440 emit(rv_and(hi(rd), hi(rd), hi(rs)), ctx); in emit_alu_r64()
444 emit(rv_or(hi(rd), hi(rd), hi(rs)), ctx); in emit_alu_r64()
448 emit(rv_xor(hi(rd), hi(rd), hi(rs)), ctx); in emit_alu_r64()
451 emit(rv_mul(RV_REG_T0, hi(rs), lo(rd)), ctx); in emit_alu_r64()
452 emit(rv_mul(hi(rd), hi(rd), lo(rs)), ctx); in emit_alu_r64()
454 emit(rv_add(hi(rd), hi(rd), RV_REG_T0), ctx); in emit_alu_r64()
456 emit(rv_add(hi(rd), hi(rd), RV_REG_T1), ctx); in emit_alu_r64()
461 emit(rv_sll(hi(rd), lo(rd), RV_REG_T0), ctx); in emit_alu_r64()
468 emit(rv_sll(hi(rd), hi(rd), lo(rs)), ctx); in emit_alu_r64()
469 emit(rv_or(hi(rd), RV_REG_T0, hi(rd)), ctx); in emit_alu_r64()
475 emit(rv_srl(lo(rd), hi(rd), RV_REG_T0), ctx); in emit_alu_r64()
476 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx); in emit_alu_r64()
479 emit(rv_slli(RV_REG_T0, hi(rd), 1), ctx); in emit_alu_r64()
484 emit(rv_srl(hi(rd), hi(rd), lo(rs)), ctx); in emit_alu_r64()
489 emit(rv_sra(lo(rd), hi(rd), RV_REG_T0), ctx); in emit_alu_r64()
490 emit(rv_srai(hi(rd), hi(rd), 31), ctx); in emit_alu_r64()
493 emit(rv_slli(RV_REG_T0, hi(rd), 1), ctx); in emit_alu_r64()
498 emit(rv_sra(hi(rd), hi(rd), lo(rs)), ctx); in emit_alu_r64()
503 emit(rv_sub(hi(rd), RV_REG_ZERO, hi(rd)), ctx); in emit_alu_r64()
504 emit(rv_sub(hi(rd), hi(rd), RV_REG_T0), ctx); in emit_alu_r64()
587 emit(rv_bne(hi(rs1), hi(rs2), NO_JUMP(1)), ctx); in emit_branch_r64()
591 emit(rv_bgtu(hi(rs1), hi(rs2), JUMP(2)), ctx); in emit_branch_r64()
592 emit(rv_bltu(hi(rs1), hi(rs2), NO_JUMP(1)), ctx); in emit_branch_r64()
596 emit(rv_bltu(hi(rs1), hi(rs2), JUMP(2)), ctx); in emit_branch_r64()
597 emit(rv_bgtu(hi(rs1), hi(rs2), NO_JUMP(1)), ctx); in emit_branch_r64()
601 emit(rv_bgtu(hi(rs1), hi(rs2), JUMP(2)), ctx); in emit_branch_r64()
602 emit(rv_bltu(hi(rs1), hi(rs2), NO_JUMP(1)), ctx); in emit_branch_r64()
606 emit(rv_bltu(hi(rs1), hi(rs2), JUMP(2)), ctx); in emit_branch_r64()
607 emit(rv_bgtu(hi(rs1), hi(rs2), NO_JUMP(1)), ctx); in emit_branch_r64()
611 emit(rv_bne(hi(rs1), hi(rs2), JUMP(1)), ctx); in emit_branch_r64()
615 emit(rv_bgt(hi(rs1), hi(rs2), JUMP(2)), ctx); in emit_branch_r64()
616 emit(rv_blt(hi(rs1), hi(rs2), NO_JUMP(1)), ctx); in emit_branch_r64()
620 emit(rv_blt(hi(rs1), hi(rs2), JUMP(2)), ctx); in emit_branch_r64()
621 emit(rv_bgt(hi(rs1), hi(rs2), NO_JUMP(1)), ctx); in emit_branch_r64()
625 emit(rv_bgt(hi(rs1), hi(rs2), JUMP(2)), ctx); in emit_branch_r64()
626 emit(rv_blt(hi(rs1), hi(rs2), NO_JUMP(1)), ctx); in emit_branch_r64()
630 emit(rv_blt(hi(rs1), hi(rs2), JUMP(2)), ctx); in emit_branch_r64()
631 emit(rv_bgt(hi(rs1), hi(rs2), NO_JUMP(1)), ctx); in emit_branch_r64()
635 emit(rv_and(RV_REG_T0, hi(rs1), hi(rs2)), ctx); in emit_branch_r64()
752 emit(rv_sw(RV_REG_SP, 4, hi(r5)), ctx); in emit_call()
770 emit(rv_addi(hi(r0), RV_REG_A1, 0), ctx); in emit_call()
851 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx); in emit_load_r64()
856 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx); in emit_load_r64()
861 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx); in emit_load_r64()
865 emit(rv_lw(hi(rd), 4, RV_REG_T0), ctx); in emit_load_r64()
908 emit(rv_sw(RV_REG_T0, 4, hi(rs)), ctx); in emit_store_r64()
950 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx); in emit_zext64()
1083 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx); in bpf_jit_emit_insn()
1105 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx); in bpf_jit_emit_insn()
1110 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx); in bpf_jit_emit_insn()
1115 emit(rv_addi(lo(rd), hi(rd), 0), ctx); in bpf_jit_emit_insn()
1116 emit(rv_addi(hi(rd), RV_REG_T0, 0), ctx); in bpf_jit_emit_insn()
1120 emit_rev32(hi(rd), ctx); in bpf_jit_emit_insn()
1345 emit(rv_addi(hi(fp), RV_REG_ZERO, 0), ctx); in bpf_jit_build_prologue()
1349 emit(rv_addi(hi(r1), RV_REG_ZERO, 0), ctx); in bpf_jit_build_prologue()