Searched refs:emit_insn (Results 1 – 2 of 2) sorted by relevance
/linux-6.1.9/arch/loongarch/net/ |
D | bpf_jit.c | 106 emit_insn(ctx, addid, REG_TCC, LOONGARCH_GPR_ZERO, MAX_TAIL_CALL_CNT); in build_prologue() 108 emit_insn(ctx, addid, LOONGARCH_GPR_SP, LOONGARCH_GPR_SP, -stack_adjust); in build_prologue() 111 emit_insn(ctx, std, LOONGARCH_GPR_RA, LOONGARCH_GPR_SP, store_offset); in build_prologue() 114 emit_insn(ctx, std, LOONGARCH_GPR_FP, LOONGARCH_GPR_SP, store_offset); in build_prologue() 117 emit_insn(ctx, std, LOONGARCH_GPR_S0, LOONGARCH_GPR_SP, store_offset); in build_prologue() 120 emit_insn(ctx, std, LOONGARCH_GPR_S1, LOONGARCH_GPR_SP, store_offset); in build_prologue() 123 emit_insn(ctx, std, LOONGARCH_GPR_S2, LOONGARCH_GPR_SP, store_offset); in build_prologue() 126 emit_insn(ctx, std, LOONGARCH_GPR_S3, LOONGARCH_GPR_SP, store_offset); in build_prologue() 129 emit_insn(ctx, std, LOONGARCH_GPR_S4, LOONGARCH_GPR_SP, store_offset); in build_prologue() 132 emit_insn(ctx, std, LOONGARCH_GPR_S5, LOONGARCH_GPR_SP, store_offset); in build_prologue() [all …]
|
D | bpf_jit.h | 28 #define emit_insn(ctx, func, ...) \ macro 71 emit_insn(ctx, lu32id, reg, 0); in emit_zext_32() 80 emit_insn(ctx, addiw, reg, reg, 0); in emit_sext_32() 89 emit_insn(ctx, or, rd, LOONGARCH_GPR_ZERO, LOONGARCH_GPR_ZERO); in move_imm() 95 emit_insn(ctx, addiw, rd, LOONGARCH_GPR_ZERO, imm); in move_imm() 101 emit_insn(ctx, ori, rd, LOONGARCH_GPR_ZERO, imm); in move_imm() 109 emit_insn(ctx, lu52id, rd, LOONGARCH_GPR_ZERO, imm_63_52); in move_imm() 115 emit_insn(ctx, lu12iw, rd, imm_31_12); in move_imm() 120 emit_insn(ctx, ori, rd, rd, imm_11_0); in move_imm() 133 emit_insn(ctx, lu32id, rd, imm_51_32); in move_imm() [all …]
|