miri::shims::x86

Function test_bits_masked

Source
fn test_bits_masked<'tcx>(
    this: &MiriInterpCx<'tcx>,
    op: &OpTy<'tcx>,
    mask: &OpTy<'tcx>,
) -> InterpResult<'tcx, (bool, bool)>
Expand description

Calculates two booleans.

The first is true when all the bits of op & mask are zero. The second is true when (op & mask) == mask