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 Compare Greater Than Unsigned<br />

Byte<br />

VC-form<br />

vcmpgtub VRT,VRA,VRB ( Rc=0 )<br />

vcmpgtub. VRT,VRA,VRB ( Rc=1 )<br />

4 VRT VRA VRB Rc 518<br />

0 6 11 16 21 22 31<br />

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

VRT i:i+7 ((VRA) i:i+7 > ui (VRB) i:i+7 ) ? 8 1 : 8 0<br />

if Rc=1 then do<br />

t (VRT= 128 1)<br />

f (VRT= 128 0)<br />

CR6 t || 0b0 || f || 0b0<br />

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

Unsigned-integer byte element i in VRA is compared<br />

to unsigned-integer byte element i in VRB.<br />

Byte element i in VRT is set to all 1s if<br />

unsigned-integer byte element i in VRA is greater<br />

than to unsigned-integer byte element i in VRB,<br />

and is set to all 0s otherwise.<br />

Special Registers Altered:<br />

CR6<br />

(if Rc=1)<br />

Vector Compare Greater Than Unsigned<br />

Halfword<br />

VC-form<br />

vcmpgtuh VRT,VRA,VRB ( Rc=0 )<br />

vcmpgtuh. VRT,VRA,VRB ( Rc=1 )<br />

4 VRT VRA VRB Rc 582<br />

0 6 11 16 21 22 31<br />

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

VRT i:i+15 ((VRA) i:i+15 > ui (VRB) i:i+15 ) ? 16 1 : 16 0<br />

if Rc=1 then do<br />

t (VRT= 128 1)<br />

f (VRT= 128 0)<br />

CR6 t || 0b0 || f || 0b0<br />

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

Unsigned-integer halfword element i in VRA is<br />

compared to unsigned-integer halfword element i<br />

in VRB. Halfword element i in VRT is set to all 1s if<br />

unsigned-integer halfword element i in VRA is<br />

greater than to unsigned-integer halfword element<br />

i in VRB, and is set to all 0s otherwise.<br />

Special Registers Altered:<br />

CR6<br />

(if Rc=1)<br />

Vector Compare Greater Than Unsigned<br />

Word<br />

VC-form<br />

vcmpgtuw VRT,VRA,VRB ( Rc=0 )<br />

vcmpgtuw. VRT,VRA,VRB ( Rc=1 )<br />

4 VRT VRA VRB Rc 646<br />

0 6 11 16 21 22 31<br />

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

VRT i:i+31 ((VRA) i:i+31 > ui (VRB) i:i+31 ) ? 32 1 : 32 0<br />

if Rc=1 then do<br />

t (VRT= 128 1)<br />

f (VRT= 128 0)<br />

CR6 t || 0b0 || f || 0b0<br />

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

Unsigned-integer word element i in VRA is compared<br />

to unsigned-integer word element i in VRB.<br />

Word element i in VRT is set to all 1s if<br />

unsigned-integer word element i in VRA is greater<br />

than to unsigned-integer word element i in VRB,<br />

and is set to all 0s otherwise.<br />

Special Registers Altered:<br />

CR6<br />

(if Rc=1)<br />

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

177

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

Saved successfully!

Ooh no, something went wrong!