Home
last modified time | relevance | path

Searched refs:Register (Results 1 – 2 of 2) sorted by relevance

/DragonOS/kernel/crates/rbpf/src/
H A Dasm_parser.rs28 Register(i64), enumerator
85 let register_operand = register().map(Operand::Register); in operand()
165 assert_eq!(operand().parse("r0"), Ok((Operand::Register(0), ""))); in test_operand()
166 assert_eq!(operand().parse("r15"), Ok((Operand::Register(15), ""))); in test_operand()
210 operands: vec![Operand::Register(1), Operand::Integer(2)], in test_instruction()
221 operands: vec![Operand::Register(2), Operand::Memory(1, 12)], in test_instruction()
232 operands: vec![Operand::Register(3), Operand::Integer(8)], in test_instruction()
244 Operand::Register(3), in test_instruction()
260 Operand::Register(3), in test_instruction()
296 operands: vec![Operand::Register(3), Operand::Integer(0x20)], in test_lsh()
[all …]
H A Dassembler.rs21 Operand::{Integer, Memory, Nil, Register},
190 (AluBinary, Register(dst), Register(src), Nil) => insn(opc | ebpf::BPF_X, dst, src, 0, 0), in encode()
191 (AluBinary, Register(dst), Integer(imm), Nil) => insn(opc | ebpf::BPF_K, dst, 0, 0, imm), in encode()
192 (AluUnary, Register(dst), Nil, Nil) => insn(opc, dst, 0, 0, 0), in encode()
194 (LoadInd, Register(src), Integer(imm), Nil) => insn(opc, 0, src, 0, imm), in encode()
195 (LoadReg, Register(dst), Memory(src, off), Nil) in encode()
196 | (StoreReg, Memory(dst, off), Register(src), Nil) => insn(opc, dst, src, off, 0), in encode()
200 (JumpConditional, Register(dst), Register(src), Integer(off)) => { in encode()
203 (JumpConditional, Register(dst), Integer(imm), Integer(off)) => { in encode()
207 (Endian(size), Register(dst), Nil, Nil) => insn(opc, dst, 0, 0, size), in encode()
[all …]