MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / pseudo_call

Function pseudo_call

crates/asm-to-binary/tests/asm_encoding.rs:435–445  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

433fn pseudo_li_32bit() {
434 assert_pseudo_expands_to!(
435 PseudoInstruction::Li {
436 rd: 5,
437 imm: 0x12345
438 },
439 vec![
440 RealInstruction::Lui(Lui::new(5, 0x12000)),
441 RealInstruction::Addi(Addi::new(5, 5, 0x345)),
442 ]
443 );
444}
445
446#[test]
447fn pseudo_li_64bit() {
448 let imm: i64 = 0x1234_5678_9ABC;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected