Lines Matching refs:src_reg
284 u32 src_reg = bpf_to_ppc(ctx, insn[i].src_reg); in bpf_jit_build_body() local
285 u32 src_reg_h = src_reg - 1; in bpf_jit_build_body()
315 if (src_reg >= 3 && src_reg < 32) { in bpf_jit_build_body()
316 bpf_set_seen_register(ctx, src_reg); in bpf_jit_build_body()
325 EMIT(PPC_RAW_ADD(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
328 EMIT(PPC_RAW_ADDC(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
332 EMIT(PPC_RAW_SUB(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
335 EMIT(PPC_RAW_SUBFC(dst_reg, src_reg, dst_reg)); in bpf_jit_build_body()
368 EMIT(PPC_RAW_MULW(dst_reg_h, dst_reg_h, src_reg)); in bpf_jit_build_body()
369 EMIT(PPC_RAW_MULHWU(tmp_reg, dst_reg, src_reg)); in bpf_jit_build_body()
370 EMIT(PPC_RAW_MULW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
375 EMIT(PPC_RAW_MULW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
408 EMIT(PPC_RAW_DIVWU(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
411 EMIT(PPC_RAW_DIVWU(_R0, dst_reg, src_reg)); in bpf_jit_build_body()
412 EMIT(PPC_RAW_MULW(_R0, src_reg, _R0)); in bpf_jit_build_body()
489 EMIT(PPC_RAW_AND(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
493 EMIT(PPC_RAW_AND(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
513 EMIT(PPC_RAW_OR(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
517 EMIT(PPC_RAW_OR(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
531 if (dst_reg == src_reg) { in bpf_jit_build_body()
535 EMIT(PPC_RAW_XOR(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
540 if (dst_reg == src_reg) in bpf_jit_build_body()
543 EMIT(PPC_RAW_XOR(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
556 EMIT(PPC_RAW_SLW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
560 EMIT(PPC_RAW_SUBFIC(_R0, src_reg, 32)); in bpf_jit_build_body()
561 EMIT(PPC_RAW_SLW(dst_reg_h, dst_reg_h, src_reg)); in bpf_jit_build_body()
562 EMIT(PPC_RAW_ADDI(tmp_reg, src_reg, 32)); in bpf_jit_build_body()
566 EMIT(PPC_RAW_SLW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
592 EMIT(PPC_RAW_SRW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
596 EMIT(PPC_RAW_SUBFIC(_R0, src_reg, 32)); in bpf_jit_build_body()
597 EMIT(PPC_RAW_SRW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
598 EMIT(PPC_RAW_ADDI(tmp_reg, src_reg, 32)); in bpf_jit_build_body()
602 EMIT(PPC_RAW_SRW(dst_reg_h, dst_reg_h, src_reg)); in bpf_jit_build_body()
628 EMIT(PPC_RAW_SRAW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
632 EMIT(PPC_RAW_SUBFIC(_R0, src_reg, 32)); in bpf_jit_build_body()
633 EMIT(PPC_RAW_SRW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
635 EMIT(PPC_RAW_ADDI(tmp_reg, src_reg, 32)); in bpf_jit_build_body()
639 EMIT(PPC_RAW_SRAW(dst_reg_h, dst_reg_h, src_reg)); in bpf_jit_build_body()
670 if (dst_reg == src_reg) in bpf_jit_build_body()
672 EMIT(PPC_RAW_MR(dst_reg, src_reg)); in bpf_jit_build_body()
679 else if (dst_reg != src_reg) in bpf_jit_build_body()
680 EMIT(PPC_RAW_MR(dst_reg, src_reg)); in bpf_jit_build_body()
752 EMIT(PPC_RAW_STB(src_reg, dst_reg, off)); in bpf_jit_build_body()
759 EMIT(PPC_RAW_STH(src_reg, dst_reg, off)); in bpf_jit_build_body()
766 EMIT(PPC_RAW_STW(src_reg, dst_reg, off)); in bpf_jit_build_body()
774 EMIT(PPC_RAW_STW(src_reg, dst_reg, off + 4)); in bpf_jit_build_body()
801 EMIT(PPC_RAW_ADD(_R0, _R0, src_reg)); in bpf_jit_build_body()
815 EMIT(PPC_RAW_LBZ(dst_reg, src_reg, off)); in bpf_jit_build_body()
820 EMIT(PPC_RAW_LHZ(dst_reg, src_reg, off)); in bpf_jit_build_body()
825 EMIT(PPC_RAW_LWZ(dst_reg, src_reg, off)); in bpf_jit_build_body()
830 EMIT(PPC_RAW_LWZ(dst_reg_h, src_reg, off)); in bpf_jit_build_body()
831 EMIT(PPC_RAW_LWZ(dst_reg, src_reg, off + 4)); in bpf_jit_build_body()
958 EMIT(PPC_RAW_CMPLW(dst_reg, src_reg)); in bpf_jit_build_body()
967 EMIT(PPC_RAW_CMPLW(dst_reg, src_reg)); in bpf_jit_build_body()
976 EMIT(PPC_RAW_CMPLW(dst_reg, src_reg)); in bpf_jit_build_body()
983 EMIT(PPC_RAW_CMPW(dst_reg, src_reg)); in bpf_jit_build_body()
988 EMIT(PPC_RAW_AND_DOT(_R0, dst_reg, src_reg)); in bpf_jit_build_body()
991 EMIT(PPC_RAW_AND_DOT(_R0, dst_reg, src_reg)); in bpf_jit_build_body()