Download SHARC Processor Programming Reference

Transcript
Computation Types
Rn = EXP Rx (EX)
Function
Extracts the exponent of the fixed-point operand in Rx, assuming that the
operand is the result of an ALU operation. The exponent is placed in the
shf8 field in register Rn. If the AV status bit is set, a value of +1 is placed in
the shf8 field to indicate an extra bit (the ALU overflow bit). If the AV status bit is not set, the exponent is calculated as the two’s-complement of:
# leading sign bits in Rx – 1
ASTATx/y Flags
SZ
Set if the extracted exponent is 0, otherwise cleared
SV
Cleared
SS
Set if the exclusive OR of the AV status bit and the sign bit (bit 31) of the
fixed-point operand in Rx is equal to 1, otherwise cleared
SHARC Processor Programming Reference
11-81