FRINTZ (scalar)
Floating-point Round to Integral, toward Zero (scalar).
Syntax
FRINTZ
Hd
, Hn
; Half-precision
FRINTZ
Sd
, Sn
; Single-precision
FRINTZ
Dd
, Dn
; Double-precision
Where:
Hd
- Is the 16-bit name of the SIMD and FP destination register.
Hn
- Is the 16-bit name of the SIMD and FP source register.
Sd
- Is the 32-bit name of the SIMD and FP destination register.
Sn
- Is the 32-bit name of the SIMD and FP source register.
Dd
- Is the 64-bit name of the SIMD and FP destination register.
Dn
- Is the 64-bit name of the SIMD and FP source register.
Usage
Floating-point Round to Integral, toward Zero (scalar). This instruction rounds a floating-point value in the SIMD and FP source register to an integral floating-point value of the same size using the Round towards Zero rounding mode, and writes the result to the SIMD and FP destination register.
A zero input gives a zero result with the same sign, an infinite input gives an infinite result with the same sign, and a NaN is propagated as for normal arithmetic.
A floating-point exception can be generated by this instruction. Depending on the settings in FPCR in the ARMv8-A Architecture Reference Manual, the exception results in either a flag being set in FPSR in the ARMv8-A Architecture Reference Manual, or a synchronous exception being generated. For more information, see Floating-point exception traps in the ARMv8-A Architecture Reference Manual.
Depending on the settings in the CPACR_EL1, CPTR_EL2, and CPTR_EL3 registers, and the current Security state and Exception level, an attempt to execute the instruction might be trapped.