fres

Floating Reciprocal Estimate Single

fres FRT, FRB

Estimates the reciprocal of a single-precision floating-point number.

Details

The fres instruction estimates the reciprocal of a single-precision floating-point number in an FPR and places the result into another FPR. If the input value is finite and has an unbiased exponent greater than +127, it is interpreted as an Infinity.

Pseudocode Operation

if 'fres[.]' then
    FT <- estimate_reciprocal(FB)

Programming Note

The fres instruction provides a fast estimate of the reciprocal for single-precision floating-point numbers. It's useful in performance-critical applications where exact precision is not required, but speed is essential. Be cautious with inputs that have an unbiased exponent greater than +127, as they are treated as Infinity, which might lead to unexpected results if not handled properly.

Example

fres f1, f3

Encoding

Binary Layout
59
0
FRT
6
0
30
0
31
FRB
24
/
 
Format A-form
Opcode 0xEC000030
Extension Floating-Point
Registers Altered FPSCR, CR0

Operands

  • FRT
    Target
  • FRB
    Source
  • FT
    Target Floating-Point Register
  • FB
    Source Floating-Point Register