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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Vector Compare Greater Than Unsigned<br />

EVX-form<br />

Vector Compare Less Than Signed<br />

EVX-form<br />

evcmpgtu<br />

BF,RA,RB<br />

evcmplts<br />

BF,RA,RB<br />

4 BF // RA RB 560<br />

0 6 9 11 16 21 31<br />

4 BF // RA RB 563<br />

0 6 9 11 16 21 31<br />

ah (RA) 0:31<br />

al (RA) 32:63<br />

bh (RB) 0:31<br />

bl (RB) 32:63<br />

if (ah > u bh) then ch 1<br />

else ch 0<br />

if (al > u bl) then cl 1<br />

else cl 0<br />

CR 4×BF+32:4×BF+35 ch || cl || (ch | cl) || (ch & cl)<br />

The most significant bit in BF is set if the high-order element<br />

of RA is greater than the high-order element of<br />

RB; it is cleared otherwise. The next bit in BF is set if<br />

the low-order element of RA is greater than the<br />

low-order element of RB and cleared otherwise. The<br />

last two bits of BF are set to the OR and AND of the<br />

result of the compare of the high and low elements.<br />

Special Registers Altered:<br />

CR field BF<br />

ah (RA) 0:31<br />

al (RA) 32:63<br />

bh (RB) 0:31<br />

bl (RB) 32:63<br />

if (ah < bh) then ch 1<br />

else ch 0<br />

if (al < bl) then cl 1<br />

else cl 0<br />

CR 4×BF+32:4×BF+35 ch || cl || (ch | cl) || (ch & cl)<br />

The most significant bit in BF is set if the high-order element<br />

of RA is less than the high-order element of RB; it<br />

is cleared otherwise. The next bit in BF is set if the<br />

low-order element of RA is less than the low-order element<br />

of RB and cleared otherwise. The last two bits of<br />

BF are set to the OR and AND of the result of the compare<br />

of the high and low elements.<br />

Special Registers Altered:<br />

CR field BF<br />

Vector Compare Less Than Unsigned<br />

EVX-form<br />

evcmpltu<br />

BF,RA,RB<br />

4 BF // RA RB 562<br />

0 6 9 11 16 21 31<br />

ah (RA) 0:31<br />

al (RA) 32:63<br />

bh (RB) 0:31<br />

bl (RB) 32:63<br />

if (ah < u bh) then ch 1<br />

else ch 0<br />

if (al < u bl) then cl 1<br />

else cl 0<br />

CR 4×BF+32:4×BF+35 ch || cl || (ch | cl) || (ch & cl)<br />

The most significant bit in BF is set if the high-order element<br />

of RA is less than the high-order element of RB; it<br />

is cleared otherwise. The next bit in BF is set if the<br />

low-order element of RA is less than the low-order element<br />

of RB and cleared otherwise. The last two bits of<br />

BF are set to the OR and AND of the result of the compare<br />

of the high and low elements.<br />

Special Registers Altered:<br />

CR field BF<br />

Chapter 6. Signal Processing Engine (SPE)<br />

205

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

Saved successfully!

Ooh no, something went wrong!