| |||
| Home > NEON and VFP Programming > VFP instructions > FABS, FCPY, and FNEG | |||
Floating-point copy, absolute value, and negate.
These instructions can be scalar, vector, or mixed (see VFP vector and scalar operations).
<op><precision>{cond}Fd,Fm
where:
<op>must be one of FCPY, FABS,
or FNEG.
<precision>must be either S for single-precision,
or D for double-precision.
condis an optional condition code (see Condition codes).
Fdis the VFP register for the result.
Fmis the VFP register holding the operand.
The precision of and Fd must
match the precision specified in Fm<.precision>
The FCPY instruction copies the contents of into Fm.Fd
The FABS instruction takes the contents of ,
clears the sign bit, and places the result in Fm.
This gives the absolute value.Fd
The FNEG instruction takes the contents of ,
changes the sign bit, and places the result in Fm.
This gives the negation of the value.Fd
If the operand is a NaN, the sign bit is determined in each case as above, but no exception is produced.