<?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="LDM" title="LDM, LDMIA, LDMFD -- AArch32" type="instruction">
  <docvars>
    <docvar key="instr-class" value="general"/>
    <docvar key="mnemonic" value="LDM"/>
  </docvars>
  <heading>LDM, LDMIA, LDMFD</heading>
  <desc>
    <brief>
      <para>Load Multiple (Increment After, Full Descending)</para>
    </brief>
    <authored>
      <para>Load Multiple (Increment After, Full Descending) loads multiple
registers from consecutive memory locations using an address from a
base register. The consecutive memory locations start at this
address, and the address just above the highest of those locations
can optionally be written back to the base register.</para>
      <para>The lowest-numbered register is loaded from the lowest memory
address, through to the highest-numbered register from the highest
memory address. See also <xref linkend="ARMARM_CHDDBEDG">Encoding of lists of
general-purpose registers and the PC</xref>.</para>
      <para>Armv8.2 permits the deprecation of some Load Multiple ordering behaviors in AArch32 state, for more information see <xref linkend="ARMARM_FEAT_LSMAOC">FEAT_LSMAOC</xref>.
The registers loaded can include the PC, causing a branch to a loaded address. This is an interworking branch, see <xref linkend="ARMARM_BEICJFEH">Pseudocode description of operations on the AArch32 general-purpose registers and the PC</xref>.
Related system instructions are <xref linkend="ARMARM_A32T32-base.instructions.LDM_u">LDM (User registers)</xref> and <xref linkend="ARMARM_A32T32-base.instructions.LDM_e">LDM (exception return)</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>.</para>
    </encodingnotes>
  </desc>
  <operationalnotes>
    <operationalnote>
      <operationalnote_content>
        <para>This instruction is a data-independent-time instruction as described in <xref linkend="ARMARM_BEIIDCEG">About the DIT bit</xref>.</para>
      </operationalnote_content>
    </operationalnote>
  </operationalnotes>
  <alias_list howmany="1">
    <alias_list_intro>This instruction is used by the alias </alias_list_intro>
    <aliasref aliaspageid="POP_LDM" aliasfile="pop_ldm.xml" hover="Pop Multiple Registers from Stack" punct=".">
      <text>POP (multiple registers)</text>
      <aliaspref labels="A1">W == '1' &amp;&amp; Rn == '1101' &amp;&amp; BitCount(register_list) &gt; 1</aliaspref>
      <aliaspref labels="T2">W == '1' &amp;&amp; Rn == '1101' &amp;&amp; BitCount(P :: M :: register_list) &gt; 1</aliaspref>
      <aliaspref labels="T2">BitCount(P :: M :: register_list) &gt; 1</aliaspref>
    </aliasref>
    <alias_list_outro>
      <text>  See </text>
      <aliastablelink/>
      <text> below for details of when the alias is preferred.</text>
    </alias_list_outro>
  </alias_list>
  <classes>
    <classesintro count="3">
      <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> and </txt>
      <a href="#iclass_t2">T2</a>
      <txt>)</txt>
      <txt>.</txt>
    </classesintro>
    <iclass name="A1" oneof="3" id="iclass_a1" no_encodings="1" isa="A32">
      <docvars>
        <docvar key="armarmheading" value="A1"/>
        <docvar key="instr-class" value="general"/>
        <docvar key="isa" value="A32"/>
        <docvar key="mnemonic" value="LDM"/>
      </docvars>
      <iclassintro count="1"/>
      <regdiagram form="32" psname="A32.brblk.ldstm.LDM_A1" 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="2" settings="2">
          <c>1</c>
          <c>0</c>
        </box>
        <box hibit="25" width="1" settings="1">
          <c>0</c>
        </box>
        <box hibit="24" name="P" usename="1" settings="1" psbits="x">
          <c>0</c>
        </box>
        <box hibit="23" name="U" usename="1" settings="1" psbits="x">
          <c>1</c>
        </box>
        <box hibit="22" name="op" usename="1" settings="1" psbits="x">
          <c>0</c>
        </box>
        <box hibit="21" width="1" name="W" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="20" name="L" usename="1" settings="1" psbits="x">
          <c>1</c>
        </box>
        <box hibit="19" width="4" name="Rn" usename="1">
          <c colspan="4"/>
        </box>
        <box hibit="15" width="16" name="register_list" usename="1">
          <c colspan="16"/>
        </box>
      </regdiagram>
      <encoding name="LDM_A1" oneofinclass="1" oneof="3" label="">
        <docvars>
          <docvar key="armarmheading" value="A1"/>
          <docvar key="instr-class" value="general"/>
          <docvar key="isa" value="A32"/>
          <docvar key="mnemonic" value="LDM"/>
        </docvars>
        <asmtemplate comment="Preferred syntax"><text>LDM{</text><a hover="Is an optional suffix for the Increment After form." link="IA__2">IA</a><text>}{</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 general-purpose base register, encoded in the &quot;Rn&quot; field." link="Rn__12">&lt;Rn&gt;</a><text>{</text><a hover="For the &quot;A1&quot; and &quot;T2&quot; variants: the address adjusted by the size of the data loaded is written back to the base register. If specified, it is encoded in the &quot;W&quot; field as 1, otherwise this field defaults to 0." link="bang_choice__2">!</a><text>}, </text><a hover="For the &quot;A1&quot; variant: is a list of one or more registers to be loaded, separated by commas and surrounded by { and }." link="registers__4">&lt;registers&gt;</a></asmtemplate>
        <asmtemplate comment="Alternate syntax, Full Descending stack"><text>LDMFD{</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 general-purpose base register, encoded in the &quot;Rn&quot; field." link="Rn__12">&lt;Rn&gt;</a><text>{</text><a hover="For the &quot;A1&quot; and &quot;T2&quot; variants: the address adjusted by the size of the data loaded is written back to the base register. If specified, it is encoded in the &quot;W&quot; field as 1, otherwise this field defaults to 0." link="bang_choice__2">!</a><text>}, </text><a hover="For the &quot;A1&quot; variant: is a list of one or more registers to be loaded, separated by commas and surrounded by { and }." link="registers__4">&lt;registers&gt;</a></asmtemplate>
      </encoding>
      <ps_section howmany="1">
        <ps name="A32.brblk.ldstm.LDM_A1" sections="1" secttype="noheading">
          <pstext mayhavelinks="1" section="Decode" rep_section="decode">let n : integer = UInt(Rn);
let registers : bits(16) = register_list;
let wback : boolean = (W == '1');
if n == 15 || BitCount(registers) &lt; 1 then UnpredictableProcedure(); end;
if wback &amp;&amp; registers[n] == '1' then UnpredictableProcedure(); end;</pstext></ps>
      </ps_section>
      <constrained_unpredictables encoding="A1" ps_block="Decode">
        <cu_case>
          <cu_cause>
            <pstext mayhavelinks="1">BitCount(registers) &lt; 1</pstext></cu_cause>
          <cu_type constraint="Constraint_UNDEF"/>
          <cu_type constraint="Constraint_NOP"/>
          <cu_type>
            <cu_type_text>The instruction executes as <instruction>LDM</instruction> with the same addressing mode but targeting an unspecified set of registers. These registers might include R15. If the instruction specifies writeback, the modification to the base address on writeback might differ from the number of registers loaded.</cu_type_text>
          </cu_type>
        </cu_case>
        <cu_case>
          <cu_cause>
            <pstext mayhavelinks="1">wback &amp;&amp; registers&lt;n&gt; == '1'</pstext></cu_cause>
          <cu_type constraint="Constraint_UNDEF"/>
          <cu_type constraint="Constraint_NOP"/>
          <cu_type>
            <cu_type_text>The instruction performs all of the loads using the specified addressing mode and the content of the register that is written back is UNKNOWN. In addition, if an exception occurs during such an instruction, the base address might be corrupted so that the instruction cannot be repeated.</cu_type_text>
          </cu_type>
        </cu_case>
      </constrained_unpredictables>
    </iclass>
    <iclass name="T1" oneof="3" id="iclass_t1" no_encodings="1" isa="T32">
      <docvars>
        <docvar key="armarmheading" value="T1"/>
        <docvar key="instr-class" value="general"/>
        <docvar key="isa" value="T32"/>
        <docvar key="mnemonic" value="LDM"/>
      </docvars>
      <iclassintro count="1"/>
      <regdiagram form="16" psname="T32.n.ldstm16.LDM_T1" tworows="1">
        <box hibit="15" width="4" settings="4">
          <c>1</c>
          <c>1</c>
          <c>0</c>
          <c>0</c>
        </box>
        <box hibit="11" name="L" usename="1" settings="1" psbits="x">
          <c>1</c>
        </box>
        <box hibit="10" width="3" name="Rn" usename="1">
          <c colspan="3"/>
        </box>
        <box hibit="7" width="8" name="register_list" usename="1">
          <c colspan="8"/>
        </box>
      </regdiagram>
      <encoding name="LDM_T1" oneofinclass="1" oneof="3" label="">
        <docvars>
          <docvar key="armarmheading" value="T1"/>
          <docvar key="instr-class" value="general"/>
          <docvar key="isa" value="T32"/>
          <docvar key="mnemonic" value="LDM"/>
        </docvars>
        <asmtemplate comment="Preferred syntax"><text>LDM{</text><a hover="Is an optional suffix for the Increment After form." link="IA__2">IA</a><text>}{</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 general-purpose base register, encoded in the &quot;Rn&quot; field." link="Rn__12">&lt;Rn&gt;</a><text>{</text><a hover="For the &quot;T1&quot; variant: the address adjusted by the size of the data loaded is written back to the base register. It is omitted if &lt;Rn&gt; is included in &lt;registers&gt;, otherwise it must be present." link="bang_choice__4">!</a><text>}, </text><a hover="For the &quot;T1&quot; variant: is a list of one or more registers to be loaded, separated by commas and surrounded by { and }. The registers in the list must be in the range R0-R7, encoded in the &quot;register_list&quot; field." link="registers__29">&lt;registers&gt;</a></asmtemplate>
        <asmtemplate comment="Alternate syntax, Full Descending stack"><text>LDMFD{</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 general-purpose base register, encoded in the &quot;Rn&quot; field." link="Rn__12">&lt;Rn&gt;</a><text>{</text><a hover="For the &quot;T1&quot; variant: the address adjusted by the size of the data loaded is written back to the base register. It is omitted if &lt;Rn&gt; is included in &lt;registers&gt;, otherwise it must be present." link="bang_choice__4">!</a><text>}, </text><a hover="For the &quot;T1&quot; variant: is a list of one or more registers to be loaded, separated by commas and surrounded by { and }. The registers in the list must be in the range R0-R7, encoded in the &quot;register_list&quot; field." link="registers__29">&lt;registers&gt;</a></asmtemplate>
      </encoding>
      <ps_section howmany="1">
        <ps name="T32.n.ldstm16.LDM_T1" sections="1" secttype="noheading">
          <pstext mayhavelinks="1" section="Decode" rep_section="decode">let n : integer = UInt(Rn);
let registers : bits(16) = '00000000'::register_list;
let wback : boolean = (registers[n] == '0');
if BitCount(registers) &lt; 1 then UnpredictableProcedure(); end;</pstext></ps>
      </ps_section>
      <constrained_unpredictables encoding="T1" ps_block="Decode">
        <cu_case>
          <cu_cause>
            <pstext mayhavelinks="1">BitCount(registers) &lt; 1</pstext></cu_cause>
          <cu_type constraint="Constraint_UNDEF"/>
          <cu_type constraint="Constraint_NOP"/>
          <cu_type>
            <cu_type_text>The instruction executes as <instruction>LDM</instruction> with the same addressing mode but targeting an unspecified set of registers. These registers might include R15. If the instruction specifies writeback, the modification to the base address on writeback might differ from the number of registers loaded.</cu_type_text>
          </cu_type>
        </cu_case>
      </constrained_unpredictables>
    </iclass>
    <iclass name="T2" oneof="3" id="iclass_t2" no_encodings="1" isa="T32">
      <docvars>
        <docvar key="armarmheading" value="T2"/>
        <docvar key="instr-class" value="general"/>
        <docvar key="isa" value="T32"/>
        <docvar key="mnemonic" value="LDM"/>
      </docvars>
      <iclassintro count="1"/>
      <regdiagram form="16x2" psname="T32.w.ldstm.LDM_T2" tworows="1">
        <box hibit="31" width="3" settings="3">
          <c>1</c>
          <c>1</c>
          <c>1</c>
        </box>
        <box hibit="28" width="4" settings="4">
          <c>0</c>
          <c>1</c>
          <c>0</c>
          <c>0</c>
        </box>
        <box hibit="24" width="2" name="opc" usename="1" settings="2" psbits="xx">
          <c>0</c>
          <c>1</c>
        </box>
        <box hibit="22" width="1" settings="1">
          <c>0</c>
        </box>
        <box hibit="21" width="1" name="W" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="20" name="L" usename="1" settings="1" psbits="x">
          <c>1</c>
        </box>
        <box hibit="19" width="4" name="Rn" usename="1">
          <c colspan="4"/>
        </box>
        <box hibit="15" width="1" name="P" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="14" width="1" name="M" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="13" width="14" name="register_list" usename="1">
          <c colspan="14"/>
        </box>
      </regdiagram>
      <encoding name="LDM_T2" oneofinclass="1" oneof="3" label="">
        <docvars>
          <docvar key="armarmheading" value="T2"/>
          <docvar key="instr-class" value="general"/>
          <docvar key="isa" value="T32"/>
          <docvar key="mnemonic" value="LDM"/>
        </docvars>
        <asmtemplate comment="Preferred syntax, if &lt;Rn&gt;, '!' and &lt;registers&gt; can be represented in T1"><text>LDM{</text><a hover="Is an optional suffix for the Increment After form." link="IA__2">IA</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="c__5">&lt;c&gt;</a><text>}.W  </text><a hover="Is the general-purpose base register, encoded in the &quot;Rn&quot; field." link="Rn__12">&lt;Rn&gt;</a><text>{</text><a hover="For the &quot;A1&quot; and &quot;T2&quot; variants: the address adjusted by the size of the data loaded is written back to the base register. If specified, it is encoded in the &quot;W&quot; field as 1, otherwise this field defaults to 0." link="bang_choice__2">!</a><text>}, </text><a hover="For the &quot;T2&quot; variant: is a list of one or more registers to be loaded, separated by commas and surrounded by { and }. The registers in the list must be in the range R0-R12, encoded in the &quot;register_list&quot; field, and can optionally contain one of  the LR or the PC. If the LR is in the list, the &quot;M&quot; field is set to 1, otherwise it defaults to 0. If the PC is in the list, the &quot;P&quot; field is set to 1, otherwise it defaults to 0." link="registers__31">&lt;registers&gt;</a></asmtemplate>
        <asmtemplate comment="Alternate syntax, Full Descending stack, if &lt;Rn&gt;, '!' and &lt;registers&gt; can be represented in T1"><text>LDMFD{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="c__5">&lt;c&gt;</a><text>}.W  </text><a hover="Is the general-purpose base register, encoded in the &quot;Rn&quot; field." link="Rn__12">&lt;Rn&gt;</a><text>{</text><a hover="For the &quot;A1&quot; and &quot;T2&quot; variants: the address adjusted by the size of the data loaded is written back to the base register. If specified, it is encoded in the &quot;W&quot; field as 1, otherwise this field defaults to 0." link="bang_choice__2">!</a><text>}, </text><a hover="For the &quot;T2&quot; variant: is a list of one or more registers to be loaded, separated by commas and surrounded by { and }. The registers in the list must be in the range R0-R12, encoded in the &quot;register_list&quot; field, and can optionally contain one of  the LR or the PC. If the LR is in the list, the &quot;M&quot; field is set to 1, otherwise it defaults to 0. If the PC is in the list, the &quot;P&quot; field is set to 1, otherwise it defaults to 0." link="registers__31">&lt;registers&gt;</a></asmtemplate>
        <asmtemplate comment="Preferred syntax"><text>LDM{</text><a hover="Is an optional suffix for the Increment After form." link="IA__2">IA</a><text>}{</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 general-purpose base register, encoded in the &quot;Rn&quot; field." link="Rn__12">&lt;Rn&gt;</a><text>{</text><a hover="For the &quot;A1&quot; and &quot;T2&quot; variants: the address adjusted by the size of the data loaded is written back to the base register. If specified, it is encoded in the &quot;W&quot; field as 1, otherwise this field defaults to 0." link="bang_choice__2">!</a><text>}, </text><a hover="For the &quot;T2&quot; variant: is a list of one or more registers to be loaded, separated by commas and surrounded by { and }. The registers in the list must be in the range R0-R12, encoded in the &quot;register_list&quot; field, and can optionally contain one of  the LR or the PC. If the LR is in the list, the &quot;M&quot; field is set to 1, otherwise it defaults to 0. If the PC is in the list, the &quot;P&quot; field is set to 1, otherwise it defaults to 0." link="registers__31">&lt;registers&gt;</a></asmtemplate>
        <asmtemplate comment="Alternate syntax, Full Descending stack"><text>LDMFD{</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 general-purpose base register, encoded in the &quot;Rn&quot; field." link="Rn__12">&lt;Rn&gt;</a><text>{</text><a hover="For the &quot;A1&quot; and &quot;T2&quot; variants: the address adjusted by the size of the data loaded is written back to the base register. If specified, it is encoded in the &quot;W&quot; field as 1, otherwise this field defaults to 0." link="bang_choice__2">!</a><text>}, </text><a hover="For the &quot;T2&quot; variant: is a list of one or more registers to be loaded, separated by commas and surrounded by { and }. The registers in the list must be in the range R0-R12, encoded in the &quot;register_list&quot; field, and can optionally contain one of  the LR or the PC. If the LR is in the list, the &quot;M&quot; field is set to 1, otherwise it defaults to 0. If the PC is in the list, the &quot;P&quot; field is set to 1, otherwise it defaults to 0." link="registers__31">&lt;registers&gt;</a></asmtemplate>
      </encoding>
      <ps_section howmany="1">
        <ps name="T32.w.ldstm.LDM_T2" sections="1" secttype="noheading">
          <pstext mayhavelinks="1" section="Decode" rep_section="decode">let n : integer = UInt(Rn);
let registers : bits(16) = P::M::register_list;
let wback : boolean = (W == '1');
if n == 15 || BitCount(registers) &lt; 2 || (P == '1' &amp;&amp; M == '1') then UnpredictableProcedure(); end;
if wback &amp;&amp; registers[n] == '1' then UnpredictableProcedure(); end;
if registers[13] == '1' then UnpredictableProcedure(); end;
if registers[15] == '1' &amp;&amp; <a link="func_InITBlock_0" file="shared_pseudocode.xml">InITBlock</a>() &amp;&amp; !<a link="func_LastInITBlock_0" file="shared_pseudocode.xml">LastInITBlock</a>() then UnpredictableProcedure(); end;</pstext></ps>
      </ps_section>
      <constrained_unpredictables encoding="T2" ps_block="Decode">
        <cu_case>
          <cu_cause>
            <pstext mayhavelinks="1">BitCount(registers) &lt; 1</pstext></cu_cause>
          <cu_type constraint="Constraint_UNDEF"/>
          <cu_type constraint="Constraint_NOP"/>
          <cu_type>
            <cu_type_text>The instruction executes as <instruction>LDM</instruction> with the same addressing mode but targeting an unspecified set of registers. These registers might include R15. If the instruction specifies writeback, the modification to the base address on writeback might differ from the number of registers loaded.</cu_type_text>
          </cu_type>
        </cu_case>
        <cu_case>
          <cu_cause>
            <pstext mayhavelinks="1">wback &amp;&amp; registers&lt;n&gt; == '1'</pstext></cu_cause>
          <cu_type constraint="Constraint_UNDEF"/>
          <cu_type constraint="Constraint_NOP"/>
          <cu_type>
            <cu_type_text>The instruction performs all of the loads using the specified addressing mode and the content of the register that is written back is UNKNOWN. In addition, if an exception occurs during such an instruction, the base address might be corrupted so that the instruction cannot be repeated.</cu_type_text>
          </cu_type>
        </cu_case>
        <cu_case>
          <cu_cause>
            <pstext mayhavelinks="1">BitCount(registers) == 1</pstext></cu_cause>
          <cu_type constraint="Constraint_UNDEF"/>
          <cu_type constraint="Constraint_NOP"/>
          <cu_type>
            <cu_type_text>The instruction loads a single register using the specified addressing modes.</cu_type_text>
          </cu_type>
          <cu_type>
            <cu_type_text>The instruction executes as <instruction>LDM</instruction> with the same addressing mode but targeting an unspecified set of registers. These registers might include R15.</cu_type_text>
          </cu_type>
        </cu_case>
        <cu_case>
          <cu_cause>
            <pstext mayhavelinks="1">registers&lt;13&gt; == '1'</pstext></cu_cause>
          <cu_type constraint="Constraint_UNDEF"/>
          <cu_type constraint="Constraint_NOP"/>
          <cu_type>
            <cu_type_text>The instruction performs all of the loads using the specified addressing mode, but R13 is UNKNOWN.</cu_type_text>
          </cu_type>
        </cu_case>
        <cu_case>
          <cu_cause>
            <pstext mayhavelinks="1">P == '1' &amp;&amp; M == '1'</pstext></cu_cause>
          <cu_type constraint="Constraint_UNDEF"/>
          <cu_type constraint="Constraint_NOP"/>
          <cu_type>
            <cu_type_text>The instruction loads the register list and either R14 or R15, both R14 and R15, or neither of these registers.</cu_type_text>
          </cu_type>
        </cu_case>
      </constrained_unpredictables>
    </iclass>
  </classes>
  <explanations scope="all">
    <explanation enclist="LDM_A1, LDM_T1, LDM_T2, T2C_LDM_T2" symboldefcount="1">
      <symbol link="IA__2">IA</symbol>
      <account encodedin="">
        <intro>
          <para>Is an optional suffix for the Increment After form.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="LDM_A1, A1B_LDM_A1, LDM_T1, T1B_LDM_T1, LDM_T2, T2B_LDM_T2, T2C_LDM_T2, T2D_LDM_T2" 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="LDM_A1, A1B_LDM_A1, LDM_T1, T1B_LDM_T1, T2C_LDM_T2, T2D_LDM_T2" 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="LDM_A1, A1B_LDM_A1, LDM_T1, T1B_LDM_T1, LDM_T2, T2B_LDM_T2, T2C_LDM_T2, T2D_LDM_T2" symboldefcount="1">
      <symbol link="Rn__12">&lt;Rn&gt;</symbol>
      <account encodedin="Rn">
        <intro>
          <para>Is the general-purpose base register, encoded in the &quot;Rn&quot; field.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="LDM_A1, A1B_LDM_A1, LDM_T2, T2B_LDM_T2, T2C_LDM_T2, T2D_LDM_T2" symboldefcount="1">
      <symbol link="bang_choice__2">!</symbol>
      <account encodedin="W">
        <intro>
          <para>For the &quot;A1&quot; and &quot;T2&quot; variants: the address adjusted by the size of the data loaded is written back to the base register. If specified, it is encoded in the &quot;W&quot; field as 1, otherwise this field defaults to 0.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="LDM_T1, T1B_LDM_T1" symboldefcount="2">
      <symbol link="bang_choice__4">!</symbol>
      <account encodedin="">
        <intro>
          <para>For the &quot;T1&quot; variant: the address adjusted by the size of the data loaded is written back to the base register. It is omitted if <syntax>&lt;Rn&gt;</syntax> is included in <syntax>&lt;registers&gt;</syntax>, otherwise it must be present.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="LDM_A1, A1B_LDM_A1" symboldefcount="1">
      <symbol link="registers__4">&lt;registers&gt;</symbol>
      <account encodedin="">
        <intro>
          <para>For the &quot;A1&quot; variant: is a list of one or more registers to be loaded, separated by commas and surrounded by { and }.</para>
          <para>The PC can be in the list.</para>
          <para>Arm deprecates using these instructions with both the LR and the PC in the list.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="LDM_T1, T1B_LDM_T1" symboldefcount="2">
      <symbol link="registers__29">&lt;registers&gt;</symbol>
      <account encodedin="">
        <intro>
          <para>For the &quot;T1&quot; variant: is a list of one or more registers to be loaded, separated by commas and surrounded by { and }. The registers in the list must be in the range R0-R7, encoded in the &quot;register_list&quot; field.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="LDM_T2, T2B_LDM_T2, T2C_LDM_T2, T2D_LDM_T2" symboldefcount="3">
      <symbol link="registers__31">&lt;registers&gt;</symbol>
      <account encodedin="">
        <intro>
          <para>For the &quot;T2&quot; variant: is a list of one or more registers to be loaded, separated by commas and surrounded by { and }. The registers in the list must be in the range R0-R12, encoded in the &quot;register_list&quot; field, and can optionally contain one of  the LR or the PC. If the LR is in the list, the &quot;M&quot; field is set to 1, otherwise it defaults to 0. If the PC is in the list, the &quot;P&quot; field is set to 1, otherwise it defaults to 0.</para>
          <para>If the PC is in the list:</para>
          <list type="unordered">
            <listitem>
              <content>The LR must not be in the list.</content>
            </listitem>
            <listitem>
              <content>The instruction must be either outside any IT block, or the last instruction in an IT block.</content>
            </listitem>
          </list>
        </intro>
      </account>
    </explanation>
  </explanations>
  <aliastablehook anchor="aliasconditions">Alias Conditions</aliastablehook>
  <ps_section howmany="1">
    <ps name="A32.brblk.ldstm.LDM_A1" 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();
    var address : bits(32) = <a link="accessor_R_1" file="shared_pseudocode.xml">R</a>(n);
    var data : bits(32);
    for i = 0 to 14 do
        if registers[i] == '1' then
            if i != n then
                <a link="accessor_R_1" file="shared_pseudocode.xml">R</a>(i) = <a link="accessor_MemS_2" file="shared_pseudocode.xml">MemS</a>{32}(address);
            else
                data = <a link="accessor_MemS_2" file="shared_pseudocode.xml">MemS</a>{32}(address);
            end;
            address = address + 4;
        end;
    end;
    if registers[15] == '1' then
        <a link="func_LoadWritePC_1" file="shared_pseudocode.xml">LoadWritePC</a>(<a link="accessor_MemS_2" file="shared_pseudocode.xml">MemS</a>{32}(address));
    end;

    if wback &amp;&amp; registers[n] == '1' then
        <a link="accessor_R_1" file="shared_pseudocode.xml">R</a>(n) = ARBITRARY : bits(32);
    end;
    if wback &amp;&amp; registers[n] == '0' then
        <a link="accessor_R_1" file="shared_pseudocode.xml">R</a>(n) = <a link="accessor_R_1" file="shared_pseudocode.xml">R</a>(n) + 4*BitCount(registers);
    end;
    if !wback &amp;&amp; registers[n] == '1' then
        <a link="accessor_R_1" file="shared_pseudocode.xml">R</a>(n) = data;
    end;

end;</pstext></ps>
  </ps_section>
  <timestamp>2026-03-26 20:27:25</timestamp>
  <commit_id>2026-03_rel</commit_id>
</instructionsection>