Lines Matching refs:imm
315 s32 imm = insn[i].imm; in bpf_jit_build_body() local
358 if (!imm) { in bpf_jit_build_body()
360 } else if (imm >= -32768 && imm < 32768) { in bpf_jit_build_body()
361 EMIT(PPC_RAW_ADDI(dst_reg, dst_reg, IMM_L(imm))); in bpf_jit_build_body()
363 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
369 if (!imm) { in bpf_jit_build_body()
371 } else if (imm > -32768 && imm <= 32768) { in bpf_jit_build_body()
372 EMIT(PPC_RAW_ADDI(dst_reg, dst_reg, IMM_L(-imm))); in bpf_jit_build_body()
374 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
387 if (imm >= -32768 && imm < 32768) in bpf_jit_build_body()
388 EMIT(PPC_RAW_MULI(dst_reg, dst_reg, IMM_L(imm))); in bpf_jit_build_body()
390 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
423 if (imm == 0) in bpf_jit_build_body()
425 if (imm == 1) { in bpf_jit_build_body()
434 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
480 if (!IMM_H(imm)) in bpf_jit_build_body()
481 EMIT(PPC_RAW_ANDI(dst_reg, dst_reg, IMM_L(imm))); in bpf_jit_build_body()
484 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
494 if (imm < 0 && BPF_CLASS(code) == BPF_ALU64) { in bpf_jit_build_body()
496 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
499 if (IMM_L(imm)) in bpf_jit_build_body()
500 EMIT(PPC_RAW_ORI(dst_reg, dst_reg, IMM_L(imm))); in bpf_jit_build_body()
501 if (IMM_H(imm)) in bpf_jit_build_body()
502 EMIT(PPC_RAW_ORIS(dst_reg, dst_reg, IMM_H(imm))); in bpf_jit_build_body()
511 if (imm < 0 && BPF_CLASS(code) == BPF_ALU64) { in bpf_jit_build_body()
513 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
516 if (IMM_L(imm)) in bpf_jit_build_body()
517 EMIT(PPC_RAW_XORI(dst_reg, dst_reg, IMM_L(imm))); in bpf_jit_build_body()
518 if (IMM_H(imm)) in bpf_jit_build_body()
519 EMIT(PPC_RAW_XORIS(dst_reg, dst_reg, IMM_H(imm))); in bpf_jit_build_body()
534 EMIT(PPC_RAW_SLWI(dst_reg, dst_reg, imm)); in bpf_jit_build_body()
539 if (imm != 0) in bpf_jit_build_body()
540 EMIT(PPC_RAW_SLDI(dst_reg, dst_reg, imm)); in bpf_jit_build_body()
551 EMIT(PPC_RAW_SRWI(dst_reg, dst_reg, imm)); in bpf_jit_build_body()
556 if (imm != 0) in bpf_jit_build_body()
557 EMIT(PPC_RAW_SRDI(dst_reg, dst_reg, imm)); in bpf_jit_build_body()
566 EMIT(PPC_RAW_SRAWI(dst_reg, dst_reg, imm)); in bpf_jit_build_body()
569 if (imm != 0) in bpf_jit_build_body()
570 EMIT(PPC_RAW_SRADI(dst_reg, dst_reg, imm)); in bpf_jit_build_body()
578 if (imm == 1) { in bpf_jit_build_body()
587 PPC_LI32(dst_reg, imm); in bpf_jit_build_body()
588 if (imm < 0) in bpf_jit_build_body()
612 switch (imm) { in bpf_jit_build_body()
651 switch (imm) { in bpf_jit_build_body()
704 EMIT(PPC_RAW_LI(b2p[TMP_REG_1], imm)); in bpf_jit_build_body()
712 EMIT(PPC_RAW_LI(b2p[TMP_REG_1], imm)); in bpf_jit_build_body()
720 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
728 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
738 if (imm != BPF_ADD) { in bpf_jit_build_body()
760 if (imm != BPF_ADD) { in bpf_jit_build_body()
807 imm64 = ((u64)(u32) insn[i].imm) | in bpf_jit_build_body()
808 (((u64)(u32) insn[i+1].imm) << 32); in bpf_jit_build_body()
979 if (imm >= 0 && imm < 32768) { in bpf_jit_build_body()
981 EMIT(PPC_RAW_CMPLWI(dst_reg, imm)); in bpf_jit_build_body()
983 EMIT(PPC_RAW_CMPLDI(dst_reg, imm)); in bpf_jit_build_body()
986 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
1012 if (imm >= -32768 && imm < 32768) { in bpf_jit_build_body()
1014 EMIT(PPC_RAW_CMPWI(dst_reg, imm)); in bpf_jit_build_body()
1016 EMIT(PPC_RAW_CMPDI(dst_reg, imm)); in bpf_jit_build_body()
1018 PPC_LI32(b2p[TMP_REG_1], imm); in bpf_jit_build_body()
1031 if (imm >= 0 && imm < 32768) in bpf_jit_build_body()
1033 EMIT(PPC_RAW_ANDI(b2p[TMP_REG_1], dst_reg, imm)); in bpf_jit_build_body()
1037 PPC_LI32(tmp_reg, imm); in bpf_jit_build_body()