MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / test_low_bits

Function test_low_bits

hail-fuzz/src/load_resizer.rs:698–712  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

696
697#[test]
698fn test_low_bits() {
699 let reg = pcode::VarNode::new(1, 2);
700
701 let mut block = pcode::Block::new();
702 let tmp = block.alloc_tmp(2);
703 block.push((tmp, pcode::Op::Load(0), 0x1000));
704 block.push((reg, pcode::Op::Copy, tmp));
705
706 let tmp2 = block.alloc_tmp(1);
707 block.push((tmp2, pcode::Op::Copy, reg.slice(0, 1)));
708 block.push((reg, pcode::Op::ZeroExtend, tmp2));
709
710 // If only the low bits are used, then adjust the load size.
711 check(block, 0, Some((0, 7)));
712}
713
714#[test]
715fn test_lowest_bit() {

Callers

nothing calls this directly

Calls 1

checkFunction · 0.85

Tested by

no test coverage detected