()
| 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"); |
nothing calls this directly
no test coverage detected