Lines Matching refs:EMIT

131 		EMIT(PPC_RAW_LD(_R2, _R13, offsetof(struct paca_struct, kernel_toc)));
140 EMIT(PPC_RAW_LI(bpf_to_ppc(TMP_REG_1), 0));
142 EMIT(PPC_RAW_STD(bpf_to_ppc(TMP_REG_1), _R1, -(BPF_PPC_STACK_SAVE + 8)));
144 EMIT(PPC_RAW_NOP());
145 EMIT(PPC_RAW_NOP());
154 EMIT(PPC_RAW_MFLR(_R0));
155 EMIT(PPC_RAW_STD(_R0, _R1, PPC_LR_STKOFF));
158 EMIT(PPC_RAW_STDU(_R1, _R1, -(BPF_PPC_STACKFRAME + ctx->stack_size)));
168 EMIT(PPC_RAW_STD(bpf_to_ppc(i), _R1, bpf_jit_stack_offsetof(ctx, bpf_to_ppc(i))));
172 EMIT(PPC_RAW_ADDI(bpf_to_ppc(BPF_REG_FP), _R1,
183 EMIT(PPC_RAW_LD(bpf_to_ppc(i), _R1, bpf_jit_stack_offsetof(ctx, bpf_to_ppc(i))));
187 EMIT(PPC_RAW_ADDI(_R1, _R1, BPF_PPC_STACKFRAME + ctx->stack_size));
189 EMIT(PPC_RAW_LD(_R0, _R1, PPC_LR_STKOFF));
190 EMIT(PPC_RAW_MTLR(_R0));
200 EMIT(PPC_RAW_MR(_R3, bpf_to_ppc(BPF_REG_0)));
202 EMIT(PPC_RAW_BLR());
222 EMIT(PPC_PREFIX_MLS | __PPC_PRFX_R(1) | IMM_H18(reladdr));
223 EMIT(PPC_INST_PADDI | ___PPC_RT(_R12) | IMM_L(reladdr));
224 EMIT(PPC_RAW_MTCTR(_R12));
225 EMIT(PPC_RAW_BCTR());
234 EMIT(PPC_RAW_ADDIS(_R12, _R2, PPC_HA(reladdr)));
235 EMIT(PPC_RAW_ADDI(_R12, _R12, PPC_LO(reladdr)));
236 EMIT(PPC_RAW_MTCTR(_R12));
237 EMIT(PPC_RAW_BCTRL());
268 EMIT(PPC_RAW_NOP());
270 EMIT(PPC_RAW_MTCTR(_R12));
271 EMIT(PPC_RAW_BCTRL());
295 EMIT(PPC_RAW_LWZ(bpf_to_ppc(TMP_REG_1), b2p_bpf_array, offsetof(struct bpf_array, map.max_entries)));
296 EMIT(PPC_RAW_RLWINM(b2p_index, b2p_index, 0, 0, 31));
297 EMIT(PPC_RAW_CMPLW(b2p_index, bpf_to_ppc(TMP_REG_1)));
304 EMIT(PPC_RAW_LD(bpf_to_ppc(TMP_REG_1), _R1, bpf_jit_stack_tailcallcnt(ctx)));
305 EMIT(PPC_RAW_CMPLWI(bpf_to_ppc(TMP_REG_1), MAX_TAIL_CALL_CNT));
311 EMIT(PPC_RAW_ADDI(bpf_to_ppc(TMP_REG_1), bpf_to_ppc(TMP_REG_1), 1));
312 EMIT(PPC_RAW_STD(bpf_to_ppc(TMP_REG_1), _R1, bpf_jit_stack_tailcallcnt(ctx)));
315 EMIT(PPC_RAW_MULI(bpf_to_ppc(TMP_REG_1), b2p_index, 8));
316 EMIT(PPC_RAW_ADD(bpf_to_ppc(TMP_REG_1), bpf_to_ppc(TMP_REG_1), b2p_bpf_array));
317 EMIT(PPC_RAW_LD(bpf_to_ppc(TMP_REG_1), bpf_to_ppc(TMP_REG_1), offsetof(struct bpf_array, ptrs)));
323 EMIT(PPC_RAW_CMPLDI(bpf_to_ppc(TMP_REG_1), 0));
327 EMIT(PPC_RAW_LD(bpf_to_ppc(TMP_REG_1), bpf_to_ppc(TMP_REG_1), offsetof(struct bpf_prog, bpf_func)));
328 EMIT(PPC_RAW_ADDI(bpf_to_ppc(TMP_REG_1), bpf_to_ppc(TMP_REG_1),
330 EMIT(PPC_RAW_MTCTR(bpf_to_ppc(TMP_REG_1)));
335 EMIT(PPC_RAW_BCTR());
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));
471 EMIT(PPC_RAW_MULW(tmp1_reg, src_reg, tmp1_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));
480 EMIT(PPC_RAW_MULD(tmp1_reg, src_reg, tmp1_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));
505 EMIT(PPC_RAW_MULW(tmp1_reg, tmp1_reg, tmp2_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));
513 EMIT(PPC_RAW_MULD(tmp1_reg, tmp1_reg, tmp2_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));
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));
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)));
691 EMIT(PPC_RAW_ADDI(tmp1_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));
698 EMIT(PPC_RAW_LI(tmp2_reg, 4));
699 EMIT(PPC_RAW_LWBRX(tmp2_reg, tmp2_reg, tmp1_reg));
701 EMIT(PPC_RAW_SLDI(tmp2_reg, tmp2_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));
737 EMIT(PPC_RAW_EIEIO() | 0x02000000);
740 EMIT(PPC_RAW_SYNC());
741 EMIT(PPC_RAW_LD(tmp1_reg, _R13, 0));
742 EMIT(PPC_RAW_ORI(_R31, _R31, 0));
747 EMIT(PPC_RAW_MTCTR(_R12));
748 EMIT(PPC_RAW_BCTRL());
761 EMIT(PPC_RAW_LI(tmp1_reg, imm));
764 EMIT(PPC_RAW_STB(src_reg, dst_reg, off));
769 EMIT(PPC_RAW_LI(tmp1_reg, imm));
772 EMIT(PPC_RAW_STH(src_reg, dst_reg, off));
780 EMIT(PPC_RAW_STW(src_reg, dst_reg, off));
789 EMIT(PPC_RAW_LI(tmp2_reg, off));
790 EMIT(PPC_RAW_STDX(src_reg, dst_reg, tmp2_reg));
792 EMIT(PPC_RAW_STD(src_reg, dst_reg, off));
805 EMIT(PPC_RAW_LI(tmp1_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));
815 EMIT(PPC_RAW_MR(_R0, tmp2_reg));
820 EMIT(PPC_RAW_ADD(tmp2_reg, tmp2_reg, src_reg));
824 EMIT(PPC_RAW_AND(tmp2_reg, tmp2_reg, src_reg));
828 EMIT(PPC_RAW_OR(tmp2_reg, tmp2_reg, src_reg));
832 EMIT(PPC_RAW_XOR(tmp2_reg, tmp2_reg, src_reg));
843 EMIT(PPC_RAW_CMPD(bpf_to_ppc(BPF_REG_0), tmp2_reg));
845 EMIT(PPC_RAW_CMPW(bpf_to_ppc(BPF_REG_0), tmp2_reg));
861 EMIT(PPC_RAW_STDCX(save_reg, tmp1_reg, dst_reg));
863 EMIT(PPC_RAW_STWCX(save_reg, tmp1_reg, dst_reg));
868 EMIT(PPC_RAW_MR(ret_reg, _R0));
901 EMIT(PPC_RAW_ADDI(tmp1_reg, src_reg, off));
906 EMIT(PPC_RAW_CMPLD(tmp1_reg, tmp2_reg));
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));
931 EMIT(PPC_RAW_LI(tmp1_reg, off));
932 EMIT(PPC_RAW_LDX(dst_reg, src_reg, tmp1_reg));
934 EMIT(PPC_RAW_LD(dst_reg, src_reg, off));
962 EMIT(PPC_RAW_NOP());
1004 EMIT(PPC_RAW_MR(bpf_to_ppc(BPF_REG_0), _R3));
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));
1113 EMIT(PPC_RAW_RLWINM_DOT(tmp1_reg, tmp1_reg, 0, 0, 31));
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));
1193 EMIT(PPC_RAW_RLWINM_DOT(tmp1_reg, tmp1_reg,