<?xml version="1.0" ?><?xml-stylesheet type="text/xsl" encoding="UTF-8" href="iform.xsl" version="1.0"?><!DOCTYPE instructionsection  PUBLIC '-//ARM//DTD instructionsection //EN'  'iform-p.dtd'><!-- Copyright (c) 2010-2026 Arm Limited or its affiliates. All rights reserved. --><!-- This document is Non-Confidential. This document may only be used and distributed in accordance with the terms of the agreement entered into by Arm and the party that Arm delivered this document to. --><instructionsection id="VCVT_xv" title="VCVT (between floating-point and fixed-point, floating-point) -- AArch32" type="instruction">
  <docvars>
    <docvar key="instr-class" value="fpsimd"/>
    <docvar key="mnemonic" value="VCVT"/>
  </docvars>
  <heading>VCVT (between floating-point and fixed-point, floating-point)</heading>
  <desc>
    <brief>
      <para>Convert between floating-point and fixed-point</para>
    </brief>
    <authored>
      <para>Convert between floating-point and fixed-point converts a value in a
register from floating-point to fixed-point, or from fixed-point to
floating-point. Software can specify the fixed-point value as either
signed or unsigned.</para>
      <para>The fixed-point value can be 16-bit or 32-bit. Conversions from
fixed-point values take their operand from the low-order bits of the
source register and ignore any remaining bits. Signed conversions to
fixed-point values sign-extend the result value to the destination
register width. Unsigned conversions to fixed-point values
zero-extend the result value to the destination register width.</para>
      <para>The floating-point to fixed-point operation uses the Round towards
Zero rounding mode. The fixed-point to floating-point operation uses
the Round to Nearest rounding mode.</para>
      <para>Depending on settings in the <xref linkend="ARMARM_AArch32.cpacr">CPACR</xref>,
