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

VCVT{R}.S32.F64 , opc2 = ’101’, sz = 1<br />

VCVT{R}.S32.F32 , opc2 = ’101’, sz = 0<br />

VCVT{R}.U32.F64 , opc2 = ’100’, sz = 1<br />

VCVT{R}.U32.F32 , opc2 = ’100’, sz = 0<br />

VCVT.F64. , opc2 = ’000’, sz = 1<br />

VCVT.F32. , opc2 = ’000’, sz = 0<br />

where:<br />

Instruction Details<br />

R If R is specified, the operation uses the rounding mode specified by the FPSCR. Encoded as<br />

op = 0.<br />

If R is omitted. the operation uses the Round towards Zero rounding mode. For syntaxes in<br />

which R is optional, op is encoded as 1 if R is omitted.<br />

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

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

S32 encoded as op = 1<br />

U32 encoded as op = 0.<br />

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

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

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

Operation<br />

if ConditionPassed() then<br />

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

if to_integer then<br />

if dp_operation then<br />

S[d] = FPToFixed(D[m], 32, 0, unsigned, round_zero, TRUE);<br />

else<br />

S[d] = FPToFixed(S[m], 32, 0, unsigned, round_zero, TRUE);<br />

else<br />

if dp_operation then<br />

D[d] = FixedToFP(S[m], 64, 0, unsigned, round_fpscr, TRUE);<br />

else<br />

S[d] = FixedToFP(S[m], 32, 0, unsigned, round_fpscr, 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-579

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

Saved successfully!

Ooh no, something went wrong!