Lines Matching refs:imm
533 s32 imm = insn->imm; in bpf_jit_emit_insn() local
541 if (imm == 1) { in bpf_jit_emit_insn()
633 switch (imm) { in bpf_jit_emit_insn()
655 if (imm == 16) in bpf_jit_emit_insn()
667 if (imm == 32) in bpf_jit_emit_insn()
699 emit_imm(rd, imm, ctx); in bpf_jit_emit_insn()
707 if (is_12b_int(imm)) { in bpf_jit_emit_insn()
708 emit_addi(rd, rd, imm, ctx); in bpf_jit_emit_insn()
710 emit_imm(RV_REG_T1, imm, ctx); in bpf_jit_emit_insn()
718 if (is_12b_int(-imm)) { in bpf_jit_emit_insn()
719 emit_addi(rd, rd, -imm, ctx); in bpf_jit_emit_insn()
721 emit_imm(RV_REG_T1, imm, ctx); in bpf_jit_emit_insn()
729 if (is_12b_int(imm)) { in bpf_jit_emit_insn()
730 emit_andi(rd, rd, imm, ctx); in bpf_jit_emit_insn()
732 emit_imm(RV_REG_T1, imm, ctx); in bpf_jit_emit_insn()
740 if (is_12b_int(imm)) { in bpf_jit_emit_insn()
741 emit(rv_ori(rd, rd, imm), ctx); in bpf_jit_emit_insn()
743 emit_imm(RV_REG_T1, imm, ctx); in bpf_jit_emit_insn()
751 if (is_12b_int(imm)) { in bpf_jit_emit_insn()
752 emit(rv_xori(rd, rd, imm), ctx); in bpf_jit_emit_insn()
754 emit_imm(RV_REG_T1, imm, ctx); in bpf_jit_emit_insn()
762 emit_imm(RV_REG_T1, imm, ctx); in bpf_jit_emit_insn()
770 emit_imm(RV_REG_T1, imm, ctx); in bpf_jit_emit_insn()
778 emit_imm(RV_REG_T1, imm, ctx); in bpf_jit_emit_insn()
786 emit_slli(rd, rd, imm, ctx); in bpf_jit_emit_insn()
794 emit_srli(rd, rd, imm, ctx); in bpf_jit_emit_insn()
796 emit(rv_srliw(rd, rd, imm), ctx); in bpf_jit_emit_insn()
804 emit_srai(rd, rd, imm, ctx); in bpf_jit_emit_insn()
806 emit(rv_sraiw(rd, rd, imm), ctx); in bpf_jit_emit_insn()
890 if (imm) { in bpf_jit_emit_insn()
891 emit_imm(RV_REG_T1, imm, ctx); in bpf_jit_emit_insn()
914 if (is_12b_int(imm)) { in bpf_jit_emit_insn()
915 emit_andi(RV_REG_T1, rd, imm, ctx); in bpf_jit_emit_insn()
917 emit_imm(RV_REG_T1, imm, ctx); in bpf_jit_emit_insn()
924 if (!is64 && imm < 0) in bpf_jit_emit_insn()
970 imm64 = (u64)insn1.imm << 32 | (u32)imm; in bpf_jit_emit_insn()
1063 emit_imm(RV_REG_T1, imm, ctx); in bpf_jit_emit_insn()
1075 emit_imm(RV_REG_T1, imm, ctx); in bpf_jit_emit_insn()
1086 emit_imm(RV_REG_T1, imm, ctx); in bpf_jit_emit_insn()
1097 emit_imm(RV_REG_T1, imm, ctx); in bpf_jit_emit_insn()
1151 if (insn->imm != BPF_ADD) { in bpf_jit_emit_insn()
1153 insn->imm); in bpf_jit_emit_insn()