<xref linkend="ARMARM_AArch32.nsacr">NSACR</xref>,
<xref linkend="ARMARM_AArch32.hcptr">HCPTR</xref>, and
<xref linkend="ARMARM_AArch32.fpexc">FPEXC</xref> registers, and the Security
state and PE mode in which the instruction is executed, an attempt to
execute the instruction might be <arm-defined-word>UNDEFINED</arm-defined-word>, or
trapped to Hyp mode.
For more information see <xref linkend="ARMARM_CIHIDDFF">Enabling Advanced
SIMD and floating-point support</xref>.</para>
    </authored>
    <encodingnotes>
      <para>For more information about the <arm-defined-word>CONSTRAINED UNPREDICTABLE</arm-defined-word> behavior of this instruction, see <xref linkend="ARMARM_CJAEGDJC">Architectural Constraints on UNPREDICTABLE behaviors</xref>, and particularly <xref linkend="ARMARM_CEGDIADD">VCVT (between floating-point and fixed-point)</xref>.</para>
    </encodingnotes>
  </desc>
  <alias_list howmany="0"/>
  <classes>
    <classesintro count="2">
      <txt>It has encodings from the following instruction sets:</txt>
      <txt> A32 (</txt>
      <a href="#iclass_a1">A1</a>
      <txt>)</txt>
      <txt> and </txt>
      <txt> T32 (</txt>
      <a href="#iclass_t1">T1</a>
      <txt>)</txt>
      <txt>.</txt>
    </classesintro>
    <iclass name="A1" oneof="2" id="iclass_a1" no_encodings="6" isa="A32">
      <docvars>
        <docvar key="armarmheading" value="A1"/>
        <docvar key="instr-class" value="fpsimd"/>
        <docvar key="isa" value="A32"/>
        <docvar key="mnemonic" value="VCVT"/>
      </docvars>
      <iclassintro count="6"/>
      <regdiagram form="32" psname="A32.cops_as.fpdp.fpdp2reg.VCVT_toxv_A1_H" tworows="1">
        <box hibit="31" width="4" name="cond" usename="1" settings="4" constraint="!= 1111">
          <c colspan="4">!= 1111</c>
        </box>
        <box hibit="27" width="5" settings="5">
          <c>1</c>
          <c>1</c>
          <c>1</c>
          <c>0</c>
          <c>1</c>
        </box>
        <box hibit="22" width="1" name="D" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="21" width="2" settings="2">
          <c>1</c>
          <c>1</c>
        </box>
        <box hibit="19" name="o1" usename="1" settings="1" psbits="x">
          <c>1</c>
        </box>
        <box hibit="18" width="1" name="op" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="17" width="1" settings="1">
          <c>1</c>
        </box>
        <box hibit="16" width="1" name="U" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="15" width="4" name="Vd" usename="1">
          <c colspan="4"/>
        </box>
        <box hibit="11" width="2" settings="2">
          <c>1</c>
          <c>0</c>
        </box>
        <box hibit="9" width="2" name="sf" usename="1">
          <c colspan="2"/>
        </box>
        <box hibit="7" width="1" name="sx" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="6" width="1" settings="1">
          <c>1</c>
        </box>
        <box hibit="5" width="1" name="i" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="4" width="1" settings="1">
          <c>0</c>
        </box>
        <box hibit="3" width="4" name="imm4" usename="1">
          <c colspan="4"/>
        </box>
      </regdiagram>
      <encoding name="VCVT_toxv_A1_H" oneofinclass="6" oneof="12" label="Half-precision scalar" bitdiffs="op == 0 &amp;&amp; sf == 01">
        <docvars>
          <docvar key="armarmheading" value="A1"/>
          <docvar key="fpdatasize" value="halfprec"/>
          <docvar key="instr-class" value="fpsimd"/>
          <docvar key="isa" value="A32"/>
          <docvar key="mnemonic-fpdatasize" value="VCVT-halfprec"/>
          <docvar key="mnemonic" value="VCVT"/>
        </docvars>
        <arch_variants>
          <arch_variant feature="FEAT_FP16" name="v8Ap2"/>
        </arch_variants>
        <box hibit="18" width="1" name="op">
          <c>0</c>
        </box>
        <box hibit="9" width="2" name="sf">
          <c>0</c>
          <c>1</c>
        </box>
        <asmtemplate><text>VCVT{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="c__5">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}.F16.</text><a hover="Is the data type for the fixed-point number, " link="dt_option__2">&lt;dt&gt;</a><text>  </text><a hover="Is the 32-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;Vd:D&quot; field." link="Vd_D__2">&lt;Sdm&gt;</a><text>, </text><a hover="Is the 32-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;Vd:D&quot; field." link="Vd_D__2">&lt;Sdm&gt;</a><text>, #</text><a hover="The number of fraction bits in the fixed-point number:



  * If &lt;dt&gt; is S16 or U16, &lt;fbits&gt; must be in the range 0-16. (16 - &lt;fbits&gt;) is encoded in [imm4, i]
  * If &lt;dt&gt; is S32 or U32, &lt;fbits&gt; must be in the range 1-32. (32 - &lt;fbits&gt;) is encoded in [imm4, i]." link="fbits__5">&lt;fbits&gt;</a></asmtemplate>
      </encoding>
      <encoding name="VCVT_xv_A1_H" oneofinclass="6" oneof="12" label="Half-precision scalar" bitdiffs="op == 1 &amp;&amp; sf == 01">
        <docvars>
          <docvar key="armarmheading" value="A1"/>
          <docvar key="fpdatasize" value="halfprec"/>
          <docvar key="instr-class" value="fpsimd"/>
          <docvar key="isa" value="A32"/>
          <docvar key="mnemonic-fpdatasize" value="VCVT-halfprec"/>
          <docvar key="mnemonic" value="VCVT"/>
        </docvars>
        <arch_variants>
          <arch_variant feature="FEAT_FP16" name="v8Ap2"/>
        </arch_variants>
        <box hibit="18" width="1" name="op">
          <c>1</c>
        </box>
        <box hibit="9" width="2" name="sf">
          <c>0</c>
          <c>1</c>
        </box>
        <asmtemplate><text>VCVT{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="c__5">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}.</text><a hover="Is the data type for the fixed-point number, " link="dt_option__2">&lt;dt&gt;</a><text>.F16  </text><a hover="Is the 32-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;Vd:D&quot; field." link="Vd_D__2">&lt;Sdm&gt;</a><text>, </text><a hover="Is the 32-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;Vd:D&quot; field." link="Vd_D__2">&lt;Sdm&gt;</a><text>, #</text><a hover="The number of fraction bits in the fixed-point number:



  * If &lt;dt&gt; is S16 or U16, &lt;fbits&gt; must be in the range 0-16. (16 - &lt;fbits&gt;) is encoded in [imm4, i]
  * If &lt;dt&gt; is S32 or U32, &lt;fbits&gt; must be in the range 1-32. (32 - &lt;fbits&gt;) is encoded in [imm4, i]." link="fbits__5">&lt;fbits&gt;</a></asmtemplate>
      </encoding>
      <encoding name="VCVT_toxv_A1_S" oneofinclass="6" oneof="12" label="Single-precision scalar" bitdiffs="op == 0 &amp;&amp; sf == 10">
        <docvars>
          <docvar key="armarmheading" value="A1"/>
          <docvar key="fpdatasize" value="singleprec"/>
          <docvar key="instr-class" value="fpsimd"/>
          <docvar key="isa" value="A32"/>
          <docvar key="mnemonic-fpdatasize" value="VCVT-singleprec"/>
          <docvar key="mnemonic" value="VCVT"/>
        </docvars>
        <box hibit="18" width="1" name="op">
          <c>0</c>
        </box>
        <box hibit="9" width="2" name="sf">
          <c>1</c>
          <c>0</c>
        </box>
        <asmtemplate><text>VCVT{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="c__5">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}.F32.</text><a hover="Is the data type for the fixed-point number, " link="dt_option__2">&lt;dt&gt;</a><text>  </text><a hover="Is the 32-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;Vd:D&quot; field." link="Vd_D__2">&lt;Sdm&gt;</a><text>, </text><a hover="Is the 32-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;Vd:D&quot; field." link="Vd_D__2">&lt;Sdm&gt;</a><text>, #</text><a hover="The number of fraction bits in the fixed-point number:



  * If &lt;dt&gt; is S16 or U16, &lt;fbits&gt; must be in the range 0-16. (16 - &lt;fbits&gt;) is encoded in [imm4, i]
  * If &lt;dt&gt; is S32 or U32, &lt;fbits&gt; must be in the range 1-32. (32 - &lt;fbits&gt;) is encoded in [imm4, i]." link="fbits__5">&lt;fbits&gt;</a></asmtemplate>
      </encoding>
      <encoding name="VCVT_xv_A1_S" oneofinclass="6" oneof="12" label="Single-precision scalar" bitdiffs="op == 1 &amp;&amp; sf == 10">
        <docvars>
          <docvar key="armarmheading" value="A1"/>
          <docvar key="fpdatasize" value="singleprec"/>
          <docvar key="instr-class" value="fpsimd"/>
          <docvar key="isa" value="A32"/>
          <docvar key="mnemonic-fpdatasize" value="VCVT-singleprec"/>
          <docvar key="mnemonic" value="VCVT"/>
        </docvars>
        <box hibit="18" width="1" name="op">
          <c>1</c>
        </box>
        <box hibit="9" width="2" name="sf">
          <c>1</c>
          <c>0</c>
        </box>
        <asmtemplate><text>VCVT{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="c__5">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}.</text><a hover="Is the data type for the fixed-point number, " link="dt_option__2">&lt;dt&gt;</a><text>.F32  </text><a hover="Is the 32-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;Vd:D&quot; field." link="Vd_D__2">&lt;Sdm&gt;</a><text>, </text><a hover="Is the 32-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;Vd:D&quot; field." link="Vd_D__2">&lt;Sdm&gt;</a><text>, #</text><a hover="The number of fraction bits in the fixed-point number:



  * If &lt;dt&gt; is S16 or U16, &lt;fbits&gt; must be in the range 0-16. (16 - &lt;fbits&gt;) is encoded in [imm4, i]
  * If &lt;dt&gt; is S32 or U32, &lt;fbits&gt; must be in the range 1-32. (32 - &lt;fbits&gt;) is encoded in [imm4, i]." link="fbits__5">&lt;fbits&gt;</a></asmtemplate>
      </encoding>
      <encoding name="VCVT_toxv_A1_D" oneofinclass="6" oneof="12" label="Double-precision scalar" bitdiffs="op == 0 &amp;&amp; sf == 11">
        <docvars>
          <docvar key="armarmheading" value="A1"/>
          <docvar key="fpdatasize" value="doubleprec"/>
          <docvar key="instr-class" value="fpsimd"/>
          <docvar key="isa" value="A32"/>
          <docvar key="mnemonic-fpdatasize" value="VCVT-doubleprec"/>
          <docvar key="mnemonic" value="VCVT"/>
        </docvars>
        <box hibit="18" width="1" name="op">
          <c>0</c>
        </box>
        <box hibit="9" width="2" name="sf">
          <c>1</c>
          <c>1</c>
        </box>
        <asmtemplate><text>VCVT{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="c__5">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}.F64.</text><a hover="Is the data type for the fixed-point number, " link="dt_option__2">&lt;dt&gt;</a><text>  </text><a hover="Is the 64-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;D:Vd&quot; field." link="D_Vd__2">&lt;Ddm&gt;</a><text>, </text><a hover="Is the 64-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;D:Vd&quot; field." link="D_Vd__2">&lt;Ddm&gt;</a><text>, #</text><a hover="The number of fraction bits in the fixed-point number:



  * If &lt;dt&gt; is S16 or U16, &lt;fbits&gt; must be in the range 0-16. (16 - &lt;fbits&gt;) is encoded in [imm4, i]
  * If &lt;dt&gt; is S32 or U32, &lt;fbits&gt; must be in the range 1-32. (32 - &lt;fbits&gt;) is encoded in [imm4, i]." link="fbits__5">&lt;fbits&gt;</a></asmtemplate>
      </encoding>
      <encoding name="VCVT_xv_A1_D" oneofinclass="6" oneof="12" label="Double-precision scalar" bitdiffs="op == 1 &amp;&amp; sf == 11">
        <docvars>
          <docvar key="armarmheading" value="A1"/>
          <docvar key="fpdatasize" value="doubleprec"/>
          <docvar key="instr-class" value="fpsimd"/>
          <docvar key="isa" value="A32"/>
          <docvar key="mnemonic-fpdatasize" value="VCVT-doubleprec"/>
          <docvar key="mnemonic" value="VCVT"/>
        </docvars>
        <box hibit="18" width="1" name="op">
          <c>1</c>
        </box>
        <box hibit="9" width="2" name="sf">
          <c>1</c>
          <c>1</c>
        </box>
        <asmtemplate><text>VCVT{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="c__5">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}.</text><a hover="Is the data type for the fixed-point number, " link="dt_option__2">&lt;dt&gt;</a><text>.F64  </text><a hover="Is the 64-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;D:Vd&quot; field." link="D_Vd__2">&lt;Ddm&gt;</a><text>, </text><a hover="Is the 64-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;D:Vd&quot; field." link="D_Vd__2">&lt;Ddm&gt;</a><text>, #</text><a hover="The number of fraction bits in the fixed-point number:



  * If &lt;dt&gt; is S16 or U16, &lt;fbits&gt; must be in the range 0-16. (16 - &lt;fbits&gt;) is encoded in [imm4, i]
  * If &lt;dt&gt; is S32 or U32, &lt;fbits&gt; must be in the range 1-32. (32 - &lt;fbits&gt;) is encoded in [imm4, i]." link="fbits__5">&lt;fbits&gt;</a></asmtemplate>
      </encoding>
      <ps_section howmany="1">
        <ps name="A32.cops_as.fpdp.fpdp2reg.VCVT_toxv_A1_H" sections="1" secttype="noheading">
          <pstext mayhavelinks="1" section="Decode" rep_section="decode">if sf == '00' || (sf == '01' &amp;&amp; !IsFeatureImplemented(FEAT_FP16)) then Undefined(); end;
