05.02.2013 Views

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Assembler syntax<br />

where:<br />

Must be either MLA (op = 0) or MLS (op = 1).<br />

Instruction Details<br />

V. , , Encoding T1 / A1, Q = 1<br />

V. , , Encoding T1 / A1, Q = 0<br />

VL. , , Encoding T2 / A2<br />

See St<strong>and</strong>ard assembler syntax fields on page A8-7. An <strong>ARM</strong> Advanced SIMD<br />

VMLA, VMLAL, VMLS, or VMLSL instruction must be unconditional.<br />

The data type for the elements of the oper<strong>and</strong>s. It must be one of:<br />

S Optional in encoding T1 / A1. U = 0 in encoding T2 / A2.<br />

U Optional in encoding T1 / A1. U = 1 in encoding T2 / A2.<br />

I Available only in encoding T1 / A1.<br />

The data size for the elements of the oper<strong>and</strong>s. It must be one of:<br />

8 encoded as size = 0b00<br />

16 encoded as size = 0b01<br />

32 encoded as size = 0b10.<br />

, , The destination vector <strong>and</strong> the oper<strong>and</strong> vectors, for a quadword operation.<br />

, , The destination vector <strong>and</strong> the oper<strong>and</strong> vectors, for a doubleword operation.<br />

, , The destination vector <strong>and</strong> the oper<strong>and</strong> vectors, for a long operation.<br />

Operation<br />

if ConditionPassed() then<br />

EncodingSpecificOperations(); CheckAdvSIMDEnabled();<br />

for r = 0 to regs-1<br />

for e = 0 to elements-1<br />

product = Int(Elem[D[n+r],e,esize],unsigned) * Int(Elem[D[m+r],e,esize],unsigned);<br />

addend = if add then product else -product;<br />

if long_destination then<br />

Elem[Q[d>>1],e,2*esize] = Elem[Q[d>>1],e,2*esize] + addend;<br />

else<br />

Elem[D[d+r],e,esize] = Elem[D[d+r],e,esize] + addend;<br />

Exceptions<br />

Undefined Instruction.<br />

<strong>ARM</strong> DDI 0406B Copyright © 1996-1998, 2000, 2004-2008 <strong>ARM</strong> Limited. All rights reserved. A8-635

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

Saved successfully!

Ooh no, something went wrong!