3.11.35. VRINTA, VRINTN, VRINTP, VRINTM, and VRINTZ

Round a floating-point value to an integer in floating-point format using directed rounding.

Syntax

VRINT<rmode>.F<32|64> <Sd|Dd>, <Sm|Dm>

Where:

<Sd|Dd>

Is the destination single-precision or double-precision floating-point value.

<Sn|Dn>, <Sm|Dm>

Are the operand single-precision or double-precision floating-point values.

<rmode>

Is one of:

A

Round to nearest ties away.

N

Round to Nearest Even.

P

Round towards Plus Infinity.

M

Round towards Minus Infinity.

Z

Round towards Zero.

Operation

These instructions:

  1. Read the source register.

  2. Round to the nearest integer value with a directed rounding mode specified by the instruction.

  3. Write the result to the destination register.

Restrictions

These instructions cannot be conditional. These instructions cannot generate an inexact exception even if the result is not exact.

Condition flags

These instructions do not change the flags.

Copyright © 2015, 2018 Arm. All rights reserved.ARM DUI 0646C
Non-ConfidentialID121118