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

Function layout_multiple_sections

crates/asm-to-binary/src/assembler/mod.rs:312–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

310 fn parser_j_pseudo() {
311 let tok = parse_one("\tj .Ltop");
312 assert!(
313 matches!(&tok, AsmToken::Jal { rd: 0, target } if target == ".Ltop"),
314 "unexpected token: {tok:?}"
315 );
316 }
317
318 #[test]
319 fn parser_jal_with_rd() {
320 let tok = parse_one("\tjal ra, my_func");
321 assert!(
322 matches!(&tok, AsmToken::Jal { rd: 1, target } if target == "my_func"),
323 "unexpected token: {tok:?}"
324 );
325 }
326
327 #[test]

Callers

nothing calls this directly

Calls 1

compute_layoutFunction · 0.85

Tested by

no test coverage detected