mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
Fixing some bugs in the new transform framework
This commit is contained in:
parent
e4084b40ee
commit
a8f9d4f7ac
3 changed files with 27 additions and 9 deletions
|
@ -1807,16 +1807,12 @@ bool SubfloatFlow::traceForward(TransformVar *rvn)
|
|||
{
|
||||
TransformVar *rvn2 = setReplacement(op->getIn(1-slot));
|
||||
if (rvn2 == (TransformVar *)0) return false;
|
||||
TransformOp *rop = newPreexistingOp(2, op->code(), op);
|
||||
if (slot == 0) {
|
||||
opSetInput(rop,rvn,0);
|
||||
opSetInput(rop,rvn2,1);
|
||||
if (preexistingGuard(slot, rvn2)) {
|
||||
TransformOp *rop = newPreexistingOp(2, op->code(), op);
|
||||
opSetInput(rop, rvn, 0);
|
||||
opSetInput(rop, rvn2, 1);
|
||||
terminatorCount += 1;
|
||||
}
|
||||
else {
|
||||
opSetInput(rop,rvn2,0);
|
||||
opSetInput(rop,rvn,1);
|
||||
}
|
||||
terminatorCount += 1;
|
||||
break;
|
||||
}
|
||||
case CPUI_FLOAT_TRUNC:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue