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

VCVT.. , , # Encoded as Q = 1<br />

VCVT.. , , # Encoded as Q = 0<br />

where:<br />

Instruction Details<br />

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

instruction must be unconditional.<br />

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

.S32.F32 encoded as op = 1, U = 0<br />

.U32.F32 encoded as op = 1, U = 1<br />

.F32.S32 encoded as op = 0, U = 0<br />

.F32.U32 encoded as op = 0, U = 1.<br />

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

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

The number of fraction bits in the fixed point number, in the range 1 to 32:<br />

Operation<br />

(64 - ) is encoded in imm6.<br />

An assembler can permit an value of 0. This is encoded as floating-point to integer<br />

or integer to floating-point instruction, see VCVT (between floating-point <strong>and</strong> integer,<br />

Advanced SIMD) on page A8-576.<br />

if ConditionPassed() then<br />

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

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

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

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

if to_fixed then<br />

result = FPToFixed(op, esize, frac_bits, unsigned, round_zero, FALSE);<br />

else<br />

result = FixedToFP(op, esize, frac_bits, unsigned, round_nearest, FALSE);<br />

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

Exceptions<br />

Undefined Instruction.<br />

Floating-point exceptions: Input Denormal, Invalid Operation, <strong>and</strong> Inexact.<br />

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

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

Saved successfully!

Ooh no, something went wrong!