Lines Matching refs:dst_reg

377 		u32 dst_reg = bpf_to_ppc(insn[i].dst_reg);
404 * is that those instructions will have src_reg/dst_reg set to
409 if (dst_reg >= BPF_PPC_NVR_MIN && dst_reg < 32)
410 bpf_set_seen_register(ctx, dst_reg);
420 EMIT(PPC_RAW_ADD(dst_reg, dst_reg, src_reg));
424 EMIT(PPC_RAW_SUB(dst_reg, dst_reg, src_reg));
431 EMIT(PPC_RAW_ADDI(dst_reg, dst_reg, IMM_L(imm)));
434 EMIT(PPC_RAW_ADD(dst_reg, dst_reg, tmp1_reg));
442 EMIT(PPC_RAW_ADDI(dst_reg, dst_reg, IMM_L(-imm)));
445 EMIT(PPC_RAW_SUB(dst_reg, dst_reg, tmp1_reg));
451 EMIT(PPC_RAW_MULW(dst_reg, dst_reg, src_reg));
453 EMIT(PPC_RAW_MULD(dst_reg, dst_reg, src_reg));
458 EMIT(PPC_RAW_MULI(dst_reg, dst_reg, IMM_L(imm)));
462 EMIT(PPC_RAW_MULW(dst_reg, dst_reg, tmp1_reg));
464 EMIT(PPC_RAW_MULD(dst_reg, dst_reg, tmp1_reg));
470 EMIT(PPC_RAW_DIVWU(tmp1_reg, dst_reg, src_reg));
472 EMIT(PPC_RAW_SUB(dst_reg, dst_reg, tmp1_reg));
474 EMIT(PPC_RAW_DIVWU(dst_reg, dst_reg, src_reg));
479 EMIT(PPC_RAW_DIVDU(tmp1_reg, dst_reg, src_reg));
481 EMIT(PPC_RAW_SUB(dst_reg, dst_reg, tmp1_reg));
483 EMIT(PPC_RAW_DIVDU(dst_reg, dst_reg, src_reg));
495 EMIT(PPC_RAW_LI(dst_reg, 0));
504 EMIT(PPC_RAW_DIVWU(tmp2_reg, dst_reg, tmp1_reg));
506 EMIT(PPC_RAW_SUB(dst_reg, dst_reg, tmp1_reg));
508 EMIT(PPC_RAW_DIVWU(dst_reg, dst_reg, tmp1_reg));
512 EMIT(PPC_RAW_DIVDU(tmp2_reg, dst_reg, tmp1_reg));
514 EMIT(PPC_RAW_SUB(dst_reg, dst_reg, tmp1_reg));
516 EMIT(PPC_RAW_DIVDU(dst_reg, dst_reg, tmp1_reg));
522 EMIT(PPC_RAW_NEG(dst_reg, dst_reg));
530 EMIT(PPC_RAW_AND(dst_reg, dst_reg, src_reg));
535 EMIT(PPC_RAW_ANDI(dst_reg, dst_reg, IMM_L(imm)));
539 EMIT(PPC_RAW_AND(dst_reg, dst_reg, tmp1_reg));
544 EMIT(PPC_RAW_OR(dst_reg, dst_reg, src_reg));
551 EMIT(PPC_RAW_OR(dst_reg, dst_reg, tmp1_reg));
554 EMIT(PPC_RAW_ORI(dst_reg, dst_reg, IMM_L(imm)));
556 EMIT(PPC_RAW_ORIS(dst_reg, dst_reg, IMM_H(imm)));
561 EMIT(PPC_RAW_XOR(dst_reg, dst_reg, src_reg));
568 EMIT(PPC_RAW_XOR(dst_reg, dst_reg, tmp1_reg));
571 EMIT(PPC_RAW_XORI(dst_reg, dst_reg, IMM_L(imm)));
573 EMIT(PPC_RAW_XORIS(dst_reg, dst_reg, IMM_H(imm)));
578 EMIT(PPC_RAW_SLW(dst_reg, dst_reg, src_reg));
584 EMIT(PPC_RAW_SLD(dst_reg, dst_reg, src_reg));
588 EMIT(PPC_RAW_SLWI(dst_reg, dst_reg, imm));
594 EMIT(PPC_RAW_SLDI(dst_reg, dst_reg, imm));
597 EMIT(PPC_RAW_SRW(dst_reg, dst_reg, src_reg));
602 EMIT(PPC_RAW_SRD(dst_reg, dst_reg, src_reg));
605 EMIT(PPC_RAW_SRWI(dst_reg, dst_reg, imm));
611 EMIT(PPC_RAW_SRDI(dst_reg, dst_reg, imm));
614 EMIT(PPC_RAW_SRAW(dst_reg, dst_reg, src_reg));
617 EMIT(PPC_RAW_SRAD(dst_reg, dst_reg, src_reg));
620 EMIT(PPC_RAW_SRAWI(dst_reg, dst_reg, imm));
624 EMIT(PPC_RAW_SRADI(dst_reg, dst_reg, imm));
634 EMIT(PPC_RAW_RLWINM(dst_reg, dst_reg, 0, 0, 31));
637 EMIT(PPC_RAW_MR(dst_reg, src_reg));
641 PPC_LI32(dst_reg, imm);
651 EMIT(PPC_RAW_RLWINM(dst_reg, dst_reg, 0, 0, 31));
669 EMIT(PPC_RAW_RLWINM(tmp1_reg, dst_reg, 8, 16, 23));
671 EMIT(PPC_RAW_RLWIMI(tmp1_reg, dst_reg, 24, 24, 31));
672 /* Move result back to dst_reg */
673 EMIT(PPC_RAW_MR(dst_reg, tmp1_reg));
681 EMIT(PPC_RAW_RLWINM(tmp1_reg, dst_reg, 8, 0, 31));
683 EMIT(PPC_RAW_RLWIMI(tmp1_reg, dst_reg, 24, 0, 7));
685 EMIT(PPC_RAW_RLWIMI(tmp1_reg, dst_reg, 24, 16, 23));
686 EMIT(PPC_RAW_MR(dst_reg, tmp1_reg));
690 EMIT(PPC_RAW_STD(dst_reg, _R1, bpf_jit_stack_local(ctx)));
693 EMIT(PPC_RAW_LDBRX(dst_reg, 0, tmp1_reg));
695 EMIT(PPC_RAW_LWBRX(dst_reg, 0, tmp1_reg));
697 EMIT(PPC_RAW_SLDI(dst_reg, dst_reg, 32));
702 EMIT(PPC_RAW_OR(dst_reg, dst_reg, tmp2_reg));
712 EMIT(PPC_RAW_RLDICL(dst_reg, dst_reg, 0, 48));
719 EMIT(PPC_RAW_RLDICL(dst_reg, dst_reg, 0, 32));
764 EMIT(PPC_RAW_STB(src_reg, dst_reg, off));
772 EMIT(PPC_RAW_STH(src_reg, dst_reg, off));
780 EMIT(PPC_RAW_STW(src_reg, dst_reg, off));
790 EMIT(PPC_RAW_STDX(src_reg, dst_reg, tmp2_reg));
792 EMIT(PPC_RAW_STD(src_reg, dst_reg, off));
809 EMIT(PPC_RAW_LDARX(tmp2_reg, tmp1_reg, dst_reg, 0));
811 EMIT(PPC_RAW_LWARX(tmp2_reg, tmp1_reg, dst_reg, 0));
861 EMIT(PPC_RAW_STDCX(save_reg, tmp1_reg, dst_reg));
863 EMIT(PPC_RAW_STWCX(save_reg, tmp1_reg, dst_reg));
898 * set dst_reg=0 and move on.
908 EMIT(PPC_RAW_LI(dst_reg, 0));
921 EMIT(PPC_RAW_LBZ(dst_reg, src_reg, off));
924 EMIT(PPC_RAW_LHZ(dst_reg, src_reg, off));
927 EMIT(PPC_RAW_LWZ(dst_reg, src_reg, off));
932 EMIT(PPC_RAW_LDX(dst_reg, src_reg, tmp1_reg));
934 EMIT(PPC_RAW_LD(dst_reg, src_reg, off));
944 ctx->idx - 1, 4, dst_reg);
958 PPC_LI64(dst_reg, imm64);
1089 EMIT(PPC_RAW_CMPLW(dst_reg, src_reg));
1091 EMIT(PPC_RAW_CMPLD(dst_reg, src_reg));
1103 EMIT(PPC_RAW_CMPW(dst_reg, src_reg));
1105 EMIT(PPC_RAW_CMPD(dst_reg, src_reg));
1110 EMIT(PPC_RAW_AND_DOT(tmp1_reg, dst_reg, src_reg));
1112 EMIT(PPC_RAW_AND(tmp1_reg, dst_reg, src_reg));
1137 EMIT(PPC_RAW_CMPLWI(dst_reg, imm));
1139 EMIT(PPC_RAW_CMPLDI(dst_reg, imm));
1145 EMIT(PPC_RAW_CMPLW(dst_reg, tmp1_reg));
1147 EMIT(PPC_RAW_CMPLD(dst_reg, tmp1_reg));
1168 EMIT(PPC_RAW_CMPWI(dst_reg, imm));
1170 EMIT(PPC_RAW_CMPDI(dst_reg, imm));
1174 EMIT(PPC_RAW_CMPW(dst_reg, tmp1_reg));
1176 EMIT(PPC_RAW_CMPD(dst_reg, tmp1_reg));
1185 EMIT(PPC_RAW_ANDI(tmp1_reg, dst_reg, imm));
1189 EMIT(PPC_RAW_AND_DOT(tmp1_reg, dst_reg,
1192 EMIT(PPC_RAW_AND(tmp1_reg, dst_reg, tmp1_reg));