6.10. Miscellaneous Instructions

All Diamond processor cores implement the miscellaneous instructions listed in Table 6.7. These instructions are useful in a wide range of applications.

Table 6.7. Miscellaneous Diamond processor core instructions
Instruction mnemonicInstruction definition
NSACalculates the left-shift amount needed to normalize a 32-bit two’s-complement number.
NSAUCalculates the left-shift amount needed to normalize a 32-bit, unsigned number.
MINSelects the minimum value operand from two input operands stored in two’s-complement format.
MAXSelects the maximum value operand from two input operands stored in two’s-complement format.
MINUSelects the minimum value operand from two input operands stored in unsigned format.
MAXUSelects the maximum value operand from two input operands stored in unsigned format.
CLAMPSSigned clamping function, used for saturating arithmetic.
SEXT32-bit sign extension.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.142.193