Lines Matching refs:src2_reg

304 		u32 src2_reg = dst_reg;  in bpf_jit_build_body()  local
322 src2_reg = bpf_to_ppc(insn[i - 1].src_reg); in bpf_jit_build_body()
323 src2_reg_h = src2_reg - 1; in bpf_jit_build_body()
359 EMIT(PPC_RAW_ADD(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
362 EMIT(PPC_RAW_ADDC(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
366 EMIT(PPC_RAW_SUB(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
369 EMIT(PPC_RAW_SUBFC(dst_reg, src_reg, src2_reg)); in bpf_jit_build_body()
377 EMIT(PPC_RAW_MR(dst_reg, src2_reg)); in bpf_jit_build_body()
379 EMIT(PPC_RAW_ADDIS(dst_reg, src2_reg, IMM_HA(imm))); in bpf_jit_build_body()
380 src2_reg = dst_reg; in bpf_jit_build_body()
383 EMIT(PPC_RAW_ADDI(dst_reg, src2_reg, IMM_L(imm))); in bpf_jit_build_body()
390 EMIT(PPC_RAW_MR(dst_reg, src2_reg)); in bpf_jit_build_body()
395 EMIT(PPC_RAW_ADDIC(dst_reg, src2_reg, imm)); in bpf_jit_build_body()
398 EMIT(PPC_RAW_ADDC(dst_reg, src2_reg, _R0)); in bpf_jit_build_body()
407 EMIT(PPC_RAW_MULW(_R0, src2_reg, src_reg_h)); in bpf_jit_build_body()
409 EMIT(PPC_RAW_MULHWU(tmp_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()
415 EMIT(PPC_RAW_MULW(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
419 EMIT(PPC_RAW_MR(dst_reg, src2_reg)); in bpf_jit_build_body()
421 EMIT(PPC_RAW_SUBFIC(dst_reg, src2_reg, 0)); in bpf_jit_build_body()
423 EMIT(PPC_RAW_SLWI(dst_reg, src2_reg, ilog2(imm))); in bpf_jit_build_body()
425 EMIT(PPC_RAW_MULI(dst_reg, src2_reg, imm)); in bpf_jit_build_body()
428 EMIT(PPC_RAW_MULW(dst_reg, src2_reg, _R0)); in bpf_jit_build_body()
436 EMIT(PPC_RAW_MR(dst_reg, src2_reg)); in bpf_jit_build_body()
439 EMIT(PPC_RAW_SUBFIC(dst_reg, src2_reg, 0)); in bpf_jit_build_body()
445 EMIT(PPC_RAW_SLWI(dst_reg, src2_reg, imm)); in bpf_jit_build_body()
451 EMIT(PPC_RAW_SUB(dst_reg_h, dst_reg_h, src2_reg)); in bpf_jit_build_body()
452 EMIT(PPC_RAW_MULHWU(_R0, src2_reg, tmp_reg)); in bpf_jit_build_body()
453 EMIT(PPC_RAW_MULW(dst_reg, src2_reg, tmp_reg)); in bpf_jit_build_body()
459 EMIT(PPC_RAW_DIVW(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
461 EMIT(PPC_RAW_DIVWU(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
465 EMIT(PPC_RAW_DIVW(_R0, src2_reg, src_reg)); in bpf_jit_build_body()
467 EMIT(PPC_RAW_DIVWU(_R0, src2_reg, src_reg)); in bpf_jit_build_body()
469 EMIT(PPC_RAW_SUB(dst_reg, src2_reg, _R0)); in bpf_jit_build_body()
479 EMIT(PPC_RAW_MR(dst_reg, src2_reg)); in bpf_jit_build_body()
482 EMIT(PPC_RAW_SRAWI(dst_reg, src2_reg, ilog2(imm))); in bpf_jit_build_body()
484 EMIT(PPC_RAW_SRWI(dst_reg, src2_reg, ilog2(imm))); in bpf_jit_build_body()
488 EMIT(PPC_RAW_DIVW(dst_reg, src2_reg, _R0)); in bpf_jit_build_body()
490 EMIT(PPC_RAW_DIVWU(dst_reg, src2_reg, _R0)); in bpf_jit_build_body()
501 EMIT(PPC_RAW_DIVW(_R0, src2_reg, tmp_reg)); in bpf_jit_build_body()
503 EMIT(PPC_RAW_DIVWU(_R0, src2_reg, tmp_reg)); in bpf_jit_build_body()
505 EMIT(PPC_RAW_SUB(dst_reg, src2_reg, _R0)); in bpf_jit_build_body()
509 EMIT(PPC_RAW_SRAWI(_R0, src2_reg, ilog2(imm))); in bpf_jit_build_body()
512 EMIT(PPC_RAW_SUB(dst_reg, src2_reg, _R0)); in bpf_jit_build_body()
515 EMIT(PPC_RAW_RLWINM(dst_reg, src2_reg, 0, 32 - imm, 31)); in bpf_jit_build_body()
530 EMIT(PPC_RAW_XOR(dst_reg, src2_reg, dst_reg_h)); in bpf_jit_build_body()
537 EMIT(PPC_RAW_RLWINM(dst_reg, src2_reg, 0, 32 - ilog2(imm), 31)); in bpf_jit_build_body()
548 EMIT(PPC_RAW_SUBFIC(dst_reg, src2_reg, 0)); in bpf_jit_build_body()
551 src2_reg = dst_reg; in bpf_jit_build_body()
554 EMIT(PPC_RAW_MR(dst_reg, src2_reg)); in bpf_jit_build_body()
558 EMIT(PPC_RAW_RLWINM(dst_reg, src2_reg, 32 - imm, imm, 31)); in bpf_jit_build_body()
564 EMIT(PPC_RAW_NEG(dst_reg, src2_reg)); in bpf_jit_build_body()
567 EMIT(PPC_RAW_SUBFIC(dst_reg, src2_reg, 0)); in bpf_jit_build_body()
575 EMIT(PPC_RAW_AND(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
579 EMIT(PPC_RAW_AND(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
587 EMIT(PPC_RAW_ANDI(dst_reg, src2_reg, IMM_L(imm))); in bpf_jit_build_body()
589 EMIT(PPC_RAW_ANDIS(dst_reg, src2_reg, IMM_H(imm))); in bpf_jit_build_body()
591 EMIT(PPC_RAW_RLWINM(dst_reg, src2_reg, 0, in bpf_jit_build_body()
595 EMIT(PPC_RAW_AND(dst_reg, src2_reg, _R0)); in bpf_jit_build_body()
599 EMIT(PPC_RAW_OR(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
603 EMIT(PPC_RAW_OR(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
612 EMIT(PPC_RAW_ORI(dst_reg, src2_reg, IMM_L(imm))); in bpf_jit_build_body()
613 src2_reg = dst_reg; in bpf_jit_build_body()
616 EMIT(PPC_RAW_ORIS(dst_reg, src2_reg, IMM_H(imm))); in bpf_jit_build_body()
623 EMIT(PPC_RAW_XOR(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
631 EMIT(PPC_RAW_XOR(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
639 EMIT(PPC_RAW_XORI(dst_reg, src2_reg, IMM_L(imm))); in bpf_jit_build_body()
640 src2_reg = dst_reg; in bpf_jit_build_body()
643 EMIT(PPC_RAW_XORIS(dst_reg, src2_reg, IMM_H(imm))); in bpf_jit_build_body()
646 EMIT(PPC_RAW_SLW(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
653 EMIT(PPC_RAW_SRW(_R0, src2_reg, _R0)); in bpf_jit_build_body()
654 EMIT(PPC_RAW_SLW(tmp_reg, src2_reg, tmp_reg)); in bpf_jit_build_body()
656 EMIT(PPC_RAW_SLW(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
661 EMIT(PPC_RAW_SLWI(dst_reg, src2_reg, imm)); in bpf_jit_build_body()
663 EMIT(PPC_RAW_MR(dst_reg, src2_reg)); in bpf_jit_build_body()
669 EMIT(PPC_RAW_MR(dst_reg, src2_reg)); in bpf_jit_build_body()
672 EMIT(PPC_RAW_RLWIMI(dst_reg_h, src2_reg, imm, 32 - imm, 31)); in bpf_jit_build_body()
673 EMIT(PPC_RAW_RLWINM(dst_reg, src2_reg, imm, 0, 31 - imm)); in bpf_jit_build_body()
675 EMIT(PPC_RAW_RLWINM(dst_reg_h, src2_reg, imm, 0, 31 - imm)); in bpf_jit_build_body()
683 EMIT(PPC_RAW_SRW(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
688 EMIT(PPC_RAW_SRW(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
698 EMIT(PPC_RAW_SRWI(dst_reg, src2_reg, imm)); in bpf_jit_build_body()
700 EMIT(PPC_RAW_MR(dst_reg, src2_reg)); in bpf_jit_build_body()
706 EMIT(PPC_RAW_MR(dst_reg, src2_reg)); in bpf_jit_build_body()
709 EMIT(PPC_RAW_RLWINM(dst_reg, src2_reg, 32 - imm, imm, 31)); in bpf_jit_build_body()
721 EMIT(PPC_RAW_SRAW(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
726 EMIT(PPC_RAW_SRW(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body()
738 EMIT(PPC_RAW_SRAWI(dst_reg, src2_reg, imm)); in bpf_jit_build_body()
740 EMIT(PPC_RAW_MR(dst_reg, src2_reg)); in bpf_jit_build_body()
746 EMIT(PPC_RAW_MR(dst_reg, src2_reg)); in bpf_jit_build_body()
749 EMIT(PPC_RAW_RLWINM(dst_reg, src2_reg, 32 - imm, imm, 31)); in bpf_jit_build_body()
808 EMIT(PPC_RAW_RLWIMI(dst_reg, src2_reg, 16, 0, 15)); in bpf_jit_build_body()
818 EMIT(PPC_RAW_RLWINM(_R0, src2_reg, 8, 0, 31)); in bpf_jit_build_body()
820 EMIT(PPC_RAW_RLWIMI(_R0, src2_reg, 24, 0, 7)); in bpf_jit_build_body()
822 EMIT(PPC_RAW_RLWIMI(_R0, src2_reg, 24, 16, 23)); in bpf_jit_build_body()
827 EMIT(PPC_RAW_RLWINM(tmp_reg, src2_reg, 8, 0, 31)); in bpf_jit_build_body()
830 EMIT(PPC_RAW_RLWIMI(tmp_reg, src2_reg, 24, 0, 7)); in bpf_jit_build_body()
833 EMIT(PPC_RAW_RLWIMI(tmp_reg, src2_reg, 24, 16, 23)); in bpf_jit_build_body()
846 EMIT(PPC_RAW_RLWINM(dst_reg, src2_reg, 0, 16, 31)); in bpf_jit_build_body()