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 />

E.4 Vector Unaligned Storage Operations [Category: Vector]<br />

E.4.1 Loading a Unaligned Quadword<br />

Using Permute from<br />

Big-Endian Storage<br />

The following sequence of instructions copies the<br />

unaligned quadword storage operand into VRT.<br />

# Assumptions:<br />

# Rb != 0 and contents of Rb = 0xB<br />

lvx Vhi,0,Rb # load MSQ<br />

lvsl Vp,0,Rb # set permute control vector<br />

addi Rb,Rb,16 # address of LSQ<br />

lvx Vlo,0,Rb # load LSQ<br />

perm Vt,Vhi,Vlo,Vp # align the data<br />

Appendix E. Programming Examples<br />

331

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

Saved successfully!

Ooh no, something went wrong!