Assembly source string for this pseudo-instruction.
(&self)
| 301 | Self::Nop => "nop".into(), |
| 302 | Self::Li { rd, imm } => format!("li {}, {}", reg_name(*rd, false), imm), |
| 303 | Self::Mv { rd, rs } => { |
| 304 | format!("mv {}, {}", reg_name(*rd, false), reg_name(*rs, false)) |
| 305 | } |
| 306 | Self::Not { rd, rs } => { |
| 307 | format!("not {}, {}", reg_name(*rd, false), reg_name(*rs, false)) |
| 308 | } |
| 309 | Self::Neg { rd, rs } => { |
| 310 | format!("neg {}, {}", reg_name(*rd, false), reg_name(*rs, false)) |
| 311 | } |
| 312 | Self::Negw { rd, rs } => { |
| 313 | format!("negw {}, {}", reg_name(*rd, false), reg_name(*rs, false)) |
| 314 | } |
| 315 | Self::SextW { rd, rs } => { |
| 316 | format!("sext.w {}, {}", reg_name(*rd, false), reg_name(*rs, false)) |
| 317 | } |
| 318 | Self::Seqz { rd, rs } => { |
| 319 | format!("seqz {}, {}", reg_name(*rd, false), reg_name(*rs, false)) |
| 320 | } |
| 321 | Self::Snez { rd, rs } => { |
| 322 | format!("snez {}, {}", reg_name(*rd, false), reg_name(*rs, false)) |
| 323 | } |
| 324 | Self::Sltz { rd, rs } => { |
| 325 | format!("sltz {}, {}", reg_name(*rd, false), reg_name(*rs, false)) |
| 326 | } |
| 327 | Self::Sgtz { rd, rs } => { |
| 328 | format!("sgtz {}, {}", reg_name(*rd, false), reg_name(*rs, false)) |
| 329 | } |
| 330 | Self::Beqz { rs, offset } => format!("beqz {}, {}", reg_name(*rs, false), offset), |
| 331 | Self::Bnez { rs, offset } => format!("bnez {}, {}", reg_name(*rs, false), offset), |
| 332 | Self::Blez { rs, offset } => format!("blez {}, {}", reg_name(*rs, false), offset), |
| 333 | Self::Bgez { rs, offset } => format!("bgez {}, {}", reg_name(*rs, false), offset), |
| 334 | Self::Bltz { rs, offset } => format!("bltz {}, {}", reg_name(*rs, false), offset), |
| 335 | Self::Bgtz { rs, offset } => format!("bgtz {}, {}", reg_name(*rs, false), offset), |
| 336 | Self::Bgt { rs1, rs2, offset } => format!( |
| 337 | "bgt {}, {}, {}", |
| 338 | reg_name(*rs1, false), |
| 339 | reg_name(*rs2, false), |
| 340 | offset |
| 341 | ), |
| 342 | Self::Ble { rs1, rs2, offset } => format!( |
| 343 | "ble {}, {}, {}", |
| 344 | reg_name(*rs1, false), |
| 345 | reg_name(*rs2, false), |
| 346 | offset |
| 347 | ), |
| 348 | Self::Bgtu { rs1, rs2, offset } => format!( |
| 349 | "bgtu {}, {}, {}", |
| 350 | reg_name(*rs1, false), |
| 351 | reg_name(*rs2, false), |
| 352 | offset |
| 353 | ), |
| 354 | Self::Bleu { rs1, rs2, offset } => format!( |
| 355 | "bleu {}, {}, {}", |
| 356 | reg_name(*rs1, false), |
| 357 | reg_name(*rs2, false), |
| 358 | offset |
| 359 | ), |
| 360 | Self::J { offset } => format!("j {offset}"), |
nothing calls this directly
no outgoing calls
no test coverage detected