Page 319 - ARM 64 Bit Assembly Language
P. 319

308 Chapter 9

                  9.7.1.1 Syntax

                       frint<op>    Fd, Fm


                  •  <op> is one of a, i, m, n, p,or x.
                  •  Fd and Fm must specify either two single precision registers or two double precision regis-
                     ters.

                  9.7.1.2 Operations

                   Name      Effect                               Description
                   frintx    Fd ← roundx(Fm)                      Round


                  9.7.1.3 Examples
                1     frinta    d3, d5  // Round d5 away from zero and store in d3
                2     frintm   s15, s15  // Round s5 towards negative infinity


                  9.7.2 Absolute value, negate, square root

                  The unary operations require one source register and a destination register. The source and
                  destination can be the same register. There are four unary operations:
                  fabs    Absolute Value,
                  fneg    Negate, and
                  fsqrt   Square Root

                  9.7.2.1 Syntax

                       f<op>   Fd, Fm

                  •  <op> is one of abs, neg,or sqrt.
                  •  Fd and Fm must specify either two single precision registers or two double precision regis-
                     ters.

                  9.7.2.2 Operations

                   Name     Effect                               Description
                   fabs     Fd ←|Fn|                             Absolute Value
                   fneg     Fd ←−Fn                              Negate
                                  √
                   fsqrt    Fd ←    Fn                           Square Root
   314   315   316   317   318   319   320   321   322   323   324