()
| 433 | fn pseudo_li_32bit() { |
| 434 | assert_pseudo_expands_to!( |
| 435 | PseudoInstruction::Li { |
| 436 | rd: 5, |
| 437 | imm: 0x12345 |
| 438 | }, |
| 439 | vec![ |
| 440 | RealInstruction::Lui(Lui::new(5, 0x12000)), |
| 441 | RealInstruction::Addi(Addi::new(5, 5, 0x345)), |
| 442 | ] |
| 443 | ); |
| 444 | } |
| 445 | |
| 446 | #[test] |
| 447 | fn pseudo_li_64bit() { |
| 448 | let imm: i64 = 0x1234_5678_9ABC; |
nothing calls this directly
no outgoing calls
no test coverage detected