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

Function test_high_bits

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

Source from the content-addressed store, hash-verified

724
725#[test]
726fn test_high_bits() {
727 let mut block = pcode::Block::new();
728 let tmp = block.alloc_tmp(2);
729 block.push((tmp, pcode::Op::Load(0), 0x1000));
730 let tmp2 = block.alloc_tmp(1);
731 block.push((tmp2, pcode::Op::Copy, tmp.slice(1, 1)));
732 let reg = pcode::VarNode::new(1, 2);
733 block.push((reg, pcode::Op::ZeroExtend, tmp2));
734
735 // If only the high bits are used then check that we support a zero-extend and shift.
736 check(block, 0, Some((8, 15)));
737}
738
739#[test]
740fn test_shift_and_slt() {

Callers

nothing calls this directly

Calls 1

checkFunction · 0.85

Tested by

no test coverage detected