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 Divide Word Unsigned<br />

EVX-form<br />

Vector Equivalent<br />

EVX-form<br />

evdivwu<br />

RT,RA,RB<br />

eveqv<br />

RT,RA,RB<br />

4 RT RA RB 1223<br />

0 6 11 16 21 31<br />

4 RT RA RB 537<br />

0 6 11 16 21 31<br />

ddh (RA) 0:31<br />

ddl (RA) 32:63<br />

dvh (RB) 0:31<br />

dvl (RB) 32:63<br />

RT 0:31 ddh ÷ dvh<br />

RT 32:63 ddl ÷ dvl<br />

ovh 0<br />

ovl 0<br />

if (dvh = 0) then<br />

RT 0:31 0xFFFFFFFF<br />

ovh 1<br />

if (dvl = 0) then<br />

RT 32:63 0xFFFFFFFF<br />

ovl 1<br />

SPEFSCR OVH ovh<br />

SPEFSCR OV ovl<br />

SPEFSCR SOVH SPEFSCR SOVH | ovh<br />

SPEFSCR SOV SPEFSCR SOV | ovl<br />

The two dividends are the two elements of the contents<br />

of RA. The two divisors are the two elements of the<br />

contents of RB. Two 32-bit quotients are formed as a<br />

result of the division on each of the high and low elements<br />

and the quotients are placed into RT. Remainders<br />

are not supplied. Operands and quotients are<br />

interpreted as unsigned integers.<br />

Special Registers Altered:<br />

OV, OVH, SOV, SOVH<br />

Programming Note<br />

Note that any overflow indication is always set as a<br />

side effect of this instruction. No form is defined<br />

that disables the setting of the overflow bits. In<br />

case of overflow, a saturated value is delivered into<br />

the destination register.<br />

RT 0:31 (RA) 0:31 ≡ (RB) 0:31<br />

RT 32:63 (RA) 32:63 ≡ (RB) 32:63<br />

The corresponding elements of RA and RB are XORed<br />

bitwise, and the complemented results are placed in<br />

RT.<br />

Special Registers Altered:<br />

None<br />

Vector Extend Sign Byte<br />

evextsb<br />

RT,RA<br />

RT 0:31 EXTS((RA) 24:31 )<br />

RT 32:63 EXTS((RA) 56:63 )<br />

EVX-form<br />

The signs of the low-order byte in each of the elements<br />

in RA are extended, and the results are placed in RT.<br />

Special Registers Altered:<br />

None<br />

Vector Extend Sign Halfword<br />

evextsh<br />

4 RT RA /// 522<br />

0 6 11 16 21 31<br />

RT,RA<br />

4 RT RA /// 523<br />

EVX-form<br />

0 6 11 16 21 31<br />

RT 0:31 EXTS((RA) 16:31 )<br />

RT 32:63 EXTS((RA) 48:63 )<br />

The signs of the odd halfwords in each of the elements<br />

in RA are extended, and the results are placed in RT.<br />

Special Registers Altered:<br />

None<br />

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

207

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

Saved successfully!

Ooh no, something went wrong!