Addition of INSERT,EXTRACT, and POPCOUNT opcodes to decompiler code

This commit is contained in:
caheckman 2019-09-04 13:15:07 -04:00
parent 2cafb27574
commit 0fdd29b98d
17 changed files with 164 additions and 8 deletions

View file

@ -493,6 +493,11 @@ uintb PcodeOp::getNZMaskLocal(bool cliploop) const
val = (getIn(1)->getNZMask()-1); // Result is less than modulus
resmask = coveringmask(val);
break;
case CPUI_POPCOUNT:
sz1 = popcount(getIn(0)->getNZMask());
resmask = coveringmask((uintb)sz1);
resmask &= fullmask;
break;
case CPUI_SUBPIECE:
resmask = getIn(0)->getNZMask();
resmask >>= 8*getIn(1)->getOffset();