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 Multiply Word Low Signed,<br />

Modulo, Integer and Accumulate into<br />

Words<br />

EVX-form<br />

evmwlsmiaaw RT,RA,RB<br />

4 RT RA RB 1353<br />

0 6 11 16 21 31<br />

Vector Multiply Word Low Signed,<br />

Modulo, Integer and Accumulate Negative<br />

in Words<br />

EVX-form<br />

evmwlsmianw RT,RA,RB<br />

4 RT RA RB 1481<br />

0 6 11 16 21 31<br />

temp 0:63 (RA) 0:31 × si (RB) 0:31<br />

RT 0:31 (ACC) 0:31 + temp 32:63<br />

temp 0:63 (RA) 32:63 × si (RB) 32:63<br />

RT 32:63 (ACC) 32:63 + temp 32:63<br />

ACC 0:63 (RT) 0:63<br />

For each word element in the accumulator, the corresponding<br />

word signed-integer elements in RA and RB<br />

are multiplied. The least significant 32 bits of each<br />

intermediate product are added to the contents of the<br />

corresponding accumulator words, and the result is<br />

placed in RT and the accumulator.<br />

Special Registers Altered:<br />

ACC<br />

temp 0:63 (RA) 0:31 × si (RB) 0:31<br />

RT 0:31 (ACC) 0:31 - temp 32:63<br />

temp 0:63 (RA) 32:63 × si (RB) 32:63<br />

RT 32:63 (ACC) 32:63 - temp 32:63<br />

ACC 0:63 (RT) 0:63<br />

For each word element in the accumulator, the corresponding<br />

word elements in RA and RB are multiplied.<br />

The least significant 32 bits of each intermediate product<br />

are subtracted from the contents of the corresponding<br />

accumulator words and the result is placed in RT<br />

and the accumulator.<br />

Special Registers Altered:<br />

ACC<br />

Vector Multiply Word Low Signed,<br />

Saturate, Integer and Accumulate into<br />

Words<br />

EVX-form<br />

evmwlssiaaw RT,RA,RB<br />

4 RT RA RB 1345<br />

0 6 11 16 21 31<br />

Vector Multiply Word Low Signed,<br />

Saturate, Integer and Accumulate<br />

Negative in Words<br />

EVX-form<br />

evmwlssianw RT,RA,RB<br />

4 RT RA RB 1473<br />

0 6 11 16 21 31<br />

temp 0:63 (RA) 0:31 × si (RB) 0:31<br />

temp 0:63 EXTS((ACC) 0:31 ) + EXTS(temp 32:63 )<br />

ovh (temp 31 ⊕ temp 32 )<br />

RT 0:31 SATURATE(ovh, temp 31 , 0x8000_0000,<br />

0x7FFF_FFFF, temp 32:63 )<br />

temp 0:63 (RA) 32:63 × si (RB) 32:63<br />

temp 0:63 EXTS((ACC) 32:63 ) + EXTS(temp 32:63 )<br />

ovl (temp 31 ⊕ temp 32 )<br />

RT 32:63 SATURATE(ovl, temp 31 , 0x8000_0000,<br />

0x7FFF_FFFF, temp 32:63 )<br />

ACC 0:63 (RT) 0:63<br />

SPEFSCR OVH ovh<br />

SPEFSCR OV ovl<br />

SPEFSCR SOVH SPEFSCR SOVH | ovh<br />

SPEFSCR SOV SPEFSCR SOV | ovl<br />

The corresponding word signed-integer elements in RA<br />

and RB are multiplied producing a 64-bit product. The<br />

least significant 32 bits of each product are then added<br />

to the corresponding word in the accumulator saturating<br />

if overflow occurs, and the result is placed in RT<br />

and the accumulator.<br />

Special Registers Altered:<br />

ACC, OV, OVH, SOV, SOVH<br />

temp 0:63 (RA) 0:31 × si (RB) 0:31<br />

temp 0:63 EXTS((ACC) 0:31 ) - EXTS(temp 32:63 )<br />

ovh (temp 31 ⊕ temp 32 )<br />

RT 0:31 SATURATE(ovh, temp 31 , 0x8000_0000,<br />

0x7FFF_FFFF, temp 32:63 )<br />

temp 0:63 (RA) 32:63 × si (RB) 32:63<br />

temp 0:63 EXTS((ACC) 32:63 ) - EXTS(temp 32:63 )<br />

ovl (temp 31 ⊕ temp 32 )<br />

RT 32:63 SATURATE(ovl, temp 31 , 0x8000_0000,<br />

0x7FFF_FFFF, temp 32:63 )<br />

ACC 0:63 (RT) 0:63<br />

SPEFSCR OVH ovh<br />

SPEFSCR OV ovl<br />

SPEFSCR SOVH SPEFSCR SOVH | ovh<br />

SPEFSCR SOV SPEFSCR SOV | ovl<br />

The corresponding word signed-integer elements in RA<br />

and RB are multiplied producing a 64-bit product. The<br />

least significant 32 bits of each product are then subtracted<br />

from the corresponding word in the accumulator<br />

saturating if overflow occurs, and the result is placed in<br />

RT and the accumulator.<br />

Special Registers Altered:<br />

ACC, OV, OVH, SOV, SOVH<br />

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

233

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

Saved successfully!

Ooh no, something went wrong!