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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Assembler syntax<br />

Instruction Details<br />

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

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

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

where:<br />

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

instruction must be unconditional.<br />

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

S8 encoded as size = 0b00, U = 0<br />

S16 encoded as size = 0b01, U = 0<br />

S32 encoded as size = 0b10, U = 0<br />

U8 encoded as size = 0b00, U = 1<br />

U16 encoded as size = 0b01, U = 1<br />

U32 encoded as size = 0b10, U = 1.<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 />

op1 = Elem[D[n+r],e,esize];<br />

op2 = Elem[D[m+r],e,esize];<br />

absdiff = Abs(Int(op1,unsigned) - Int(op2,unsigned));<br />

if long_destination then<br />

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

else<br />

Elem[D[d+r],e,esize] = absdiff;<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-529

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

Saved successfully!

Ooh no, something went wrong!