Merge branch 'GP-0_ryanmkurtz_PR-4356_alex-bellon_add-dynamic-flag-check'

This commit is contained in:
Ryan Kurtz 2022-06-22 12:55:17 -04:00
commit da8c3643e2

View file

@ -341,6 +341,16 @@ public final class OperandType {
return (operandType & COP) != 0;
}
/**
* check the DYNAMIC flag.
* @param operandType the bit field to examine.
*
* @return true if the DYNAMIC flag is set.
*/
public static boolean isDynamic(int operandType) {
return (operandType & DYNAMIC) != 0;
}
/**
* check if both a scalar and an address
* @param operandType the bit field to examine.
@ -457,6 +467,10 @@ public final class OperandType {
append(buf, "COP ");
}
if (isDynamic(operandType)) {
append(buf, "DYN ");
}
return buf.toString();
}