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