Lines Matching refs:src_reg
285 u32 src_reg = bpf_to_ppc(insn[i].src_reg); in bpf_jit_build_body() local
286 u32 src_reg_h = src_reg - 1; in bpf_jit_build_body()
321 if (src_reg >= 3 && src_reg < 32) { in bpf_jit_build_body()
322 bpf_set_seen_register(ctx, src_reg); in bpf_jit_build_body()
331 EMIT(PPC_RAW_ADD(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
334 EMIT(PPC_RAW_ADDC(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
338 EMIT(PPC_RAW_SUB(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
341 EMIT(PPC_RAW_SUBFC(dst_reg, src_reg, dst_reg)); in bpf_jit_build_body()
374 EMIT(PPC_RAW_MULW(dst_reg_h, dst_reg_h, src_reg)); in bpf_jit_build_body()
375 EMIT(PPC_RAW_MULHWU(tmp_reg, dst_reg, src_reg)); in bpf_jit_build_body()
376 EMIT(PPC_RAW_MULW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
381 EMIT(PPC_RAW_MULW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
414 EMIT(PPC_RAW_DIVWU(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
417 EMIT(PPC_RAW_DIVWU(_R0, dst_reg, src_reg)); in bpf_jit_build_body()
418 EMIT(PPC_RAW_MULW(_R0, src_reg, _R0)); in bpf_jit_build_body()
495 EMIT(PPC_RAW_AND(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
499 EMIT(PPC_RAW_AND(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
519 EMIT(PPC_RAW_OR(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
523 EMIT(PPC_RAW_OR(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
537 if (dst_reg == src_reg) { in bpf_jit_build_body()
541 EMIT(PPC_RAW_XOR(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
546 if (dst_reg == src_reg) in bpf_jit_build_body()
549 EMIT(PPC_RAW_XOR(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
562 EMIT(PPC_RAW_SLW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
566 EMIT(PPC_RAW_SUBFIC(_R0, src_reg, 32)); in bpf_jit_build_body()
567 EMIT(PPC_RAW_SLW(dst_reg_h, dst_reg_h, src_reg)); in bpf_jit_build_body()
568 EMIT(PPC_RAW_ADDI(tmp_reg, src_reg, 32)); in bpf_jit_build_body()
572 EMIT(PPC_RAW_SLW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
598 EMIT(PPC_RAW_SRW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
602 EMIT(PPC_RAW_SUBFIC(_R0, src_reg, 32)); in bpf_jit_build_body()
603 EMIT(PPC_RAW_SRW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
604 EMIT(PPC_RAW_ADDI(tmp_reg, src_reg, 32)); in bpf_jit_build_body()
608 EMIT(PPC_RAW_SRW(dst_reg_h, dst_reg_h, src_reg)); in bpf_jit_build_body()
634 EMIT(PPC_RAW_SRAW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
638 EMIT(PPC_RAW_SUBFIC(_R0, src_reg, 32)); in bpf_jit_build_body()
639 EMIT(PPC_RAW_SRW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body()
641 EMIT(PPC_RAW_ADDI(tmp_reg, src_reg, 32)); in bpf_jit_build_body()
645 EMIT(PPC_RAW_SRAW(dst_reg_h, dst_reg_h, src_reg)); in bpf_jit_build_body()
676 if (dst_reg == src_reg) in bpf_jit_build_body()
678 EMIT(PPC_RAW_MR(dst_reg, src_reg)); in bpf_jit_build_body()
685 else if (dst_reg != src_reg) in bpf_jit_build_body()
686 EMIT(PPC_RAW_MR(dst_reg, src_reg)); in bpf_jit_build_body()
758 EMIT(PPC_RAW_STB(src_reg, dst_reg, off)); in bpf_jit_build_body()
765 EMIT(PPC_RAW_STH(src_reg, dst_reg, off)); in bpf_jit_build_body()
772 EMIT(PPC_RAW_STW(src_reg, dst_reg, off)); in bpf_jit_build_body()
780 EMIT(PPC_RAW_STW(src_reg, dst_reg, off + 4)); in bpf_jit_build_body()
794 ret_reg = src_reg; in bpf_jit_build_body()
812 EMIT(PPC_RAW_ADD(_R0, _R0, src_reg)); in bpf_jit_build_body()
816 EMIT(PPC_RAW_AND(_R0, _R0, src_reg)); in bpf_jit_build_body()
820 EMIT(PPC_RAW_OR(_R0, _R0, src_reg)); in bpf_jit_build_body()
824 EMIT(PPC_RAW_XOR(_R0, _R0, src_reg)); in bpf_jit_build_body()
839 save_reg = src_reg; in bpf_jit_build_body()
882 EMIT(PPC_RAW_CMPLW(src_reg, _R0)); in bpf_jit_build_body()
910 EMIT(PPC_RAW_LBZ(dst_reg, src_reg, off)); in bpf_jit_build_body()
913 EMIT(PPC_RAW_LHZ(dst_reg, src_reg, off)); in bpf_jit_build_body()
916 EMIT(PPC_RAW_LWZ(dst_reg, src_reg, off)); in bpf_jit_build_body()
919 EMIT(PPC_RAW_LWZ(dst_reg_h, src_reg, off)); in bpf_jit_build_body()
920 EMIT(PPC_RAW_LWZ(dst_reg, src_reg, off + 4)); in bpf_jit_build_body()
1087 EMIT(PPC_RAW_CMPLW(dst_reg, src_reg)); in bpf_jit_build_body()
1096 EMIT(PPC_RAW_CMPLW(dst_reg, src_reg)); in bpf_jit_build_body()
1105 EMIT(PPC_RAW_CMPLW(dst_reg, src_reg)); in bpf_jit_build_body()
1112 EMIT(PPC_RAW_CMPW(dst_reg, src_reg)); in bpf_jit_build_body()
1117 EMIT(PPC_RAW_AND_DOT(_R0, dst_reg, src_reg)); in bpf_jit_build_body()
1120 EMIT(PPC_RAW_AND_DOT(_R0, dst_reg, src_reg)); in bpf_jit_build_body()