Page 315 - ARM 64 Bit Assembly Language
P. 315

304 Chapter 9

                  9.5.2.2 Operations

                   Name     Effect                               Description
                   fmov     Fd ← fpimm                           Move Immediate Data to Fd

                  9.5.2.3 Examples

                1     fmov   d3,#5.0           // d3 <- 5.0
                2     fmov   s5,#-7.0          // s5 <- -7.0


                  9.6 Data conversion instructions


                  The ARM FP provides several instructions for converting between various floating point and
                  integer formats. Some FP versions also have instructions for converting between fixed point
                  and floating point formats.


                  9.6.1 Convert between double, single, and half precision

                  These instructions are used for converting between IEEE double precision, single precision,
                  and half precision floating point:
                  fcvt    Convert Between Double, Single, and Half Precision.

                  9.6.1.1 Syntax

                       fcvt    Sd, Hn
                       fcvt    Dd, Hn
                       fcvt    Hd, Sn
                       fcvt    Dd, Sn
                       fcvt    Hd, Dn
                       fcvt    Sd, Dn


                  •  Although the data processing instructions do not operate on half precision numbers, they
                     may be used to store data in half the space required for single precision, or one quarter the
                     space required for double precision.

                  9.6.1.2 Operations

                   Name     Effect                               Description
                   fcvt     Sd ← single(Hn)                      Convert half precision number in Hn
                                                                 to single precision and store in Sd.
                                                                                continued on next page
   310   311   312   313   314   315   316   317   318   319   320