14.06.2015 Views

Power ISA™ Version 2.03 - Power.org

Power ISA™ Version 2.03 - Power.org

Power ISA™ Version 2.03 - Power.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Version</strong> <strong>2.03</strong><br />

Vector Round to Single-Precision Integer<br />

toward Minus Infinity<br />

VX-form<br />

Vector Round to Single-Precision Integer<br />

Nearest<br />

VX-form<br />

vrfim<br />

VRT,VRB<br />

vrfin<br />

VRT,VRB<br />

4 VRT /// VRB 714<br />

0 6 11 16 21 31<br />

do i=0 to 127 by 32<br />

VRT 0:31 RoundToSPIntFloor( (VRB) 0:31 )<br />

For each vector element i from 0 to 3, do the following.<br />

Single-precision floating-point element i in VRB is<br />

rounded to a single-precision floating-point integer<br />

using the rounding mode Round toward -Infinity.<br />

The result is placed into the corresponding word<br />

element i of VRT.<br />

Special Registers Altered:<br />

None<br />

4 VRT /// VRB 522<br />

0 6 11 16 21 31<br />

do i=0 to 127 by 32<br />

VRT 0:31 RoundToSPIntNear( (VRB) 0:31 )<br />

For each vector element i from 0 to 3, do the following.<br />

Single-precision floating-point element i in VRB is<br />

rounded to a single-precision floating-point integer<br />

using the rounding mode Round to Nearest.<br />

The result is placed into the corresponding word<br />

element i of VRT.<br />

Special Registers Altered:<br />

None<br />

Programming Note<br />

The Vector Convert To Fixed-Point Word instructions<br />

support only the rounding mode Round<br />

toward Zero. A floating-point number can be converted<br />

to a fixed-point integer using any of the other<br />

three rounding modes by executing the appropriate<br />

Vector Round to Floating-Point Integer instruction<br />

before the Vector Convert To Fixed-Point Word<br />

instruction.<br />

Programming Note<br />

The fixed-point integers used by the Vector Convert<br />

instructions can be interpreted as consisting of<br />

32-UIM integer bits followed by UIM fraction bits.<br />

Vector Round to Single-Precision Integer<br />

toward Positive Infinity VX-form<br />

Vector Round to Single-Precision Integer<br />

toward Zero<br />

VX-form<br />

vrfip<br />

VRT,VRB<br />

vrfiz<br />

VRT,VRB<br />

4 VRT /// VRB 650<br />

0 6 11 16 21 31<br />

do i=0 to 127 by 32<br />

VRT 0:31 RoundToSPIntCeil( (VRB) 0:31 )<br />

For each vector element i from 0 to 3, do the following.<br />

Single-precision floating-point element i in VRB is<br />

rounded to a single-precision floating-point integer<br />

using the rounding mode Round toward +Infinity.<br />

The result is placed into the corresponding word<br />

element i of VRT.<br />

Special Registers Altered:<br />

None<br />

4 VRT /// VRB 586<br />

0 6 11 16 21 31<br />

do i=0 to 127 by 32<br />

VRT 0:31 RoundToSPIntTrunc( (VRB) 0:31 )<br />

For each vector element i from 0 to 3, do the following.<br />

Single-precision floating-point element i in VRB is<br />

rounded to a single-precision floating-point integer<br />

using the rounding mode Round toward Zero.<br />

The result is placed into the corresponding word<br />

element i of VRT.<br />

Special Registers Altered:<br />

None<br />

188<br />

<strong>Power</strong> ISA -- Book I

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!