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

Function layout_balign_pads_offset

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

Source from the content-addressed store, hash-verified

296 #[test]
297 fn parser_branch_beq() {
298 let tok = parse_one("\tbeq s0, zero, .Lexit");
299 assert!(
300 matches!(
301 &tok,
302 AsmToken::Branch { kind: BranchKind::Beq, rs1: 8, rs2: 0, target }
303 if target == ".Lexit"
304 ),
305 "unexpected token: {tok:?}"
306 );
307 }
308
309 #[test]
310 fn parser_j_pseudo() {
311 let tok = parse_one("\tj .Ltop");
312 assert!(

Callers

nothing calls this directly

Calls 1

compute_layoutFunction · 0.85

Tested by

no test coverage detected