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 Multiply-Sum Signed Halfword<br />

Modulo<br />

VA-form<br />

Vector Multiply-Sum Signed Halfword<br />

Saturate<br />

VA-form<br />

vmsumshm VRT,VRA,VRB,VRC<br />

vmsumshs<br />

VRT,VRA,VRB,VRC<br />

4 VRT VRA VRB VRC 40<br />

0 6 11 16 21 26 31<br />

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

temp (VRC) i:i+31<br />

do j=0 to 31 by 16<br />

prod 0:31 (VRA) i+j:i+j+15 × si (VRB) i+j:i+j+15<br />

temp temp + int prod<br />

VRT i:i+31 temp<br />

For each word element in VRT the following operations<br />

are performed, in the order shown.<br />

- Each of the two signed-integer halfword elements<br />

contained in the corresponding word<br />

element of VRA is multiplied by the corresponding<br />

signed-integer halfword element in<br />

VRB, producing a signed-integer product.<br />

- The sum of these two signed-integer word<br />

products is added to the signed-integer word<br />

element in VRC.<br />

- The signed-integer word result is placed into<br />

the corresponding word element of VRT.<br />

Special Registers Altered:<br />

None<br />

4 VRT VRA VRB VRC 41<br />

0 6 11 16 21 26 31<br />

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

temp EXTS((VRC) i:i+31 )<br />

do j=0 to 31 by 16<br />

prod EXTS((VRA) i+j:i+j+15 )<br />

× si EXTS((VRB) i+j:i+j+15 )<br />

temp temp + int prod<br />

VRT i:i+31 Clamp(temp, -2 31 , 2 31 -1)<br />

For each word element in VRT the following operations<br />

are performed, in the order shown.<br />

- Each of the two signed-integer halfword elements<br />

contained in the corresponding word<br />

element of VRA is multiplied by the corresponding<br />

signed-integer halfword element in<br />

VRB, producing a signed-integer product.<br />

- The sum of these two signed-integer word<br />

products is added to the signed-integer word<br />

element in VRC.<br />

- If the intermediate result is greater than 2 31 -1<br />

the result saturates to 2 31 -1 and if it is less<br />

than -2 31 it saturates to -2 31 .<br />

- The result is placed into the corresponding<br />

word element of VRT.<br />

Special Registers Altered:<br />

SAT<br />

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

165

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

Saved successfully!

Ooh no, something went wrong!