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 />

5.10.2 Vector Floating-Point Maximum and Minimum Instructions<br />

Vector Maximum Single-Precision<br />

VX-form<br />

Vector Minimum Single-Precision<br />

VX-form<br />

vmaxfp<br />

VRT,VRA,VRB<br />

vminfp<br />

VRT,VRA,VRB<br />

4 VRT VRA VRB 1034<br />

0 6 11 16 21 31<br />

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

VRT i:i+31 ( (VRA) i:i+31 > fp (VRB) i:i+31 )<br />

? (VRA) i:i+31 : (VRB) i:i+31<br />

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

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

compared to single-precision floating-point element<br />

i in VRB. The larger of the two values is<br />

placed into word element i of VRT.<br />

The maximum of +0 and -0 is +0. The maximum of any<br />

value and a NaN is a QNaN.<br />

Special Registers Altered:<br />

None<br />

4 VRT VRA VRB 1098<br />

0 6 11 16 21 31<br />

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

VRT i:i+31 ( (VRA) i:i+31 < fp (VRB) i:i+31 )<br />

? (VRA) i:i+31 : (VRB) i:i+31<br />

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

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

compared to single-precision floating-point element<br />

i in VRB. The smaller of the two values is<br />

placed into word element i of VRT.<br />

The minimum of +0 and -0 is -0. The minimum of any<br />

value and a NaN is a QNaN.<br />

Special Registers Altered:<br />

None<br />

Chapter 5. Vector Processor [Category: Vector]<br />

185

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

Saved successfully!

Ooh no, something went wrong!