Lines Matching refs:src_reg
297 u32 src_reg = bpf_to_ppc(insn[i].src_reg); in bpf_jit_build_body() local
298 u32 src_reg_h = src_reg - 1; in bpf_jit_build_body()
317 src2_reg = bpf_to_ppc(insn[i - 1].src_reg); in bpf_jit_build_body()
344 if (src_reg >= 3 && src_reg < 32) { in bpf_jit_build_body()
345 bpf_set_seen_register(ctx, src_reg); in bpf_jit_build_body()
354 EMIT(PPC_RAW_ADD(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
357 EMIT(PPC_RAW_ADDC(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
361 EMIT(PPC_RAW_SUB(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
364 EMIT(PPC_RAW_SUBFC(dst_reg, src_reg, src2_reg)); in bpf_jit_build_body()
403 EMIT(PPC_RAW_MULW(dst_reg_h, src2_reg_h, src_reg)); in bpf_jit_build_body()
404 EMIT(PPC_RAW_MULHWU(tmp_reg, src2_reg, src_reg)); in bpf_jit_build_body()
405 EMIT(PPC_RAW_MULW(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
410 EMIT(PPC_RAW_MULW(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
454 EMIT(PPC_RAW_DIVW(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
456 EMIT(PPC_RAW_DIVWU(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
460 EMIT(PPC_RAW_DIVW(_R0, src2_reg, src_reg)); in bpf_jit_build_body()
462 EMIT(PPC_RAW_DIVWU(_R0, src2_reg, src_reg)); in bpf_jit_build_body()
463 EMIT(PPC_RAW_MULW(_R0, src_reg, _R0)); in bpf_jit_build_body()
570 EMIT(PPC_RAW_AND(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
574 EMIT(PPC_RAW_AND(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
594 EMIT(PPC_RAW_OR(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
598 EMIT(PPC_RAW_OR(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
614 if (dst_reg == src_reg) { in bpf_jit_build_body()
618 EMIT(PPC_RAW_XOR(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
623 if (dst_reg == src_reg) in bpf_jit_build_body()
626 EMIT(PPC_RAW_XOR(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
641 EMIT(PPC_RAW_SLW(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
645 EMIT(PPC_RAW_SUBFIC(_R0, src_reg, 32)); in bpf_jit_build_body()
646 EMIT(PPC_RAW_SLW(dst_reg_h, src2_reg_h, src_reg)); in bpf_jit_build_body()
647 EMIT(PPC_RAW_ADDI(tmp_reg, src_reg, 32)); in bpf_jit_build_body()
651 EMIT(PPC_RAW_SLW(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
678 EMIT(PPC_RAW_SRW(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
682 EMIT(PPC_RAW_SUBFIC(_R0, src_reg, 32)); in bpf_jit_build_body()
683 EMIT(PPC_RAW_SRW(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
684 EMIT(PPC_RAW_ADDI(tmp_reg, src_reg, 32)); in bpf_jit_build_body()
688 EMIT(PPC_RAW_SRW(dst_reg_h, src2_reg_h, src_reg)); in bpf_jit_build_body()
716 EMIT(PPC_RAW_SRAW(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
720 EMIT(PPC_RAW_SUBFIC(_R0, src_reg, 32)); in bpf_jit_build_body()
721 EMIT(PPC_RAW_SRW(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
723 EMIT(PPC_RAW_ADDI(tmp_reg, src_reg, 32)); in bpf_jit_build_body()
727 EMIT(PPC_RAW_SRAW(dst_reg_h, src2_reg_h, src_reg)); in bpf_jit_build_body()
761 EMIT(PPC_RAW_EXTSB(dst_reg, src_reg)); in bpf_jit_build_body()
764 EMIT(PPC_RAW_EXTSH(dst_reg, src_reg)); in bpf_jit_build_body()
766 } else if (off == 32 && dst_reg == src_reg) { in bpf_jit_build_body()
767 EMIT(PPC_RAW_SRAWI(dst_reg_h, src_reg, 31)); in bpf_jit_build_body()
769 EMIT(PPC_RAW_MR(dst_reg, src_reg)); in bpf_jit_build_body()
770 EMIT(PPC_RAW_SRAWI(dst_reg_h, src_reg, 31)); in bpf_jit_build_body()
771 } else if (dst_reg != src_reg) { in bpf_jit_build_body()
772 EMIT(PPC_RAW_MR(dst_reg, src_reg)); in bpf_jit_build_body()
781 EMIT(PPC_RAW_EXTSB(dst_reg, src_reg)); in bpf_jit_build_body()
783 EMIT(PPC_RAW_EXTSH(dst_reg, src_reg)); in bpf_jit_build_body()
784 else if (dst_reg != src_reg) in bpf_jit_build_body()
785 EMIT(PPC_RAW_MR(dst_reg, src_reg)); in bpf_jit_build_body()
860 EMIT(PPC_RAW_STB(src_reg, dst_reg, off)); in bpf_jit_build_body()
867 EMIT(PPC_RAW_STH(src_reg, dst_reg, off)); in bpf_jit_build_body()
874 EMIT(PPC_RAW_STW(src_reg, dst_reg, off)); in bpf_jit_build_body()
882 EMIT(PPC_RAW_STW(src_reg, dst_reg, off + 4)); in bpf_jit_build_body()
896 ret_reg = src_reg; in bpf_jit_build_body()
923 EMIT(PPC_RAW_ADD(_R0, _R0, src_reg)); in bpf_jit_build_body()
927 EMIT(PPC_RAW_AND(_R0, _R0, src_reg)); in bpf_jit_build_body()
931 EMIT(PPC_RAW_OR(_R0, _R0, src_reg)); in bpf_jit_build_body()
935 EMIT(PPC_RAW_XOR(_R0, _R0, src_reg)); in bpf_jit_build_body()
950 save_reg = src_reg; in bpf_jit_build_body()
1002 EMIT(PPC_RAW_CMPLW(src_reg, _R0)); in bpf_jit_build_body()
1032 EMIT(PPC_RAW_LBZ(dst_reg, src_reg, off)); in bpf_jit_build_body()
1036 EMIT(PPC_RAW_LHA(dst_reg, src_reg, off)); in bpf_jit_build_body()
1039 EMIT(PPC_RAW_LWZ(dst_reg, src_reg, off)); in bpf_jit_build_body()
1048 EMIT(PPC_RAW_LBZ(dst_reg, src_reg, off)); in bpf_jit_build_body()
1051 EMIT(PPC_RAW_LHZ(dst_reg, src_reg, off)); in bpf_jit_build_body()
1054 EMIT(PPC_RAW_LWZ(dst_reg, src_reg, off)); in bpf_jit_build_body()
1057 EMIT(PPC_RAW_LWZ(dst_reg_h, src_reg, off)); in bpf_jit_build_body()
1058 EMIT(PPC_RAW_LWZ(dst_reg, src_reg, off + 4)); in bpf_jit_build_body()
1229 EMIT(PPC_RAW_CMPLW(dst_reg, src_reg)); in bpf_jit_build_body()
1238 EMIT(PPC_RAW_CMPLW(dst_reg, src_reg)); in bpf_jit_build_body()
1247 EMIT(PPC_RAW_CMPLW(dst_reg, src_reg)); in bpf_jit_build_body()
1254 EMIT(PPC_RAW_CMPW(dst_reg, src_reg)); in bpf_jit_build_body()
1259 EMIT(PPC_RAW_AND_DOT(_R0, dst_reg, src_reg)); in bpf_jit_build_body()
1262 EMIT(PPC_RAW_AND_DOT(_R0, dst_reg, src_reg)); in bpf_jit_build_body()