if sf == '01' &amp;&amp; cond != '1110' then UnpredictableProcedure(); end;
let to_fixed : boolean = (op == '1');
let unsigned : boolean = (U == '1');
let size : integer{} = if sx == '0' then 16 else 32;
let frac_bits : integer = size - UInt(imm4::i);
let fp_size : integer = 8 &lt;&lt; UInt(sf);
let d : integer = if sf == '11' then UInt(D::Vd) else UInt(Vd::D);
if frac_bits &lt; 0 then UnpredictableProcedure(); end;</pstext></ps>
      </ps_section>
      <constrained_unpredictables encoding="A1" ps_block="Decode">
        <cu_case>
          <cu_cause>
            <pstext mayhavelinks="1">frac_bits &lt; 0</pstext></cu_cause>
          <cu_type constraint="Constraint_UNDEF"/>
          <cu_type constraint="Constraint_NOP"/>
          <cu_type constraint="Constraint_UNKNOWN"/>
        </cu_case>
      </constrained_unpredictables>
    </iclass>
    <iclass name="T1" oneof="2" id="iclass_t1" no_encodings="6" isa="T32">
      <docvars>
        <docvar key="armarmheading" value="T1"/>
        <docvar key="instr-class" value="fpsimd"/>
        <docvar key="isa" value="T32"/>
        <docvar key="mnemonic" value="VCVT"/>
      </docvars>
      <iclassintro count="6"/>
      <regdiagram form="16x2" psname="T32.w.cpaf.fpdp.fp_2r.VCVT_toxv_T1_H" tworows="1">
        <box hibit="31" width="9" settings="9">
          <c>1</c>
          <c>1</c>
          <c>1</c>
          <c>0</c>
          <c>1</c>
          <c>1</c>
          <c>1</c>
          <c>0</c>
          <c>1</c>
        </box>
        <box hibit="22" width="1" name="D" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="21" width="2" settings="2">
          <c>1</c>
          <c>1</c>
        </box>
        <box hibit="19" name="o1" usename="1" settings="1" psbits="x">
          <c>1</c>
        </box>
        <box hibit="18" width="1" name="op" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="17" width="1" settings="1">
          <c>1</c>
        </box>
        <box hibit="16" width="1" name="U" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="15" width="4" name="Vd" usename="1">
          <c colspan="4"/>
        </box>
        <box hibit="11" width="2" settings="2">
          <c>1</c>
          <c>0</c>
        </box>
        <box hibit="9" width="2" name="sf" usename="1">
          <c colspan="2"/>
        </box>
        <box hibit="7" width="1" name="sx" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="6" width="1" settings="1">
          <c>1</c>
        </box>
        <box hibit="5" width="1" name="i" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="4" width="1" settings="1">
          <c>0</c>
        </box>
        <box hibit="3" width="4" name="imm4" usename="1">
          <c colspan="4"/>
        </box>
      </regdiagram>
      <encoding name="VCVT_toxv_T1_H" oneofinclass="6" oneof="12" label="Half-precision scalar" bitdiffs="op == 0 &amp;&amp; sf == 01">
        <docvars>
          <docvar key="armarmheading" value="T1"/>
          <docvar key="fpdatasize" value="halfprec"/>
          <docvar key="instr-class" value="fpsimd"/>
          <docvar key="isa" value="T32"/>
          <docvar key="mnemonic-fpdatasize" value="VCVT-halfprec"/>
          <docvar key="mnemonic" value="VCVT"/>
        </docvars>
        <arch_variants>
          <arch_variant feature="FEAT_FP16" name="v8Ap2"/>
        </arch_variants>
        <box hibit="18" width="1" name="op">
          <c>0</c>
        </box>
        <box hibit="9" width="2" name="sf">
          <c>0</c>
          <c>1</c>
        </box>
        <asmtemplate><text>VCVT{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="c__5">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}.F16.</text><a hover="Is the data type for the fixed-point number, " link="dt_option__2">&lt;dt&gt;</a><text>  </text><a hover="Is the 32-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;Vd:D&quot; field." link="Vd_D__2">&lt;Sdm&gt;</a><text>, </text><a hover="Is the 32-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;Vd:D&quot; field." link="Vd_D__2">&lt;Sdm&gt;</a><text>, #</text><a hover="The number of fraction bits in the fixed-point number:



  * If &lt;dt&gt; is S16 or U16, &lt;fbits&gt; must be in the range 0-16. (16 - &lt;fbits&gt;) is encoded in [imm4, i]
  * If &lt;dt&gt; is S32 or U32, &lt;fbits&gt; must be in the range 1-32. (32 - &lt;fbits&gt;) is encoded in [imm4, i]." link="fbits__5">&lt;fbits&gt;</a></asmtemplate>
      </encoding>
      <encoding name="VCVT_xv_T1_H" oneofinclass="6" oneof="12" label="Half-precision scalar" bitdiffs="op == 1 &amp;&amp; sf == 01">
        <docvars>
          <docvar key="armarmheading" value="T1"/>
          <docvar key="fpdatasize" value="halfprec"/>
          <docvar key="instr-class" value="fpsimd"/>
          <docvar key="isa" value="T32"/>
          <docvar key="mnemonic-fpdatasize" value="VCVT-halfprec"/>
          <docvar key="mnemonic" value="VCVT"/>
        </docvars>
        <arch_variants>
          <arch_variant feature="FEAT_FP16" name="v8Ap2"/>
        </arch_variants>
        <box hibit="18" width="1" name="op">
          <c>1</c>
        </box>
        <box hibit="9" width="2" name="sf">
          <c>0</c>
          <c>1</c>
        </box>
        <asmtemplate><text>VCVT{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="c__5">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}.</text><a hover="Is the data type for the fixed-point number, " link="dt_option__2">&lt;dt&gt;</a><text>.F16  </text><a hover="Is the 32-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;Vd:D&quot; field." link="Vd_D__2">&lt;Sdm&gt;</a><text>, </text><a hover="Is the 32-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;Vd:D&quot; field." link="Vd_D__2">&lt;Sdm&gt;</a><text>, #</text><a hover="The number of fraction bits in the fixed-point number:



  * If &lt;dt&gt; is S16 or U16, &lt;fbits&gt; must be in the range 0-16. (16 - &lt;fbits&gt;) is encoded in [imm4, i]
  * If &lt;dt&gt; is S32 or U32, &lt;fbits&gt; must be in the range 1-32. (32 - &lt;fbits&gt;) is encoded in [imm4, i]." link="fbits__5">&lt;fbits&gt;</a></asmtemplate>
      </encoding>
      <encoding name="VCVT_toxv_T1_S" oneofinclass="6" oneof="12" label="Single-precision scalar" bitdiffs="op == 0 &amp;&amp; sf == 10">
        <docvars>
          <docvar key="armarmheading" value="T1"/>
          <docvar key="fpdatasize" value="singleprec"/>
          <docvar key="instr-class" value="fpsimd"/>
          <docvar key="isa" value="T32"/>
          <docvar key="mnemonic-fpdatasize" value="VCVT-singleprec"/>
          <docvar key="mnemonic" value="VCVT"/>
        </docvars>
        <box hibit="18" width="1" name="op">
          <c>0</c>
        </box>
        <box hibit="9" width="2" name="sf">
          <c>1</c>
          <c>0</c>
        </box>
        <asmtemplate><text>VCVT{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="c__5">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}.F32.</text><a hover="Is the data type for the fixed-point number, " link="dt_option__2">&lt;dt&gt;</a><text>  </text><a hover="Is the 32-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;Vd:D&quot; field." link="Vd_D__2">&lt;Sdm&gt;</a><text>, </text><a hover="Is the 32-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;Vd:D&quot; field." link="Vd_D__2">&lt;Sdm&gt;</a><text>, #</text><a hover="The number of fraction bits in the fixed-point number:



  * If &lt;dt&gt; is S16 or U16, &lt;fbits&gt; must be in the range 0-16. (16 - &lt;fbits&gt;) is encoded in [imm4, i]
  * If &lt;dt&gt; is S32 or U32, &lt;fbits&gt; must be in the range 1-32. (32 - &lt;fbits&gt;) is encoded in [imm4, i]." link="fbits__5">&lt;fbits&gt;</a></asmtemplate>
      </encoding>
      <encoding name="VCVT_xv_T1_S" oneofinclass="6" oneof="12" label="Single-precision scalar" bitdiffs="op == 1 &amp;&amp; sf == 10">
        <docvars>
          <docvar key="armarmheading" value="T1"/>
          <docvar key="fpdatasize" value="singleprec"/>
          <docvar key="instr-class" value="fpsimd"/>
          <docvar key="isa" value="T32"/>
          <docvar key="mnemonic-fpdatasize" value="VCVT-singleprec"/>
          <docvar key="mnemonic" value="VCVT"/>
        </docvars>
        <box hibit="18" width="1" name="op">
          <c>1</c>
        </box>
        <box hibit="9" width="2" name="sf">
          <c>1</c>
          <c>0</c>
        </box>
        <asmtemplate><text>VCVT{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="c__5">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}.</text><a hover="Is the data type for the fixed-point number, " link="dt_option__2">&lt;dt&gt;</a><text>.F32  </text><a hover="Is the 32-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;Vd:D&quot; field." link="Vd_D__2">&lt;Sdm&gt;</a><text>, </text><a hover="Is the 32-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;Vd:D&quot; field." link="Vd_D__2">&lt;Sdm&gt;</a><text>, #</text><a hover="The number of fraction bits in the fixed-point number:



  * If &lt;dt&gt; is S16 or U16, &lt;fbits&gt; must be in the range 0-16. (16 - &lt;fbits&gt;) is encoded in [imm4, i]
  * If &lt;dt&gt; is S32 or U32, &lt;fbits&gt; must be in the range 1-32. (32 - &lt;fbits&gt;) is encoded in [imm4, i]." link="fbits__5">&lt;fbits&gt;</a></asmtemplate>
      </encoding>
      <encoding name="VCVT_toxv_T1_D" oneofinclass="6" oneof="12" label="Double-precision scalar" bitdiffs="op == 0 &amp;&amp; sf == 11">
        <docvars>
          <docvar key="armarmheading" value="T1"/>
          <docvar key="fpdatasize" value="doubleprec"/>
          <docvar key="instr-class" value="fpsimd"/>
          <docvar key="isa" value="T32"/>
          <docvar key="mnemonic-fpdatasize" value="VCVT-doubleprec"/>
          <docvar key="mnemonic" value="VCVT"/>
        </docvars>
        <box hibit="18" width="1" name="op">
          <c>0</c>
        </box>
        <box hibit="9" width="2" name="sf">
          <c>1</c>
          <c>1</c>
        </box>
        <asmtemplate><text>VCVT{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="c__5">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}.F64.</text><a hover="Is the data type for the fixed-point number, " link="dt_option__2">&lt;dt&gt;</a><text>  </text><a hover="Is the 64-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;D:Vd&quot; field." link="D_Vd__2">&lt;Ddm&gt;</a><text>, </text><a hover="Is the 64-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;D:Vd&quot; field." link="D_Vd__2">&lt;Ddm&gt;</a><text>, #</text><a hover="The number of fraction bits in the fixed-point number:



  * If &lt;dt&gt; is S16 or U16, &lt;fbits&gt; must be in the range 0-16. (16 - &lt;fbits&gt;) is encoded in [imm4, i]
  * If &lt;dt&gt; is S32 or U32, &lt;fbits&gt; must be in the range 1-32. (32 - &lt;fbits&gt;) is encoded in [imm4, i]." link="fbits__5">&lt;fbits&gt;</a></asmtemplate>
      </encoding>
      <encoding name="VCVT_xv_T1_D" oneofinclass="6" oneof="12" label="Double-precision scalar" bitdiffs="op == 1 &amp;&amp; sf == 11">
        <docvars>
          <docvar key="armarmheading" value="T1"/>
          <docvar key="fpdatasize" value="doubleprec"/>
          <docvar key="instr-class" value="fpsimd"/>
          <docvar key="isa" value="T32"/>
          <docvar key="mnemonic-fpdatasize" value="VCVT-doubleprec"/>
          <docvar key="mnemonic" value="VCVT"/>
        </docvars>
        <box hibit="18" width="1" name="op">
          <c>1</c>
        </box>
        <box hibit="9" width="2" name="sf">
          <c>1</c>
          <c>1</c>
        </box>
        <asmtemplate><text>VCVT{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="c__5">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}.</text><a hover="Is the data type for the fixed-point number, " link="dt_option__2">&lt;dt&gt;</a><text>.F64  </text><a hover="Is the 64-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;D:Vd&quot; field." link="D_Vd__2">&lt;Ddm&gt;</a><text>, </text><a hover="Is the 64-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;D:Vd&quot; field." link="D_Vd__2">&lt;Ddm&gt;</a><text>, #</text><a hover="The number of fraction bits in the fixed-point number:



  * If &lt;dt&gt; is S16 or U16, &lt;fbits&gt; must be in the range 0-16. (16 - &lt;fbits&gt;) is encoded in [imm4, i]
  * If &lt;dt&gt; is S32 or U32, &lt;fbits&gt; must be in the range 1-32. (32 - &lt;fbits&gt;) is encoded in [imm4, i]." link="fbits__5">&lt;fbits&gt;</a></asmtemplate>
      </encoding>
      <ps_section howmany="1">
        <ps name="T32.w.cpaf.fpdp.fp_2r.VCVT_toxv_T1_H" sections="1" secttype="noheading">
          <pstext mayhavelinks="1" section="Decode" rep_section="decode">if sf == '00' || (sf == '01' &amp;&amp; !IsFeatureImplemented(FEAT_FP16)) then Undefined(); end;
