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

Function layout_align_pads_offset

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

Source from the content-addressed store, hash-verified

284 fn parser_branch_bne() {
285 let tok = parse_one("\tbne a0, a1, .Lelse");
286 assert!(
287 matches!(
288 &tok,
289 AsmToken::Branch { kind: BranchKind::Bne, rs1: 10, rs2: 11, target }
290 if target == ".Lelse"
291 ),
292 "unexpected token: {tok:?}"
293 );
294 }
295
296 #[test]
297 fn parser_branch_beq() {
298 let tok = parse_one("\tbeq s0, zero, .Lexit");

Callers

nothing calls this directly

Calls 1

compute_layoutFunction · 0.85

Tested by

no test coverage detected