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 Rotate Left Word Immediate<br />

EVX-form<br />

evrlwi<br />

RT,RA,UI<br />

4 RT RA UI 554<br />

0 6 11 16 21 31<br />

n UI<br />

RT 0:31 ROTL((RA) 0:31 , n)<br />

RT 32:63 ROTL((RA) 32:63 , n)<br />

Both the high and low elements of RA are rotated left<br />

by an amount specified by UI.<br />

Special Registers Altered:<br />

None<br />

Vector Round Word<br />

evrndw<br />

RT,RA<br />

4 RT RA /// 524<br />

RT 0:31 ((RA) 0:31 +0x00008000) & 0xFFFF0000<br />

RT 32:63 ((RA) 32:63 +0x00008000) & 0xFFFF0000<br />

EVX-form<br />

0 6 11 16 21 31<br />

The 32-bit elements of RA are rounded into 16 bits. The<br />

result is placed in RT. The resulting 16 bits are placed<br />

in the most significant 16 bits of each element of RT,<br />

zeroing out the low-order 16 bits of each element.<br />

Special Registers Altered:<br />

None<br />

Vector Select<br />

EVS-form<br />

evsel<br />

RT,RA,RB,BFA<br />

4 RT RA RB 79 BFA<br />

0 6 11 16 21 29 31<br />

ch CR BFA×4<br />

cl CR BFA×4+1<br />

if (ch = 1) then RT 0:31 (RA) 0:31<br />

else RT 0:31 (RB) 0:31<br />

if (cl = 1) then RT 32:63 (RA) 32:63<br />

else RT 32:63 (RB) 32:63<br />

If the most significant bit in the BFA field of CR is set to<br />

1, the high-order element of RA is placed in the<br />

high-order element of RT; otherwise, the high-order element<br />

of RB is placed into the high-order element of RT.<br />

If the next most significant bit in the BFA field of CR is<br />

set to 1, the low-order element of RA is placed in the<br />

low-order element of RT, otherwise, the low-order element<br />

of RB is placed into the low-order element of RT.<br />

Special Registers Altered:<br />

None<br />

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

241

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

Saved successfully!

Ooh no, something went wrong!