()
| 754 | |
| 755 | #[test] |
| 756 | fn test_branch() { |
| 757 | let mut block = pcode::Block::new(); |
| 758 | let tmp = block.alloc_tmp(8); |
| 759 | block.push((tmp, pcode::Op::Load(0), 0x1000)); |
| 760 | block.push((pcode::Op::Branch(pcode::BranchHint::Call), (1_u8, tmp))); |
| 761 | |
| 762 | // Need all bits for a call/branch operation. |
| 763 | check(block, 0, None); |
| 764 | } |
| 765 | |
| 766 | #[test] |
| 767 | fn test_branch_with_tmps() { |