• Home
  • Raw
  • Download

Lines Matching refs:imm

308 		s32 imm = insn[i].imm;  in bpf_jit_build_body()  local
354 imm = -imm; in bpf_jit_build_body()
355 if (imm) { in bpf_jit_build_body()
356 if (imm >= -32768 && imm < 32768) in bpf_jit_build_body()
357 PPC_ADDI(dst_reg, dst_reg, IMM_L(imm)); in bpf_jit_build_body()
359 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
373 if (imm >= -32768 && imm < 32768) in bpf_jit_build_body()
374 PPC_MULI(dst_reg, dst_reg, IMM_L(imm)); in bpf_jit_build_body()
376 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
409 if (imm == 0) in bpf_jit_build_body()
411 else if (imm == 1) in bpf_jit_build_body()
414 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
458 if (!IMM_H(imm)) in bpf_jit_build_body()
459 PPC_ANDI(dst_reg, dst_reg, IMM_L(imm)); in bpf_jit_build_body()
462 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
472 if (imm < 0 && BPF_CLASS(code) == BPF_ALU64) { in bpf_jit_build_body()
474 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
477 if (IMM_L(imm)) in bpf_jit_build_body()
478 PPC_ORI(dst_reg, dst_reg, IMM_L(imm)); in bpf_jit_build_body()
479 if (IMM_H(imm)) in bpf_jit_build_body()
480 PPC_ORIS(dst_reg, dst_reg, IMM_H(imm)); in bpf_jit_build_body()
489 if (imm < 0 && BPF_CLASS(code) == BPF_ALU64) { in bpf_jit_build_body()
491 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
494 if (IMM_L(imm)) in bpf_jit_build_body()
495 PPC_XORI(dst_reg, dst_reg, IMM_L(imm)); in bpf_jit_build_body()
496 if (IMM_H(imm)) in bpf_jit_build_body()
497 PPC_XORIS(dst_reg, dst_reg, IMM_H(imm)); in bpf_jit_build_body()
512 PPC_SLWI(dst_reg, dst_reg, imm); in bpf_jit_build_body()
517 if (imm != 0) in bpf_jit_build_body()
518 PPC_SLDI(dst_reg, dst_reg, imm); in bpf_jit_build_body()
529 PPC_SRWI(dst_reg, dst_reg, imm); in bpf_jit_build_body()
534 if (imm != 0) in bpf_jit_build_body()
535 PPC_SRDI(dst_reg, dst_reg, imm); in bpf_jit_build_body()
544 PPC_SRAWI(dst_reg, dst_reg, imm); in bpf_jit_build_body()
547 if (imm != 0) in bpf_jit_build_body()
548 PPC_SRADI(dst_reg, dst_reg, imm); in bpf_jit_build_body()
556 if (imm == 1) { in bpf_jit_build_body()
565 PPC_LI32(dst_reg, imm); in bpf_jit_build_body()
566 if (imm < 0) in bpf_jit_build_body()
590 switch (imm) { in bpf_jit_build_body()
629 switch (imm) { in bpf_jit_build_body()
653 PPC_LI(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
661 PPC_LI(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
669 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
677 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
741 imm64 = ((u64)(u32) insn[i].imm) | in bpf_jit_build_body()
742 (((u64)(u32) insn[i+1].imm) << 32); in bpf_jit_build_body()
913 if (imm >= 0 && imm < 32768) { in bpf_jit_build_body()
915 PPC_CMPLWI(dst_reg, imm); in bpf_jit_build_body()
917 PPC_CMPLDI(dst_reg, imm); in bpf_jit_build_body()
920 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
946 if (imm >= -32768 && imm < 32768) { in bpf_jit_build_body()
948 PPC_CMPWI(dst_reg, imm); in bpf_jit_build_body()
950 PPC_CMPDI(dst_reg, imm); in bpf_jit_build_body()
952 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
965 if (imm >= 0 && imm < 32768) in bpf_jit_build_body()
967 PPC_ANDI(b2p[TMP_REG_1], dst_reg, imm); in bpf_jit_build_body()
971 PPC_LI32(tmp_reg, imm); in bpf_jit_build_body()