mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
Addition of INSERT,EXTRACT, and POPCOUNT opcodes to decompiler code
This commit is contained in:
parent
2cafb27574
commit
0fdd29b98d
17 changed files with 164 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue