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

VQSHR{U}N. , , #<br />

where:<br />

Instruction Details<br />

U If present, specifies that the results are unsigned, although the oper<strong>and</strong>s are signed.<br />

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

must be unconditional.<br />

The data type for the elements of the vectors. It must be one of:<br />

S encoded as:<br />

U = 0, op = 1, if U is absent<br />

U = 1, op = 0, if U is present<br />

U encoded as U = 1, op = 1. Not available for VQSHRUN.<br />

The data size for the elements of the vectors. It must be one of:<br />

16 Encoded as imm6 = ’001’. (8 – ) is encoded in imm6.<br />

32 Encoded as imm6 = ’01’. (16 – ) is encoded in imm6.<br />

64 Encoded as imm6 = ’1’. (32 – ) is encoded in imm6.<br />

, The destination vector, <strong>and</strong> the oper<strong>and</strong> vector.<br />

The immediate value, in the range 1 to /2. See the description of for how <br />

is encoded.<br />

Operation<br />

if ConditionPassed() then<br />

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

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

oper<strong>and</strong> = Int(Elem[Q[m>>1],e,2*esize], src_unsigned);<br />

(result, sat) = SatQ(oper<strong>and</strong> >> shift_amount, esize, dest_unsigned);<br />

Elem[D[d],e,esize] = result;<br />

if sat then FPSCR.QC = ‘1’;<br />

Exceptions<br />

Undefined Instruction.<br />

Pseudo-instructions<br />

VQSHRN.I , , #0 is a synonym for VQMOVN.I , <br />

VQSHRUN.I , , #0 is a synonym for VQMOVUN.I , <br />

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

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

Saved successfully!

Ooh no, something went wrong!