POOL32F 010101 |
ft |
fs |
0 |
fmt |
ABS 0001101 |
POOL32FXf 111011 |
6 |
5 |
5 |
1 |
2 |
7 |
6 |
ABS.fmt |
Floating Point Absolute Value | |
ABS.S ft, fs |
microMIPS |
Floating Point Absolute Value |
ABS.D ft, fs |
microMIPS |
Floating Point Absolute Value |
Floating Point Absolute Value
FPR[ft] = abs(FPR[fs])
The absolute value of the value in FPR fs is placed in FPR ft. The operand and result are values in format fmt.
The Cause bits are ORed into the Flag bits if no exception is taken.
If FIRHas2008=0 or FCSRABS2008=0 then this operation is arithmetic. For this case, any NaN operand signals invalid operation.
If FCSRABS2008=1 then this operation is non-arithmetic. For this case, both regular floating point numbers and NAN values are treated alike, only the sign bit is affected by this instruction. No IEEE exception can be generated for this case.
The fields fs and ft must specify FPRs valid for operands of type fmt. If the fields are not valid, the result is UNPREDICTABLE.
The operand must be a value in format fmt; if it is not, the result is UNPREDICTABLE and the value of the operand
FPR becomes UNPREDICTABLE.
ABS.PS has been removed in Release 6.
StoreFPR(ft, fmt, AbsoluteValue(ValueFPR(fs, fmt)))
Coprocessor Unusable, Reserved Instruction
Unimplemented Operation, Invalid Operation