Lines Matching full:s8
71 static const s8 bpf2rv32[][2] = {
101 static s8 hi(const s8 *r) in hi()
106 static s8 lo(const s8 *r) in lo()
111 static void emit_imm(const s8 rd, s32 imm, struct rv_jit_context *ctx) in emit_imm()
124 static void emit_imm32(const s8 *rd, s32 imm, struct rv_jit_context *ctx) in emit_imm32()
136 static void emit_imm64(const s8 *rd, s32 imm_hi, s32 imm_lo, in emit_imm64()
146 const s8 *r0 = bpf2rv32[BPF_REG_0]; in __build_epilogue()
180 static bool is_stacked(s8 reg) in is_stacked()
185 static const s8 *bpf_get_reg64(const s8 *reg, const s8 *tmp, in bpf_get_reg64()
196 static void bpf_put_reg64(const s8 *reg, const s8 *src, in bpf_put_reg64()
205 static const s8 *bpf_get_reg32(const s8 *reg, const s8 *tmp, in bpf_get_reg32()
215 static void bpf_put_reg32(const s8 *reg, const s8 *src, in bpf_put_reg32()
243 static void emit_alu_i64(const s8 *dst, s32 imm, in emit_alu_i64()
246 const s8 *tmp1 = bpf2rv32[TMP_REG_1]; in emit_alu_i64()
247 const s8 *rd = bpf_get_reg64(dst, tmp1, ctx); in emit_alu_i64()
327 static void emit_alu_i32(const s8 *dst, s32 imm, in emit_alu_i32()
330 const s8 *tmp1 = bpf2rv32[TMP_REG_1]; in emit_alu_i32()
331 const s8 *rd = bpf_get_reg32(dst, tmp1, ctx); in emit_alu_i32()
406 static void emit_alu_r64(const s8 *dst, const s8 *src, in emit_alu_r64()
409 const s8 *tmp1 = bpf2rv32[TMP_REG_1]; in emit_alu_r64()
410 const s8 *tmp2 = bpf2rv32[TMP_REG_2]; in emit_alu_r64()
411 const s8 *rd = bpf_get_reg64(dst, tmp1, ctx); in emit_alu_r64()
412 const s8 *rs = bpf_get_reg64(src, tmp2, ctx); in emit_alu_r64()
511 static void emit_alu_r32(const s8 *dst, const s8 *src, in emit_alu_r32()
514 const s8 *tmp1 = bpf2rv32[TMP_REG_1]; in emit_alu_r32()
515 const s8 *tmp2 = bpf2rv32[TMP_REG_2]; in emit_alu_r32()
516 const s8 *rd = bpf_get_reg32(dst, tmp1, ctx); in emit_alu_r32()
517 const s8 *rs = bpf_get_reg32(src, tmp2, ctx); in emit_alu_r32()
564 static int emit_branch_r64(const s8 *src1, const s8 *src2, s32 rvoff, in emit_branch_r64()
568 const s8 *tmp1 = bpf2rv32[TMP_REG_1]; in emit_branch_r64()
569 const s8 *tmp2 = bpf2rv32[TMP_REG_2]; in emit_branch_r64()
571 const s8 *rs1 = bpf_get_reg64(src1, tmp1, ctx); in emit_branch_r64()
572 const s8 *rs2 = bpf_get_reg64(src2, tmp2, ctx); in emit_branch_r64()
722 static int emit_branch_r32(const s8 *src1, const s8 *src2, s32 rvoff, in emit_branch_r32()
726 const s8 *tmp1 = bpf2rv32[TMP_REG_1]; in emit_branch_r32()
727 const s8 *tmp2 = bpf2rv32[TMP_REG_2]; in emit_branch_r32()
729 const s8 *rs1 = bpf_get_reg32(src1, tmp1, ctx); in emit_branch_r32()
730 const s8 *rs2 = bpf_get_reg32(src2, tmp2, ctx); in emit_branch_r32()
744 const s8 *r0 = bpf2rv32[BPF_REG_0]; in emit_call()
745 const s8 *r5 = bpf2rv32[BPF_REG_5]; in emit_call()
782 const s8 *arr_reg = bpf2rv32[BPF_REG_2]; in emit_bpf_tail_call()
783 const s8 *idx_reg = bpf2rv32[BPF_REG_3]; in emit_bpf_tail_call()
838 static int emit_load_r64(const s8 *dst, const s8 *src, s16 off, in emit_load_r64()
841 const s8 *tmp1 = bpf2rv32[TMP_REG_1]; in emit_load_r64()
842 const s8 *tmp2 = bpf2rv32[TMP_REG_2]; in emit_load_r64()
843 const s8 *rd = bpf_get_reg64(dst, tmp1, ctx); in emit_load_r64()
844 const s8 *rs = bpf_get_reg64(src, tmp2, ctx); in emit_load_r64()
875 static int emit_store_r64(const s8 *dst, const s8 *src, s16 off, in emit_store_r64()
879 const s8 *tmp1 = bpf2rv32[TMP_REG_1]; in emit_store_r64()
880 const s8 *tmp2 = bpf2rv32[TMP_REG_2]; in emit_store_r64()
881 const s8 *rd = bpf_get_reg64(dst, tmp1, ctx); in emit_store_r64()
882 const s8 *rs = bpf_get_reg64(src, tmp2, ctx); in emit_store_r64()
917 static void emit_rev16(const s8 rd, struct rv_jit_context *ctx) in emit_rev16()
926 static void emit_rev32(const s8 rd, struct rv_jit_context *ctx) in emit_rev32()
946 static void emit_zext64(const s8 *dst, struct rv_jit_context *ctx) in emit_zext64()
948 const s8 *rd; in emit_zext64()
949 const s8 *tmp1 = bpf2rv32[TMP_REG_1]; in emit_zext64()
966 const s8 *dst = bpf2rv32[insn->dst_reg]; in bpf_jit_emit_insn()
967 const s8 *src = bpf2rv32[insn->src_reg]; in bpf_jit_emit_insn()
968 const s8 *tmp1 = bpf2rv32[TMP_REG_1]; in bpf_jit_emit_insn()
969 const s8 *tmp2 = bpf2rv32[TMP_REG_2]; in bpf_jit_emit_insn()
1076 const s8 *rd = bpf_get_reg64(dst, tmp1, ctx); in bpf_jit_emit_insn()
1101 const s8 *rd = bpf_get_reg64(dst, tmp1, ctx); in bpf_jit_emit_insn()
1239 const s8 *rd = bpf_get_reg64(dst, tmp1, ctx); in bpf_jit_emit_insn()
1292 const s8 *fp = bpf2rv32[BPF_REG_FP]; in bpf_jit_build_prologue()
1293 const s8 *r1 = bpf2rv32[BPF_REG_1]; in bpf_jit_build_prologue()