Lines Matching full:emit
34 EMIT(PPC_INST_MFLR | __PPC_RT(R0)); in bpf_jit_build_prologue()
64 EMIT(PPC_RAW_SUB(r_HL, r_HL, r_scratch1)); in bpf_jit_build_prologue()
73 EMIT(PPC_RAW_LI(r_X, 0)); in bpf_jit_build_prologue()
78 EMIT(PPC_RAW_LI(r_A, 0)); in bpf_jit_build_prologue()
86 EMIT(PPC_RAW_ADDI(1, 1, BPF_PPC_STACKFRAME)); in bpf_jit_build_epilogue()
89 EMIT(PPC_RAW_MTLR(0)); in bpf_jit_build_epilogue()
103 EMIT(PPC_RAW_BLR()); in bpf_jit_build_epilogue()
137 EMIT(PPC_RAW_ADD(r_A, r_A, r_X)); in bpf_jit_build_body()
142 EMIT(PPC_RAW_ADDI(r_A, r_A, IMM_L(K))); in bpf_jit_build_body()
144 EMIT(PPC_RAW_ADDIS(r_A, r_A, IMM_HA(K))); in bpf_jit_build_body()
148 EMIT(PPC_RAW_SUB(r_A, r_A, r_X)); in bpf_jit_build_body()
153 EMIT(PPC_RAW_ADDI(r_A, r_A, IMM_L(-K))); in bpf_jit_build_body()
155 EMIT(PPC_RAW_ADDIS(r_A, r_A, IMM_HA(-K))); in bpf_jit_build_body()
159 EMIT(PPC_RAW_MULW(r_A, r_A, r_X)); in bpf_jit_build_body()
163 EMIT(PPC_RAW_MULI(r_A, r_A, K)); in bpf_jit_build_body()
166 EMIT(PPC_RAW_MULW(r_A, r_A, r_scratch1)); in bpf_jit_build_body()
172 EMIT(PPC_RAW_CMPWI(r_X, 0)); in bpf_jit_build_body()
177 EMIT(PPC_RAW_LI(r_ret, 0)); in bpf_jit_build_body()
181 EMIT(PPC_RAW_DIVWU(r_scratch1, r_A, r_X)); in bpf_jit_build_body()
182 EMIT(PPC_RAW_MULW(r_scratch1, r_X, r_scratch1)); in bpf_jit_build_body()
183 EMIT(PPC_RAW_SUB(r_A, r_A, r_scratch1)); in bpf_jit_build_body()
185 EMIT(PPC_RAW_DIVWU(r_A, r_A, r_X)); in bpf_jit_build_body()
190 EMIT(PPC_RAW_DIVWU(r_scratch1, r_A, r_scratch2)); in bpf_jit_build_body()
191 EMIT(PPC_RAW_MULW(r_scratch1, r_scratch2, r_scratch1)); in bpf_jit_build_body()
192 EMIT(PPC_RAW_SUB(r_A, r_A, r_scratch1)); in bpf_jit_build_body()
198 EMIT(PPC_RAW_DIVWU(r_A, r_A, r_scratch1)); in bpf_jit_build_body()
202 EMIT(PPC_RAW_AND(r_A, r_A, r_X)); in bpf_jit_build_body()
206 EMIT(PPC_RAW_ANDI(r_A, r_A, K)); in bpf_jit_build_body()
209 EMIT(PPC_RAW_AND(r_A, r_A, r_scratch1)); in bpf_jit_build_body()
214 EMIT(PPC_RAW_OR(r_A, r_A, r_X)); in bpf_jit_build_body()
218 EMIT(PPC_RAW_ORI(r_A, r_A, IMM_L(K))); in bpf_jit_build_body()
220 EMIT(PPC_RAW_ORIS(r_A, r_A, IMM_H(K))); in bpf_jit_build_body()
225 EMIT(PPC_RAW_XOR(r_A, r_A, r_X)); in bpf_jit_build_body()
229 EMIT(PPC_RAW_XORI(r_A, r_A, IMM_L(K))); in bpf_jit_build_body()
231 EMIT(PPC_RAW_XORIS(r_A, r_A, IMM_H(K))); in bpf_jit_build_body()
235 EMIT(PPC_RAW_SLW(r_A, r_A, r_X)); in bpf_jit_build_body()
241 EMIT(PPC_RAW_SLWI(r_A, r_A, K)); in bpf_jit_build_body()
245 EMIT(PPC_RAW_SRW(r_A, r_A, r_X)); in bpf_jit_build_body()
251 EMIT(PPC_RAW_SRWI(r_A, r_A, K)); in bpf_jit_build_body()
254 EMIT(PPC_RAW_NEG(r_A, r_A)); in bpf_jit_build_body()
280 EMIT(PPC_RAW_BLR()); in bpf_jit_build_body()
284 EMIT(PPC_RAW_MR(r_ret, r_A)); in bpf_jit_build_body()
289 EMIT(PPC_RAW_BLR()); in bpf_jit_build_body()
293 EMIT(PPC_RAW_MR(r_X, r_A)); in bpf_jit_build_body()
297 EMIT(PPC_RAW_MR(r_A, r_X)); in bpf_jit_build_body()
308 EMIT(PPC_RAW_MR(r_A, r_M + (K & 0xf))); in bpf_jit_build_body()
312 EMIT(PPC_RAW_MR(r_X, r_M + (K & 0xf))); in bpf_jit_build_body()
316 EMIT(PPC_RAW_MR(r_M + (K & 0xf), r_A)); in bpf_jit_build_body()
320 EMIT(PPC_RAW_MR(r_M + (K & 0xf), r_X)); in bpf_jit_build_body()
349 EMIT(PPC_RAW_CMPDI(r_scratch1, 0)); in bpf_jit_build_body()
355 EMIT(PPC_RAW_LI(r_ret, 0)); in bpf_jit_build_body()
386 EMIT(PPC_RAW_SRWI(r_A, r_A, PKT_VLAN_PRESENT_BIT)); in bpf_jit_build_body()
388 EMIT(PPC_RAW_ANDI(r_A, r_A, 1)); in bpf_jit_build_body()
398 EMIT(PPC_RAW_ANDI(r_A, r_A, PKT_TYPE_MAX)); in bpf_jit_build_body()
399 EMIT(PPC_RAW_SRWI(r_A, r_A, 5)); in bpf_jit_build_body()
417 EMIT(PPC_RAW_MTLR(r_scratch1)); in bpf_jit_build_body()
419 EMIT(PPC_RAW_BLRL()); in bpf_jit_build_body()
443 EMIT(PPC_RAW_MTLR(r_scratch1)); in bpf_jit_build_body()
444 EMIT(PPC_RAW_ADDI(r_addr, r_X, IMM_L(K))); in bpf_jit_build_body()
446 EMIT(PPC_RAW_ADDIS(r_addr, r_addr, IMM_HA(K))); in bpf_jit_build_body()
447 EMIT(PPC_RAW_BLRL()); in bpf_jit_build_body()
491 EMIT(PPC_RAW_CMPLW(r_A, r_X)); in bpf_jit_build_body()
495 EMIT(PPC_RAW_AND_DOT(r_scratch1, r_A, r_X)); in bpf_jit_build_body()
501 EMIT(PPC_RAW_CMPLWI(r_A, K)); in bpf_jit_build_body()
504 EMIT(PPC_RAW_CMPLW(r_A, r_scratch1)); in bpf_jit_build_body()
510 EMIT(PPC_RAW_ANDI(r_scratch1, r_A, K)); in bpf_jit_build_body()
513 EMIT(PPC_RAW_AND_DOT(r_scratch1, r_A, in bpf_jit_build_body()