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

V{.} {,} , Encoded as Q = 1<br />

V{.} {,} , Encoded as Q = 0<br />

where:<br />

The operation. It must be one of:<br />

Instruction Details<br />

BIF Bitwise Insert if False, encoded as op = 0b11. Inserts each bit from Vn<br />

into Vd if the corresponding bit of Vm is 0, otherwise leaves the Vd bit<br />

unchanged.<br />

BIT Bitwise Insert if True, encoded as op = 0b10. Inserts each bit from Vn<br />

into Vd if the corresponding bit of Vm is 1, otherwise leaves the Vd bit<br />

unchanged.<br />

BSL Bitwise Select, encoded as op = 0b01. Selects each bit from Vn into Vd<br />

if the corresponding bit of Vd is 1, otherwise selects the bit from Vm.<br />

See St<strong>and</strong>ard assembler syntax fields on page A8-7. An <strong>ARM</strong> VBIF, VBIT, or VBSL<br />

instruction must be unconditional.<br />

An optional data type. It is ignored by assemblers, <strong>and</strong> does not affect the encoding.<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 />

Operation<br />

enumeration VBitOps {VBitOps_VBIF, VBitOps_VBIT, VBitOps_VBSL};<br />

if ConditionPassed() then<br />

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

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

case operation of<br />

when VBitOps_VBIF D[d+r] = (D[d+r] AND D[m+r]) OR (D[n+r] AND NOT(D[m+r]);<br />

when VBitOps_VBIT D[d+r] = (D[n+r] AND D[m+r]) OR (D[d+r] AND NOT(D[m+r]);<br />

when VBitOps_VBSL D[d+r] = (D[n+r] AND D[d+r]) OR (D[m+r] AND NOT(D[d+r]);<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-551

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

Saved successfully!

Ooh no, something went wrong!