if sf == '01' &amp;&amp; <a link="func_InITBlock_0" file="shared_pseudocode.xml">InITBlock</a>() then UnpredictableProcedure(); end;
let to_fixed : boolean = (op == '1');
let unsigned : boolean = (U == '1');
let size : integer{} = if sx == '0' then 16 else 32;
let frac_bits : integer = size - UInt(imm4::i);
let fp_size : integer = 8 &lt;&lt; UInt(sf);
let d : integer = if sf == '11' then UInt(D::Vd) else UInt(Vd::D);
if frac_bits &lt; 0 then UnpredictableProcedure(); end;</pstext></ps>
      </ps_section>
      <constrained_unpredictables encoding="T1" ps_block="Decode">
        <cu_case>
          <cu_cause>
            <pstext mayhavelinks="1">frac_bits &lt; 0</pstext></cu_cause>
          <cu_type constraint="Constraint_UNDEF"/>
          <cu_type constraint="Constraint_NOP"/>
          <cu_type constraint="Constraint_UNKNOWN"/>
        </cu_case>
      </constrained_unpredictables>
    </iclass>
  </classes>
  <explanations scope="all">
    <explanation enclist="VCVT_toxv_A1_H, VCVT_xv_A1_H, VCVT_toxv_A1_S, VCVT_xv_A1_S, VCVT_toxv_A1_D, VCVT_xv_A1_D, VCVT_toxv_T1_H, VCVT_xv_T1_H, VCVT_toxv_T1_S, VCVT_xv_T1_S, VCVT_toxv_T1_D, VCVT_xv_T1_D" symboldefcount="1">
      <symbol link="c__5">&lt;c&gt;</symbol>
      <account encodedin="cond">
        <intro>
          <para>See <xref linkend="Babbefhf">Standard assembler syntax fields</xref>.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="VCVT_toxv_A1_H, VCVT_xv_A1_H, VCVT_toxv_A1_S, VCVT_xv_A1_S, VCVT_toxv_A1_D, VCVT_xv_A1_D, VCVT_toxv_T1_H, VCVT_xv_T1_H, VCVT_toxv_T1_S, VCVT_xv_T1_S, VCVT_toxv_T1_D, VCVT_xv_T1_D" symboldefcount="1">
      <symbol link="qw_option">&lt;q&gt;</symbol>
      <account encodedin="">
        <intro>
          <para>See <xref linkend="Babbefhf">Standard assembler syntax fields</xref>.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="VCVT_toxv_A1_H, VCVT_xv_A1_H, VCVT_toxv_A1_S, VCVT_xv_A1_S, VCVT_toxv_A1_D, VCVT_xv_A1_D, VCVT_toxv_T1_H, VCVT_xv_T1_H, VCVT_toxv_T1_S, VCVT_xv_T1_S, VCVT_toxv_T1_D, VCVT_xv_T1_D" symboldefcount="1">
      <symbol link="dt_option__2">&lt;dt&gt;</symbol>
      <definition encodedin="(U :: sx)">
        <intro>Is the data type for the fixed-point number, </intro>
        <table class="valuetable">
          <tgroup cols="3">
            <thead>
              <row>
                <entry class="bitfield">U</entry>
                <entry class="bitfield">sx</entry>
                <entry class="symbol">&lt;dt&gt;</entry>
              </row>
            </thead>
            <tbody>
              <row>
                <entry class="bitfield">0</entry>
                <entry class="bitfield">0</entry>
                <entry class="symbol">S16</entry>
              </row>
              <row>
                <entry class="bitfield">0</entry>
                <entry class="bitfield">1</entry>
                <entry class="symbol">S32</entry>
              </row>
              <row>
                <entry class="bitfield">1</entry>
                <entry class="bitfield">0</entry>
                <entry class="symbol">U16</entry>
              </row>
              <row>
                <entry class="bitfield">1</entry>
                <entry class="bitfield">1</entry>
                <entry class="symbol">U32</entry>
              </row>
            </tbody>
          </tgroup>
        </table>
      </definition>
    </explanation>
    <explanation enclist="VCVT_toxv_A1_H, VCVT_xv_A1_H, VCVT_toxv_A1_S, VCVT_xv_A1_S, VCVT_toxv_T1_H, VCVT_xv_T1_H, VCVT_toxv_T1_S, VCVT_xv_T1_S" symboldefcount="1">
      <symbol link="Vd_D__2">&lt;Sdm&gt;</symbol>
      <account encodedin="(Vd :: D)">
        <intro>
          <para>Is the 32-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;Vd:D&quot; field.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="VCVT_toxv_A1_H, VCVT_xv_A1_H, VCVT_toxv_A1_S, VCVT_xv_A1_S, VCVT_toxv_A1_D, VCVT_xv_A1_D, VCVT_toxv_T1_H, VCVT_xv_T1_H, VCVT_toxv_T1_S, VCVT_xv_T1_S, VCVT_toxv_T1_D, VCVT_xv_T1_D" symboldefcount="1">
      <symbol link="fbits__5">&lt;fbits&gt;</symbol>
      <account encodedin="">
        <intro>
          <para>The number of fraction bits in the fixed-point number:</para>
          <list type="unordered">
            <listitem>
              <content>If <syntax>&lt;dt&gt;</syntax> is <value>S16</value> or <value>U16</value>, <syntax>&lt;fbits&gt;</syntax> must be in the range 0-16. (16 - <syntax>&lt;fbits&gt;</syntax>) is encoded in <field>[imm4, i]</field>
              </content>
            </listitem>
            <listitem>
              <content>If <syntax>&lt;dt&gt;</syntax> is <value>S32</value> or <value>U32</value>, <syntax>&lt;fbits&gt;</syntax> must be in the range 1-32. (32 - <syntax>&lt;fbits&gt;</syntax>) is encoded in <field>[imm4, i]</field>.</content>
            </listitem>
          </list>
        </intro>
      </account>
    </explanation>
    <explanation enclist="VCVT_toxv_A1_D, VCVT_xv_A1_D, VCVT_toxv_T1_D, VCVT_xv_T1_D" symboldefcount="1">
      <symbol link="D_Vd__2">&lt;Ddm&gt;</symbol>
      <account encodedin="(D :: Vd)">
        <intro>
          <para>Is the 64-bit name of the SIMD&amp;FP destination and source register, encoded in the &quot;D:Vd&quot; field.</para>
        </intro>
      </account>
    </explanation>
  </explanations>
  <ps_section howmany="1">
    <ps name="A32.cops_as.fpdp.fpdp2reg.VCVT_toxv_A1_H" sections="1" secttype="Operation">
      <pstext mayhavelinks="1" section="Execute" rep_section="execute">if <a link="func_ConditionPassed_0" file="shared_pseudocode.xml">ConditionPassed</a>() then
    EncodingSpecificOperations();
    <a link="func_CheckVFPEnabled_1" file="shared_pseudocode.xml">CheckVFPEnabled</a>(TRUE);
    let fpcr : FPCR_Type = <a link="func_EffectiveFPCR_0" file="shared_pseudocode.xml">EffectiveFPCR</a>();
    if to_fixed then
        var result : bits(size);
        case fp_size of
            when 16 =&gt;
                result = <a link="func_FPToFixed_7" file="shared_pseudocode.xml">FPToFixed</a>{size, 16}(<a link="accessor_H_1" file="shared_pseudocode.xml">H</a>(d), frac_bits, unsigned, fpcr, <a link="enum_FPRounding_ZERO" file="shared_pseudocode.xml">FPRounding_ZERO</a>);
                <a link="accessor_S_1" file="shared_pseudocode.xml">S</a>(d) = Extend{32}(result, unsigned);
            when 32 =&gt;
                result = <a link="func_FPToFixed_7" file="shared_pseudocode.xml">FPToFixed</a>{size, 32}(<a link="accessor_S_1" file="shared_pseudocode.xml">S</a>(d), frac_bits, unsigned, fpcr, <a link="enum_FPRounding_ZERO" file="shared_pseudocode.xml">FPRounding_ZERO</a>);
                <a link="accessor_S_1" file="shared_pseudocode.xml">S</a>(d) = Extend{32}(result, unsigned);
            when 64 =&gt;
                result = <a link="func_FPToFixed_7" file="shared_pseudocode.xml">FPToFixed</a>{size, 64}(<a link="accessor_D_1" file="shared_pseudocode.xml">D</a>(d), frac_bits, unsigned, fpcr, <a link="enum_FPRounding_ZERO" file="shared_pseudocode.xml">FPRounding_ZERO</a>);
                <a link="accessor_D_1" file="shared_pseudocode.xml">D</a>(d) = Extend{64}(result, unsigned);
        end;
    else
        case fp_size of
            when 16 =&gt;
                <a link="accessor_H_1" file="shared_pseudocode.xml">H</a>(d) = <a link="func_FixedToFP_7" file="shared_pseudocode.xml">FixedToFP</a>{16, size}(<a link="accessor_S_1" file="shared_pseudocode.xml">S</a>(d)[size-1:0], frac_bits, unsigned, fpcr,
                                           <a link="enum_FPRounding_TIEEVEN" file="shared_pseudocode.xml">FPRounding_TIEEVEN</a>);
            when 32 =&gt;
                <a link="accessor_S_1" file="shared_pseudocode.xml">S</a>(d) = <a link="func_FixedToFP_7" file="shared_pseudocode.xml">FixedToFP</a>{32, size}(<a link="accessor_S_1" file="shared_pseudocode.xml">S</a>(d)[size-1:0], frac_bits, unsigned, fpcr,
                                           <a link="enum_FPRounding_TIEEVEN" file="shared_pseudocode.xml">FPRounding_TIEEVEN</a>);
            when 64 =&gt;
                <a link="accessor_D_1" file="shared_pseudocode.xml">D</a>(d) = <a link="func_FixedToFP_7" file="shared_pseudocode.xml">FixedToFP</a>{64, size}(<a link="accessor_D_1" file="shared_pseudocode.xml">D</a>(d)[size-1:0], frac_bits, unsigned, fpcr,
                                           <a link="enum_FPRounding_TIEEVEN" file="shared_pseudocode.xml">FPRounding_TIEEVEN</a>);
        end;
    end;
end;</pstext></ps>
  </ps_section>
  <timestamp>2026-03-26 20:27:25</timestamp>
  <commit_id>2026-03_rel</commit_id>
</instructionsection>