<?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="POP_LDM" title="POP (multiple registers) -- AArch32" type="alias">
  <docvars>
    <docvar key="alias_mnemonic" value="POP"/>
    <docvar key="instr-class" value="general"/>
    <docvar key="mnemonic" value="LDM"/>
  </docvars>
  <heading>POP (multiple registers)</heading>
  <desc>
    <brief>
      <para>Pop Multiple Registers from Stack</para>
    </brief>
    <authored>
      <para>Pop Multiple Registers from Stack loads multiple general-purpose registers from the stack, loading from consecutive memory locations starting at the address in SP, and updates SP to point just above the loaded data.</para>
    </authored>
  </desc>
  <operationalnotes/>
  <aliasto refiform="ldm.xml" iformid="LDM">LDM, LDMIA, LDMFD</aliasto>
  <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_t2">T2</a>
      <txt>)</txt>
      <txt>.</txt>
    </classesintro>
    <iclass name="A1" oneof="2" 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.POP" 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" name="W" usename="1" settings="1" psbits="x">
          <c>1</c>
        </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" settings="4" psbits="xxxx">
          <c>1</c>
          <c>1</c>
          <c>0</c>
          <c>1</c>
        </box>
        <box hibit="15" width="16" name="register_list" usename="1">
          <c colspan="16"/>
        </box>
      </regdiagram>
      <encoding name="POP_LDM_A1" oneofinclass="1" oneof="2" label="A1">
        <docvars>
          <docvar key="armarmheading" value="A1"/>
          <docvar key="instr-class" value="general"/>
          <docvar key="isa" value="A32"/>
          <docvar key="mnemonic" value="LDM"/>
          <docvar key="alias_mnemonic" value="POP"/>
        </docvars>
        <asmtemplate><text>POP{</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="For the &quot;A1&quot; variant: is a list of two or more registers to be loaded, separated by commas and surrounded by { and }. The lowest-numbered register is loaded from the lowest memory address, through to the highest-numbered register from the highest memory address. See also x[Encoding of lists of general-purpose registers and the PC](CHDDBEDG)." link="registers__5">&lt;registers&gt;</a></asmtemplate>
        <equivalent_to>
          <asmtemplate><a href="ldm.xml#LDM_A1">LDM</a><text>{</text><a hover="Is an optional suffix for the Increment After form." href="ldm.xml#IA__2">IA</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." href="ldm.xml#c__5">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." href="ldm.xml#qw_option">&lt;q&gt;</a><text>}  SP!, </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 }." href="ldm.xml#registers__4">&lt;registers&gt;</a></asmtemplate>
          <aliascond>BitCount(register_list) &gt; 1</aliascond>
        </equivalent_to>
      </encoding>
    </iclass>
    <iclass name="T2" oneof="2" 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.POP" 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" name="W" usename="1" settings="1" psbits="x">
          <c>1</c>
        </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" settings="4" psbits="xxxx">
          <c>1</c>
          <c>1</c>
          <c>0</c>
          <c>1</c>
        </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="POP_LDM_T2" oneofinclass="1" oneof="2" label="T2">
        <docvars>
          <docvar key="armarmheading" value="T2"/>
          <docvar key="instr-class" value="general"/>
          <docvar key="isa" value="T32"/>
          <docvar key="mnemonic" value="LDM"/>
          <docvar key="alias_mnemonic" value="POP"/>
        </docvars>
        <asmtemplate><text>POP{</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="For the &quot;T2&quot; variant: is a list of two or more registers to be loaded, separated by commas and surrounded by { and }. The lowest-numbered register is loaded from the lowest memory address, through to the highest-numbered register from the highest memory address. See also x[Encoding of lists of general-purpose registers and the PC](CHDDBEDG)." link="registers__32">&lt;registers&gt;</a></asmtemplate>
        <asmtemplate comment="M == 0 &amp;&amp; register_list[13:8] == '000000'"><text>POP{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="c__5">&lt;c&gt;</a><text>}.W  </text><a hover="For the &quot;T2&quot; variant: is a list of two or more registers to be loaded, separated by commas and surrounded by { and }. The lowest-numbered register is loaded from the lowest memory address, through to the highest-numbered register from the highest memory address. See also x[Encoding of lists of general-purpose registers and the PC](CHDDBEDG)." link="registers__32">&lt;registers&gt;</a></asmtemplate>
        <equivalent_to>
          <asmtemplate><a href="ldm.xml#LDM_T2">LDM</a><text>{</text><a hover="Is an optional suffix for the Increment After form." href="ldm.xml#IA__2">IA</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." href="ldm.xml#c__5">&lt;c&gt;</a><text>}.W  SP!, </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." href="ldm.xml#registers__31">&lt;registers&gt;</a></asmtemplate>
          <aliascond>BitCount(P :: M :: register_list) &gt; 1</aliascond>
        </equivalent_to>
      </encoding>
    </iclass>
  </classes>
  <explanations scope="all">
    <explanation enclist="POP_LDM_A1, POP_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="POP_LDM_A1, POP_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="POP_LDM_A1" symboldefcount="1">
      <symbol link="registers__5">&lt;registers&gt;</symbol>
      <account encodedin="">
        <intro>
          <para>For the &quot;A1&quot; variant: is a list of two or more registers to be loaded, separated by commas and surrounded by { and }. 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="CHDDBEDG">Encoding of lists of general-purpose registers and the PC</xref>.</para>
          <para>If the SP is in the list, the value of the SP after such an instruction is <arm-defined-word>UNKNOWN</arm-defined-word>.</para>
          <para>The PC can be in the list. If it is, the instruction branches to the address loaded to the PC. This is an interworking branch, see <xref linkend="BEICJFEH">Pseudocode description of operations on the AArch32 general-purpose registers and the PC</xref>.</para>
          <para>Arm deprecates the use of this instruction with both the LR and the PC in the list.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="POP_LDM_T2" symboldefcount="2">
      <symbol link="registers__32">&lt;registers&gt;</symbol>
      <account encodedin="">
        <intro>
          <para>For the &quot;T2&quot; variant: is a list of two or more registers to be loaded, separated by commas and surrounded by { and }. 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="CHDDBEDG">Encoding of lists of general-purpose registers and the PC</xref>.</para>
          <para>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>The PC can be in the list. If it is, the instruction branches to the address loaded to the PC. This is an interworking branch, see <xref linkend="BEICJFEH">Pseudocode description of operations on the AArch32 general-purpose registers and the PC</xref>. 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>
  <timestamp>2026-03-26 20:27:25</timestamp>
  <commit_id>2026-03_rel</commit_id>
</instructionsection>