Merge remote-tracking branch 'origin/GP-2791_pcode_override_tests--SQUASHED'

This commit is contained in:
Ryan Kurtz 2022-11-30 12:18:44 -05:00
commit 0d72cce015
4 changed files with 1811 additions and 2 deletions

View file

@ -353,7 +353,7 @@ public abstract class PcodeEmit {
else if (opcode == PcodeOp.CBRANCH) {
int offsetType = inputs[0].getOffset().getType();
if (offsetType == ConstTpl.J_RELATIVE || offsetType == ConstTpl.J_START ||
offsetType == ConstTpl.J_NEXT) {
offsetType == ConstTpl.J_NEXT || offsetType == ConstTpl.J_NEXT2) {
return false;
}

View file

@ -32,6 +32,7 @@ public enum FlowOverride {
* <pre>{@literal
* Pcode mapping:
* CALL -> BRANCH
* CALLIND -> BRANCHIND
* RETURN -> BRANCHIND
* }</pre>
*/
@ -54,7 +55,7 @@ public enum FlowOverride {
CALL,
/**
* Override the primary BRANCH or RETURN with a suitable CALL/RETURN operation.
* Override the primary BRANCH, CALL, or RETURN with a suitable CALL/RETURN operation
* <pre>{@literal
* Pcode mapping:
* BRANCH -> CALL/RETURN
@ -65,6 +66,8 @@ public enum FlowOverride {
* CALL <addr>
* RETURN 0
* <label>
* CALL -> CALL/RETURN
* CALLIND -> CALLIND/RETURN
* RETURN -> CALLIND/RETURN
* }</pre>
*/