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..F64 , ,# op =1, sf =1<br />

VCVT..F32 , , # op =1, sf =0<br />

VCVT.F64. , , # op =0, sf =1<br />

VCVT.F32. , , # op =0, sf =0<br />

where:<br />

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

The data type for the fixed-point number. It must be one of:<br />

S16 encoded as U = 0, sx = 0<br />

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

S32 encoded as U = 0, sx = 1<br />

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

The destination <strong>and</strong> oper<strong>and</strong> register, for a double-precision oper<strong>and</strong>.<br />

The destination <strong>and</strong> oper<strong>and</strong> register, for a single-precision oper<strong>and</strong>.<br />

The number of fraction bits in the fixed-point number:<br />

Operation<br />

Instruction Details<br />

If is S16 or U16, must be in the range 0-16. (16 - ) is encoded in<br />

[imm4,i]<br />

I f is S32 or U32, must be in the range 1-32. (32 - ) is encoded in<br />

[imm4,i].<br />

if ConditionPassed() then<br />

EncodingSpecificOperations(); CheckVFPEnabled(TRUE);<br />

if to_fixed then<br />

if dp_operation then<br />

result = FPToFixed(D[d], size, frac_bits, unsigned, round_zero, TRUE);<br />

D[d] = if unsigned then ZeroExtend(result, 64) else SignExtend(result, 64);<br />

else<br />

result = FPToFixed(S[m], size, frac_bits, unsigned, round_zero, TRUE);<br />

S[d] = if unsigned then ZeroExtend(result, 32) else SignExtend(result, 32);<br />

else<br />

if dp_operation then<br />

D[d] = FixedToFP(D[d], 64, frac_bits, unsigned, round_nearest, TRUE);<br />

else<br />

S[d] = FixedToFP(S[d], 32, frac_bits, unsigned, round_nearest, TRUE);<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-583

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

Saved successfully!

Ooh no, something went wrong!