Lines Matching refs:src_reg
421 u32 src_reg = bpf_to_ppc(insn[i].src_reg); in bpf_jit_build_body() local
454 if (src_reg >= BPF_PPC_NVR_MIN && src_reg < 32) in bpf_jit_build_body()
455 bpf_set_seen_register(ctx, src_reg); in bpf_jit_build_body()
463 EMIT(PPC_RAW_ADD(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
467 EMIT(PPC_RAW_SUB(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
494 EMIT(PPC_RAW_MULW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
496 EMIT(PPC_RAW_MULD(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
514 EMIT(PPC_RAW_DIVW(tmp1_reg, dst_reg, src_reg)); in bpf_jit_build_body()
516 EMIT(PPC_RAW_DIVWU(tmp1_reg, dst_reg, src_reg)); in bpf_jit_build_body()
518 EMIT(PPC_RAW_MULW(tmp1_reg, src_reg, tmp1_reg)); in bpf_jit_build_body()
522 EMIT(PPC_RAW_DIVW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
524 EMIT(PPC_RAW_DIVWU(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
530 EMIT(PPC_RAW_DIVD(tmp1_reg, dst_reg, src_reg)); in bpf_jit_build_body()
532 EMIT(PPC_RAW_DIVDU(tmp1_reg, dst_reg, src_reg)); in bpf_jit_build_body()
533 EMIT(PPC_RAW_MULD(tmp1_reg, src_reg, tmp1_reg)); in bpf_jit_build_body()
537 EMIT(PPC_RAW_DIVD(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
539 EMIT(PPC_RAW_DIVDU(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
598 EMIT(PPC_RAW_AND(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
612 EMIT(PPC_RAW_OR(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
629 EMIT(PPC_RAW_XOR(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
646 EMIT(PPC_RAW_SLW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
652 EMIT(PPC_RAW_SLD(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
665 EMIT(PPC_RAW_SRW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
670 EMIT(PPC_RAW_SRD(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
682 EMIT(PPC_RAW_SRAW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
685 EMIT(PPC_RAW_SRAD(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
705 EMIT(PPC_RAW_EXTSB(dst_reg, src_reg)); in bpf_jit_build_body()
707 EMIT(PPC_RAW_EXTSH(dst_reg, src_reg)); in bpf_jit_build_body()
709 EMIT(PPC_RAW_EXTSW(dst_reg, src_reg)); in bpf_jit_build_body()
710 } else if (dst_reg != src_reg) in bpf_jit_build_body()
711 EMIT(PPC_RAW_MR(dst_reg, src_reg)); in bpf_jit_build_body()
837 src_reg = tmp1_reg; in bpf_jit_build_body()
839 EMIT(PPC_RAW_STB(src_reg, dst_reg, off)); in bpf_jit_build_body()
845 src_reg = tmp1_reg; in bpf_jit_build_body()
847 EMIT(PPC_RAW_STH(src_reg, dst_reg, off)); in bpf_jit_build_body()
853 src_reg = tmp1_reg; in bpf_jit_build_body()
855 EMIT(PPC_RAW_STW(src_reg, dst_reg, off)); in bpf_jit_build_body()
861 src_reg = tmp1_reg; in bpf_jit_build_body()
865 EMIT(PPC_RAW_STDX(src_reg, dst_reg, tmp2_reg)); in bpf_jit_build_body()
867 EMIT(PPC_RAW_STD(src_reg, dst_reg, off)); in bpf_jit_build_body()
877 ret_reg = src_reg; in bpf_jit_build_body()
904 EMIT(PPC_RAW_ADD(tmp2_reg, tmp2_reg, src_reg)); in bpf_jit_build_body()
908 EMIT(PPC_RAW_AND(tmp2_reg, tmp2_reg, src_reg)); in bpf_jit_build_body()
912 EMIT(PPC_RAW_OR(tmp2_reg, tmp2_reg, src_reg)); in bpf_jit_build_body()
916 EMIT(PPC_RAW_XOR(tmp2_reg, tmp2_reg, src_reg)); in bpf_jit_build_body()
934 save_reg = src_reg; in bpf_jit_build_body()
994 EMIT(PPC_RAW_ADDI(tmp1_reg, src_reg, off)); in bpf_jit_build_body()
1017 EMIT(PPC_RAW_LBZ(dst_reg, src_reg, off)); in bpf_jit_build_body()
1021 EMIT(PPC_RAW_LHA(dst_reg, src_reg, off)); in bpf_jit_build_body()
1024 EMIT(PPC_RAW_LWA(dst_reg, src_reg, off)); in bpf_jit_build_body()
1030 EMIT(PPC_RAW_LBZ(dst_reg, src_reg, off)); in bpf_jit_build_body()
1033 EMIT(PPC_RAW_LHZ(dst_reg, src_reg, off)); in bpf_jit_build_body()
1036 EMIT(PPC_RAW_LWZ(dst_reg, src_reg, off)); in bpf_jit_build_body()
1041 EMIT(PPC_RAW_LDX(dst_reg, src_reg, tmp1_reg)); in bpf_jit_build_body()
1043 EMIT(PPC_RAW_LD(dst_reg, src_reg, off)); in bpf_jit_build_body()
1202 EMIT(PPC_RAW_CMPLW(dst_reg, src_reg)); in bpf_jit_build_body()
1204 EMIT(PPC_RAW_CMPLD(dst_reg, src_reg)); in bpf_jit_build_body()
1216 EMIT(PPC_RAW_CMPW(dst_reg, src_reg)); in bpf_jit_build_body()
1218 EMIT(PPC_RAW_CMPD(dst_reg, src_reg)); in bpf_jit_build_body()
1223 EMIT(PPC_RAW_AND_DOT(tmp1_reg, dst_reg, src_reg)); in bpf_jit_build_body()
1225 EMIT(PPC_RAW_AND(tmp1_reg, dst_reg, src_reg)); in bpf_jit_build_body()