263 lines
12 KiB
XML
263 lines
12 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<?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-2022 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="ROR_MOV_r" title="ROR (immediate) -- AArch32" type="alias">
|
|
<docvars>
|
|
<docvar key="alias_mnemonic" value="ROR" />
|
|
<docvar key="instr-class" value="general" />
|
|
<docvar key="mnemonic" value="MOV" />
|
|
<docvar key="mnemonic-shift-type" value="MOV-shift-no-rrx" />
|
|
<docvar key="shift-type" value="shift-no-rrx" />
|
|
</docvars>
|
|
<heading>ROR (immediate)</heading>
|
|
<desc>
|
|
<brief>
|
|
<para>Rotate Right (immediate)</para>
|
|
</brief>
|
|
<authored>
|
|
<para>Rotate Right (immediate) provides the value of the contents of a register rotated by a constant value. The bits that are rotated off the right end are inserted into the vacated bit positions on the left.</para>
|
|
</authored>
|
|
</desc>
|
|
<aliasto refiform="mov_r.xml" iformid="MOV_r">MOV, MOVS (register)</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_t3">T3</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" />
|
|
</docvars>
|
|
<iclassintro count="1"></iclassintro>
|
|
<regdiagram form="32" psname="" 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>0</c>
|
|
<c>0</c>
|
|
<c>0</c>
|
|
<c>1</c>
|
|
<c>1</c>
|
|
</box>
|
|
<box hibit="22" width="2" name="opc" settings="2">
|
|
<c>0</c>
|
|
<c>1</c>
|
|
</box>
|
|
<box hibit="20" name="S" usename="1" settings="1">
|
|
<c>0</c>
|
|
</box>
|
|
<box hibit="19" width="4" name="Rn" settings="4">
|
|
<c>(0)</c>
|
|
<c>(0)</c>
|
|
<c>(0)</c>
|
|
<c>(0)</c>
|
|
</box>
|
|
<box hibit="15" width="4" name="Rd" usename="1">
|
|
<c colspan="4"></c>
|
|
</box>
|
|
<box hibit="11" width="5" name="imm5" usename="1" settings="5" constraint="!= 00000">
|
|
<c colspan="5">!= 00000</c>
|
|
</box>
|
|
<box hibit="6" width="2" name="stype" usename="1" settings="2">
|
|
<c>1</c>
|
|
<c>1</c>
|
|
</box>
|
|
<box hibit="4" settings="1">
|
|
<c>0</c>
|
|
</box>
|
|
<box hibit="3" width="4" name="Rm" usename="1">
|
|
<c colspan="4"></c>
|
|
</box>
|
|
</regdiagram>
|
|
<encoding name="ROR_MOV_r_A1" oneofinclass="1" oneof="2" label="MOV, shift or rotate by value">
|
|
<docvars>
|
|
<docvar key="alias_mnemonic" value="ROR" />
|
|
<docvar key="armarmheading" value="A1" />
|
|
<docvar key="instr-class" value="general" />
|
|
<docvar key="isa" value="A32" />
|
|
<docvar key="mnemonic" value="MOV" />
|
|
<docvar key="mnemonic-shift-type" value="MOV-shift-no-rrx" />
|
|
<docvar key="shift-type" value="shift-no-rrx" />
|
|
</docvars>
|
|
<asmtemplate><text>ROR</text><text>{</text><a link="sa_c" hover="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}"><c></a><text>}</text><text>{</text><a link="sa_q" hover="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}"><q></a><text>}</text><text> </text><text>{</text><a link="sa_rd_3" hover="General-purpose destination register (field "Rd")"><Rd></a><text>,</text><text>}</text><text> </text><a link="sa_rm_2" hover="General-purpose source register (field "Rm")"><Rm></a><text>, #</text><a link="sa_imm_6" hover="Shift amount [1-31] (field "imm5")"><imm></a></asmtemplate>
|
|
<equivalent_to>
|
|
<asmtemplate><a href="mov_r.xml#MOV_r_A1">MOV</a><text>{</text><a link="sa_c" hover="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}"><c></a><text>}</text><text>{</text><a link="sa_q" hover="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}"><q></a><text>}</text><text> </text><a link="sa_rd_3" hover="General-purpose destination register (field "Rd")"><Rd></a><text>, </text><a link="sa_rm_2" hover="General-purpose source register (field "Rm")"><Rm></a><text>, ROR #</text><a link="sa_imm_6" hover="Shift amount [1-31] (field "imm5")"><imm></a></asmtemplate>
|
|
<aliascond>Unconditionally</aliascond>
|
|
</equivalent_to>
|
|
</encoding>
|
|
</iclass>
|
|
<iclass name="T3" oneof="2" id="iclass_t3" no_encodings="1" isa="T32">
|
|
<docvars>
|
|
<docvar key="armarmheading" value="T3" />
|
|
<docvar key="instr-class" value="general" />
|
|
<docvar key="isa" value="T32" />
|
|
</docvars>
|
|
<iclassintro count="1"></iclassintro>
|
|
<regdiagram form="16x2" psname="" tworows="1">
|
|
<box hibit="31" width="7" settings="7">
|
|
<c>1</c>
|
|
<c>1</c>
|
|
<c>1</c>
|
|
<c>0</c>
|
|
<c>1</c>
|
|
<c>0</c>
|
|
<c>1</c>
|
|
</box>
|
|
<box hibit="24" width="4" name="op1" settings="4">
|
|
<c>0</c>
|
|
<c>0</c>
|
|
<c>1</c>
|
|
<c>0</c>
|
|
</box>
|
|
<box hibit="20" name="S" usename="1" settings="1">
|
|
<c>0</c>
|
|
</box>
|
|
<box hibit="19" width="4" name="Rn" settings="4">
|
|
<c>1</c>
|
|
<c>1</c>
|
|
<c>1</c>
|
|
<c>1</c>
|
|
</box>
|
|
<box hibit="15" settings="1">
|
|
<c>(0)</c>
|
|
</box>
|
|
<box hibit="14" width="3" name="imm3" usename="1">
|
|
<c colspan="3"></c>
|
|
</box>
|
|
<box hibit="11" width="4" name="Rd" usename="1">
|
|
<c colspan="4"></c>
|
|
</box>
|
|
<box hibit="7" width="2" name="imm2" usename="1">
|
|
<c colspan="2"></c>
|
|
</box>
|
|
<box hibit="5" width="2" name="stype" usename="1" settings="2">
|
|
<c>1</c>
|
|
<c>1</c>
|
|
</box>
|
|
<box hibit="3" width="4" name="Rm" usename="1">
|
|
<c colspan="4"></c>
|
|
</box>
|
|
</regdiagram>
|
|
<encoding name="ROR_MOV_r_T3" oneofinclass="1" oneof="2" label="MOV, shift or rotate by value" bitdiffs="!(imm3 == 000 && imm2 == 00)">
|
|
<docvars>
|
|
<docvar key="alias_mnemonic" value="ROR" />
|
|
<docvar key="armarmheading" value="T3" />
|
|
<docvar key="instr-class" value="general" />
|
|
<docvar key="isa" value="T32" />
|
|
<docvar key="mnemonic" value="MOV" />
|
|
<docvar key="mnemonic-shift-type" value="MOV-shift-no-rrx" />
|
|
<docvar key="shift-type" value="shift-no-rrx" />
|
|
</docvars>
|
|
<box hibit="14" width="9" name="imm3:imm2">
|
|
<c>Z</c>
|
|
<c>Z</c>
|
|
<c>Z</c>
|
|
<c>Z</c>
|
|
<c>Z</c>
|
|
</box>
|
|
<asmtemplate><text>ROR</text><text>{</text><a link="sa_c" hover="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}"><c></a><text>}</text><text>{</text><a link="sa_q" hover="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}"><q></a><text>}</text><text> </text><text>{</text><a link="sa_rd_1" hover="General-purpose destination register (field "Rd")"><Rd></a><text>,</text><text>}</text><text> </text><a link="sa_rm_1" hover="General-purpose source register (field "Rm")"><Rm></a><text>, #</text><a link="sa_imm_4" hover="Shift amount [1-31] (field "imm3:imm2")"><imm></a></asmtemplate>
|
|
<equivalent_to>
|
|
<asmtemplate><a href="mov_r.xml#MOV_r_T3">MOV</a><text>{</text><a link="sa_c" hover="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}"><c></a><text>}</text><text>{</text><a link="sa_q" hover="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}"><q></a><text>}</text><text> </text><a link="sa_rd_1" hover="General-purpose destination register (field "Rd")"><Rd></a><text>, </text><a link="sa_rm_1" hover="General-purpose source register (field "Rm")"><Rm></a><text>, ROR #</text><a link="sa_imm_4" hover="Shift amount [1-31] (field "imm3:imm2")"><imm></a></asmtemplate>
|
|
<aliascond>Unconditionally</aliascond>
|
|
</equivalent_to>
|
|
</encoding>
|
|
</iclass>
|
|
</classes>
|
|
<explanations scope="all">
|
|
<explanation enclist="ROR_MOV_r_A1, ROR_MOV_r_T3" symboldefcount="1">
|
|
<symbol link="sa_c"><c></symbol>
|
|
<account encodedin="">
|
|
<intro>
|
|
<para>See <xref linkend="Babbefhf">Standard assembler syntax fields</xref>.</para>
|
|
</intro>
|
|
</account>
|
|
</explanation>
|
|
<explanation enclist="ROR_MOV_r_A1, ROR_MOV_r_T3" symboldefcount="1">
|
|
<symbol link="sa_q"><q></symbol>
|
|
<account encodedin="">
|
|
<intro>
|
|
<para>See <xref linkend="Babbefhf">Standard assembler syntax fields</xref>.</para>
|
|
</intro>
|
|
</account>
|
|
</explanation>
|
|
<explanation enclist="ROR_MOV_r_A1" symboldefcount="1">
|
|
<symbol link="sa_rd_3"><Rd></symbol>
|
|
<account encodedin="Rd">
|
|
<docvars>
|
|
<docvar key="armarmheading" value="A1" />
|
|
</docvars>
|
|
<intro>
|
|
<para>For encoding A1: is the general-purpose destination register, encoded in the "Rd" field. Arm deprecates using the PC as the destination register, but if the PC is used, the instruction is a branch to the address calculated by the operation. This is an interworking branch, see <xref linkend="BEICJFEH">Pseudocode description of operations on the AArch32 general-purpose registers and the PC</xref>.</para>
|
|
</intro>
|
|
</account>
|
|
</explanation>
|
|
<explanation enclist="ROR_MOV_r_T3" symboldefcount="2">
|
|
<symbol link="sa_rd_1"><Rd></symbol>
|
|
<account encodedin="Rd">
|
|
<docvars>
|
|
<docvar key="armarmheading" value="T3" />
|
|
</docvars>
|
|
<intro>
|
|
<para>For encoding T3: is the general-purpose destination register, encoded in the "Rd" field.</para>
|
|
</intro>
|
|
</account>
|
|
</explanation>
|
|
<explanation enclist="ROR_MOV_r_A1" symboldefcount="1">
|
|
<symbol link="sa_rm_2"><Rm></symbol>
|
|
<account encodedin="Rm">
|
|
<docvars>
|
|
<docvar key="armarmheading" value="A1" />
|
|
</docvars>
|
|
<intro>
|
|
<para>For encoding A1: is the general-purpose source register, encoded in the "Rm" field. The PC can be used, but this is deprecated.</para>
|
|
</intro>
|
|
</account>
|
|
</explanation>
|
|
<explanation enclist="ROR_MOV_r_T3" symboldefcount="2">
|
|
<symbol link="sa_rm_1"><Rm></symbol>
|
|
<account encodedin="Rm">
|
|
<docvars>
|
|
<docvar key="armarmheading" value="T3" />
|
|
</docvars>
|
|
<intro>
|
|
<para>For encoding T3: is the general-purpose source register, encoded in the "Rm" field.</para>
|
|
</intro>
|
|
</account>
|
|
</explanation>
|
|
<explanation enclist="ROR_MOV_r_A1" symboldefcount="1">
|
|
<symbol link="sa_imm_6"><imm></symbol>
|
|
<account encodedin="imm5">
|
|
<docvars>
|
|
<docvar key="armarmheading" value="A1" />
|
|
</docvars>
|
|
<intro>
|
|
<para>For encoding A1: is the shift amount, in the range 1 to 31, encoded in the "imm5" field.</para>
|
|
</intro>
|
|
</account>
|
|
</explanation>
|
|
<explanation enclist="ROR_MOV_r_T3" symboldefcount="2">
|
|
<symbol link="sa_imm_4"><imm></symbol>
|
|
<account encodedin="imm3:imm2">
|
|
<docvars>
|
|
<docvar key="armarmheading" value="T3" />
|
|
</docvars>
|
|
<intro>
|
|
<para>For encoding T3: is the shift amount, in the range 1 to 31, encoded in the "imm3:imm2" field.</para>
|
|
</intro>
|
|
</account>
|
|
</explanation>
|
|
</explanations>
|
|
</instructionsection>
|