Page 355 - ARM 64 Bit Assembly Language
P. 355

Advanced SIMD instructions 345

                     •   Td/Ts may be 4s/4h or 2d/2s.
                     •   Td2/Ts2 may be 4s/8h or 2d/4s.
                     •   Td3/Ts3 may be 4h/4s or 2s/2d.
                     •   Td4/Ts4 may be 8h/4s or 4s/2d.

                     10.4.2.2 Operations

                       Name      Effect                              Description
                       fcvtl     Vd[] ← single(Vn[])                 Convert half precision to single
                                                                     precision.
                       fcvtn     Vd[] ← half (Vn[])                  Convert single precision to half
                                                                     precision.

                       fcvtxn    Vd[] ← single(Vd[])                 Convert double precision to single
                                                                     precision.


                     10.4.2.3 Examples

                    1     fcvtl  v0.2d,v1.2s       // convert halfs to singles
                    2     fcvtxn v3.2s,v4.2d       // convert doubles to singles



                     10.4.3 Round floating point to integer

                     The following instruction can be used to round a vector of floating point values to integers:

                     frint      Round Floating Point to Integer.

                     10.4.3.1 Syntax

                          frint<x>      Vd.T, Vn.T


                     •   T is 2s, 4s,or 2d.
                     •   <x> selects the rounding mode. It may be one of the following:
                         N: round to nearest with ties to even,
                         A: round to nearest with ties away from zero,
                         P: round towards +∞,
                         M: round towards −∞,
                         Z: round towards zero,
                         I: round using FPCR rounding mode, and
                         X: round using FPCR rounding mode with exactness test.
   350   351   352   353   354   355   356   357   358   359   360