(&self)
| 178 | } |
| 179 | impl Instruction for Slli { |
| 180 | fn encode(&self) -> u32 { |
| 181 | let imm = self.shamt as i32; // funct7 = 0x00 |
| 182 | IType { |
| 183 | opcode: 0x13, |
| 184 | rd: self.rd, |
| 185 | funct3: 1, |
| 186 | rs1: self.rs1, |
| 187 | imm, |
| 188 | } |
| 189 | .encode() |
| 190 | } |
| 191 | fn to_asm(&self) -> String { |
| 192 | format!( |
| 193 | "slli {}, {}, {}", |
no outgoing calls
no test coverage detected