Lines Matching refs:imm
154 fn insn(opc: u8, dst: i64, src: i64, off: i64, imm: i64) -> Result<Insn, String> { in insn()
164 if !(-2147483648..2147483648).contains(&imm) { in insn()
172 imm: imm as i32, in insn()
191 (AluBinary, Register(dst), Integer(imm), Nil) => insn(opc | ebpf::BPF_K, dst, 0, 0, imm), in encode()
193 (LoadAbs, Integer(imm), Nil, Nil) => insn(opc, 0, 0, 0, imm), in encode()
194 (LoadInd, Register(src), Integer(imm), Nil) => insn(opc, 0, src, 0, imm), in encode()
197 (StoreImm, Memory(dst, off), Integer(imm), Nil) => insn(opc, dst, 0, off, imm), in encode()
203 (JumpConditional, Register(dst), Integer(imm), Integer(off)) => { in encode()
204 insn(opc | ebpf::BPF_K, dst, 0, off, imm) in encode()
206 (Call, Integer(imm), Nil, Nil) => insn(opc, 0, 0, 0, imm), in encode()
208 (LoadImm, Register(dst), Integer(imm), Nil) => insn(opc, dst, 0, 0, (imm << 32) >> 32), in encode()
226 if let Integer(imm) = instruction.operands[1] { in assemble_internal()
227 result.push(insn(0, 0, 0, 0, imm >> 32).unwrap()); in assemble_internal()