collab/polyglot-riscv-arm

what if the same machine code was valid riscv and arm asm

git clone https://git.julia.blue/collab/polyglot-riscv-arm

Jonathan Dönszelmannwebsite start885cc4e

main
22.0 KiB141 linesraw
1<?xml version="1.0" encoding="utf-8"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="insn.css"/><meta name="generator" content="iform.xsl"/><title>SRS, SRSDA, SRSDB, SRSIA, SRSIB -- AArch32</title></head><body><table style="margin: 0 auto;"><tr><td><div class="topbar"><a href="index.html">Base Instructions</a></div></td><td><div class="topbar"><a href="fpsimdindex.html">SIMD&amp;FP Instructions</a></div></td><td><div class="topbar"><a href="a32_encindex.html">A32 Instructions by Encoding</a></div></td><td><div class="topbar"><a href="t32_encindex.html">T32 Instructions by Encoding</a></div></td><td><div class="topbar"><a href="shared_pseudocode.html">Shared Pseudocode</a></div></td><td><div class="topbar"><a href="notice.html">Proprietary Notice</a></div></td></tr></table><hr/><h2 class="instruction-section">SRS, SRSDA, SRSDB, SRSIA, SRSIB</h2>
4      <p class="aml">Store Return State stores the LR_&lt;current_mode&gt; and <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="CHDDAABB">SPSR</a>_&lt;current_mode&gt; to the stack of a specified mode. For information about memory accesses see <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="Chddjfjf">Memory accesses</a>.</p>
5      <p class="aml"><span class="asm-code">SRS</span> is <span class="arm-defined-word">undefined</span> in Hyp mode.</p>
6      <p class="aml"><span class="asm-code">SRS</span> is <span class="arm-defined-word">constrained unpredictable</span> if it is executed in User or System mode, or if the specified mode is any of the following:</p>
7      <ul>
8        <li>Not implemented.</li>
9        <li>A mode that <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="CIHGHDGI">Table G1-5</a> does not show.</li>
10        <li>Hyp mode.</li>
11        <li>Monitor mode, if the <span class="asm-code">SRS</span> instruction is executed in Non-secure state.</li>
12      </ul>
13      <p class="aml">If EL3 is using AArch64 and an <span class="asm-code">SRS</span> instruction that is executed in a Secure EL1 mode specifies Monitor mode, it is trapped to EL3.</p>
14    
15    <p class="desc">
16      It has encodings from the following instruction sets:
17       A32 (
18      <a href="#iclass_a1">A1</a>
19      )
20       and 
21       T32 (
22      <a href="#iclass_t1">T1</a>
23       and 
24      <a href="#iclass_t2">T2</a>
25      )
26      .
27    </p>
28    <h3 class="classheading"><a id="iclass_a1"/>A1</h3><p class="desc"/><div class="regdiagram-32"><table class="regdiagram"><thead><tr><td>31</td><td>30</td><td>29</td><td>28</td><td>27</td><td>26</td><td>25</td><td>24</td><td>23</td><td>22</td><td>21</td><td>20</td><td>19</td><td>18</td><td>17</td><td>16</td><td>15</td><td>14</td><td>13</td><td>12</td><td>11</td><td>10</td><td>9</td><td>8</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr></thead><tbody><tr class="firstrow"><td class="l">1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>0</td><td class="r">0</td><td class="lr">P</td><td class="lr">U</td><td class="lr">1</td><td class="lr">W</td><td class="lr">0</td><td class="l">(1)</td><td>(1)</td><td>(0)</td><td class="r">(1)</td><td class="l">(0)</td><td>(0)</td><td>(0)</td><td>(0)</td><td>(0)</td><td>(1)</td><td>(0)</td><td>(1)</td><td>(0)</td><td>(0)</td><td class="r">(0)</td><td colspan="5" class="lr">mode</td></tr></tbody></table></div><div class="encoding"><h4 class="encoding">Decrement After<span class="bitdiff"> (P == 0 &amp;&amp; U == 0)</span></h4><a id="SRSDA_A1_AS"/><p class="asm-code">SRSDA{<a href="#sa_c_1" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;c&gt;</a>}{<a href="#sa_q" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;q&gt;</a>} SP<a href="#sa_0d33" title="The address adjusted by the size of data loaded is written back to the base register (field &quot;W&quot;)">{!}</a>, #<a href="#sa_mode" title="Mode whose Banked SP is used as the base register number (field &quot;mode&quot;)">&lt;mode&gt;</a></p></div><div class="encoding"><h4 class="encoding">Decrement Before<span class="bitdiff"> (P == 1 &amp;&amp; U == 0)</span></h4><a id="SRSDB_A1_AS"/><p class="asm-code">SRSDB{<a href="#sa_c_1" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;c&gt;</a>}{<a href="#sa_q" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;q&gt;</a>} SP<a href="#sa_0d33" title="The address adjusted by the size of data loaded is written back to the base register (field &quot;W&quot;)">{!}</a>, #<a href="#sa_mode" title="Mode whose Banked SP is used as the base register number (field &quot;mode&quot;)">&lt;mode&gt;</a></p></div><div class="encoding"><h4 class="encoding">Increment After<span class="bitdiff"> (P == 0 &amp;&amp; U == 1)</span></h4><a id="SRSIA_A1_AS"/><p class="asm-code">SRS<a href="#sa_ia_1" title="Optional suffix to indicate the Increment After variant">{IA}</a>{<a href="#sa_c_1" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;c&gt;</a>}{<a href="#sa_q" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;q&gt;</a>} SP<a href="#sa_0d33" title="The address adjusted by the size of data loaded is written back to the base register (field &quot;W&quot;)">{!}</a>, #<a href="#sa_mode" title="Mode whose Banked SP is used as the base register number (field &quot;mode&quot;)">&lt;mode&gt;</a></p></div><div class="encoding"><h4 class="encoding">Increment Before<span class="bitdiff"> (P == 1 &amp;&amp; U == 1)</span></h4><a id="SRSIB_A1_AS"/><p class="asm-code">SRSIB{<a href="#sa_c_1" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;c&gt;</a>}{<a href="#sa_q" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;q&gt;</a>} SP<a href="#sa_0d33" title="The address adjusted by the size of data loaded is written back to the base register (field &quot;W&quot;)">{!}</a>, #<a href="#sa_mode" title="Mode whose Banked SP is used as the base register number (field &quot;mode&quot;)">&lt;mode&gt;</a></p></div><p class="pseudocode">constant wback = (W == '1');  constant increment = (U == '1');  constant wordhigher = (P == U);</p>
29    <h3 class="classheading"><a id="iclass_t1"/>T1</h3><div class="regdiagram-16x2"><table class="regdiagram"><thead><tr><td>15</td><td>14</td><td>13</td><td>12</td><td>11</td><td>10</td><td>9</td><td>8</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td><td>15</td><td>14</td><td>13</td><td>12</td><td>11</td><td>10</td><td>9</td><td>8</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr></thead><tbody><tr class="firstrow"><td class="l">1</td><td>1</td><td>1</td><td>0</td><td>1</td><td>0</td><td class="r">0</td><td class="l">0</td><td class="r">0</td><td class="lr">0</td><td class="lr">W</td><td class="lr">0</td><td class="l">(1)</td><td>(1)</td><td>(0)</td><td class="r">(1)</td><td class="lr">(1)</td><td class="lr">(1)</td><td class="l">(0)</td><td>(0)</td><td>(0)</td><td>(0)</td><td>(0)</td><td>(0)</td><td>(0)</td><td>(0)</td><td class="r">(0)</td><td colspan="5" class="lr">mode</td></tr></tbody></table></div><div class="encoding"><h4 class="encoding">T1</h4><a id="SRS_T1_AS"/><p class="asm-code">SRSDB{<a href="#sa_c" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;c&gt;</a>}{<a href="#sa_q" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;q&gt;</a>} SP<a href="#sa_0d33" title="The address adjusted by the size of data loaded is written back to the base register (field &quot;W&quot;)">{!}</a>, #<a href="#sa_mode" title="Mode whose Banked SP is used as the base register number (field &quot;mode&quot;)">&lt;mode&gt;</a></p></div><p class="pseudocode">constant wback = (W == '1');  constant increment = FALSE;  constant wordhigher = FALSE;</p>
30    <h3 class="classheading"><a id="iclass_t2"/>T2</h3><div class="regdiagram-16x2"><table class="regdiagram"><thead><tr><td>15</td><td>14</td><td>13</td><td>12</td><td>11</td><td>10</td><td>9</td><td>8</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td><td>15</td><td>14</td><td>13</td><td>12</td><td>11</td><td>10</td><td>9</td><td>8</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td><td>0</td></tr></thead><tbody><tr class="firstrow"><td class="l">1</td><td>1</td><td>1</td><td>0</td><td>1</td><td>0</td><td class="r">0</td><td class="l">1</td><td class="r">1</td><td class="lr">0</td><td class="lr">W</td><td class="lr">0</td><td class="l">(1)</td><td>(1)</td><td>(0)</td><td class="r">(1)</td><td class="lr">(1)</td><td class="lr">(1)</td><td class="l">(0)</td><td>(0)</td><td>(0)</td><td>(0)</td><td>(0)</td><td>(0)</td><td>(0)</td><td>(0)</td><td class="r">(0)</td><td colspan="5" class="lr">mode</td></tr></tbody></table></div><div class="encoding"><h4 class="encoding">T2</h4><a id="SRS_T2_AS"/><p class="asm-code">SRS<a href="#sa_ia" title="Optional suffix for Increment After form">{IA}</a>{<a href="#sa_c" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;c&gt;</a>}{<a href="#sa_q" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;q&gt;</a>} SP<a href="#sa_0d33" title="The address adjusted by the size of data loaded is written back to the base register (field &quot;W&quot;)">{!}</a>, #<a href="#sa_mode" title="Mode whose Banked SP is used as the base register number (field &quot;mode&quot;)">&lt;mode&gt;</a></p></div><p class="pseudocode">constant wback = (W == '1');  constant increment = TRUE;  constant wordhigher = FALSE;</p>
31  <div class="encoding-notes">
32      <p class="aml">For more information about the <span class="arm-defined-word">constrained unpredictable</span> behavior of this instruction, see <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="CJAEGDJC">Architectural Constraints on UNPREDICTABLE behaviors</a>, and particularly <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="CEGDFDHJ">SRS (T32)</a> and <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="CEGJIFIF">SRS (A32)</a>.</p>
33    </div><h3 class="explanations">Assembler Symbols</h3><div class="explanations"><table><col class="asyn-l"/><col class="asyn-r"/><tr><td>IA</td><td><a id="sa_ia_1"/>
34        
35          
36          
37        
38        
39          <p class="aml">For encoding A1: is an optional suffix to indicate the Increment After variant.</p>
40        
41      </td></tr><tr><td/><td><a id="sa_ia"/>
42        
43          
44          
45        
46        
47          <p class="aml">For encoding T2: is an optional suffix for the Increment After form.</p>
48        
49      </td></tr></table><table><col class="asyn-l"/><col class="asyn-r"/><tr><td>&lt;c&gt;</td><td><a id="sa_c_1"/>
50        
51          
52          
53          
54          
55        
56        
57          <p class="aml">For encoding A1: see <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="Babbefhf">Standard assembler syntax fields</a>. &lt;c&gt; must be AL or omitted.</p>
58        
59      </td></tr><tr><td/><td><a id="sa_c"/>
60        
61          
62        
63        
64          <p class="aml">For encoding T1 and T2: see <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="Babbefhf">Standard assembler syntax fields</a>.</p>
65        
66      </td></tr></table><table><col class="asyn-l"/><col class="asyn-r"/><tr><td>&lt;q&gt;</td><td><a id="sa_q"/>
67        
68          <p class="aml">See <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="Babbefhf">Standard assembler syntax fields</a>.</p>
69        
70      </td></tr></table><table><col class="asyn-l"/><col class="asyn-r"/><tr><td>!</td><td><a id="sa_0d33"/>
71        
72          <p class="aml">The address adjusted by the size of the data loaded is written back to the base register. If specified, it is encoded in the "W" field as 1, otherwise this field defaults to 0.</p>
73        
74      </td></tr></table><table><col class="asyn-l"/><col class="asyn-r"/><tr><td>&lt;mode&gt;</td><td><a id="sa_mode"/>
75        
76          <p class="aml">Is the number of the mode whose Banked SP is used as the base register, encoded in the "mode" field. For details of PE modes and their numbers see <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="CIHEDADE">AArch32 PE mode descriptions</a>.</p>
77        
78      </td></tr></table></div><div class="syntax-notes">
79      <p class="aml"><span class="asm-code">SRSFA</span>, <span class="asm-code">SRSEA</span>, <span class="asm-code">SRSFD</span>, and <span class="asm-code">SRSED</span> are pseudo-instructions for <span class="asm-code">SRSIB</span>, <span class="asm-code">SRSIA</span>, <span class="asm-code">SRSDB</span>, and <span class="asm-code">SRSDA</span> respectively, referring to their use for pushing data onto Full Ascending, Empty Ascending, Full Descending, and Empty Descending stacks.</p>
80    </div>
81    <div class="ps"><a id="execute"/><h3 class="pseudocode">Operation</h3>
82      <p class="pseudocode">if <a href="shared_pseudocode.html#impl-shared.CurrentInstrSet.0" title="function: InstrSet CurrentInstrSet()">CurrentInstrSet</a>() == <a href="shared_pseudocode.html#InstrSet_A32" title="enumeration InstrSet {InstrSet_A64, InstrSet_A32, InstrSet_T32}">InstrSet_A32</a> then
83    if <a href="shared_pseudocode.html#impl-aarch32.ConditionPassed.0" title="function: boolean ConditionPassed()">ConditionPassed</a>() then
84        EncodingSpecificOperations();
85        if PSTATE.EL == <a href="shared_pseudocode.html#EL2" title="constant bits(2) EL2 = '10'">EL2</a> then          // UNDEFINED at EL2
86            UNDEFINED;
87    
88        // Check for UNPREDICTABLE cases. The definition of UNPREDICTABLE does not permit these
89        // to be security holes
90        if PSTATE.M IN {<a href="shared_pseudocode.html#M32_User" title="constant bits(5) M32_User = '10000'">M32_User</a>,<a href="shared_pseudocode.html#M32_System" title="constant bits(5) M32_System = '11111'">M32_System</a>} then
91            UNPREDICTABLE;
92        elsif mode == <a href="shared_pseudocode.html#M32_Hyp" title="constant bits(5) M32_Hyp = '11010'">M32_Hyp</a> then        // Check for attempt to access Hyp mode SP
93            UNPREDICTABLE;
94        elsif mode == <a href="shared_pseudocode.html#M32_Monitor" title="constant bits(5) M32_Monitor = '10110'">M32_Monitor</a> then    // Check for attempt to access Monitor mode SP
95            if !<a href="shared_pseudocode.html#impl-shared.HaveEL.1" title="function: boolean HaveEL(bits(2) el)">HaveEL</a>(<a href="shared_pseudocode.html#EL3" title="constant bits(2) EL3 = '11'">EL3</a>) || <a href="shared_pseudocode.html#impl-shared.CurrentSecurityState.0" title="function: SecurityState CurrentSecurityState()">CurrentSecurityState</a>() != <a href="shared_pseudocode.html#SS_Secure" title="enumeration SecurityState { SS_NonSecure, SS_Root, SS_Realm, SS_Secure }">SS_Secure</a> then
96                UNPREDICTABLE;
97            elsif !<a href="shared_pseudocode.html#impl-shared.ELUsingAArch32.1" title="function: boolean ELUsingAArch32(bits(2) el)">ELUsingAArch32</a>(<a href="shared_pseudocode.html#EL3" title="constant bits(2) EL3 = '11'">EL3</a>) then
98                <a href="shared_pseudocode.html#AArch64.MonitorModeTrap.0" title="function: AArch64.MonitorModeTrap()">AArch64.MonitorModeTrap</a>();
99        elsif <a href="shared_pseudocode.html#impl-aarch32.BadMode.1" title="function: boolean BadMode(bits(5) mode)">BadMode</a>(mode) then
100            UNPREDICTABLE;
101    
102        constant base = <a href="shared_pseudocode.html#impl-aarch32.Rmode.read.2" title="accessor: bits(32) Rmode[integer n, bits(5) mode]">Rmode</a>[13,mode];
103        address = if increment then base else base-8;
104        if wordhigher then address = address+4;
105        <a href="shared_pseudocode.html#impl-aarch32.MemA.write.2" title="accessor: MemA[bits(32) address, integer size] = bits(8*size) value">MemA</a>[address,4]   = <a href="shared_pseudocode.html#impl-aarch32.LR.read.none" title="accessor: bits(32) LR">LR</a>;
106        <a href="shared_pseudocode.html#impl-aarch32.MemA.write.2" title="accessor: MemA[bits(32) address, integer size] = bits(8*size) value">MemA</a>[address+4,4] = <a href="shared_pseudocode.html#impl-shared.SPSR_curr.read.0" title="accessor: bits(32) SPSR_curr[]">SPSR_curr</a>[];
107        if wback then <a href="shared_pseudocode.html#impl-aarch32.Rmode.write.2" title="accessor: Rmode[integer n, bits(5) mode] = bits(32) value">Rmode</a>[13,mode] = if increment then base+8 else base-8;
108else
109    if <a href="shared_pseudocode.html#impl-aarch32.ConditionPassed.0" title="function: boolean ConditionPassed()">ConditionPassed</a>() then
110        EncodingSpecificOperations();
111        if PSTATE.EL == <a href="shared_pseudocode.html#EL2" title="constant bits(2) EL2 = '10'">EL2</a> then          // UNDEFINED at EL2
112            UNDEFINED;
113    
114        // Check for UNPREDICTABLE cases. The definition of UNPREDICTABLE does not permit these
115        // to be security holes
116        if PSTATE.M IN {<a href="shared_pseudocode.html#M32_User" title="constant bits(5) M32_User = '10000'">M32_User</a>,<a href="shared_pseudocode.html#M32_System" title="constant bits(5) M32_System = '11111'">M32_System</a>} then
117            UNPREDICTABLE;
118        elsif mode == <a href="shared_pseudocode.html#M32_Hyp" title="constant bits(5) M32_Hyp = '11010'">M32_Hyp</a> then        // Check for attempt to access Hyp mode SP
119            UNPREDICTABLE;
120        elsif mode == <a href="shared_pseudocode.html#M32_Monitor" title="constant bits(5) M32_Monitor = '10110'">M32_Monitor</a> then    // Check for attempt to access Monitor mode SP
121            if !<a href="shared_pseudocode.html#impl-shared.HaveEL.1" title="function: boolean HaveEL(bits(2) el)">HaveEL</a>(<a href="shared_pseudocode.html#EL3" title="constant bits(2) EL3 = '11'">EL3</a>) || <a href="shared_pseudocode.html#impl-shared.CurrentSecurityState.0" title="function: SecurityState CurrentSecurityState()">CurrentSecurityState</a>() != <a href="shared_pseudocode.html#SS_Secure" title="enumeration SecurityState { SS_NonSecure, SS_Root, SS_Realm, SS_Secure }">SS_Secure</a> then
122                UNPREDICTABLE;
123            elsif !<a href="shared_pseudocode.html#impl-shared.ELUsingAArch32.1" title="function: boolean ELUsingAArch32(bits(2) el)">ELUsingAArch32</a>(<a href="shared_pseudocode.html#EL3" title="constant bits(2) EL3 = '11'">EL3</a>) then
124                <a href="shared_pseudocode.html#AArch64.MonitorModeTrap.0" title="function: AArch64.MonitorModeTrap()">AArch64.MonitorModeTrap</a>();
125        elsif <a href="shared_pseudocode.html#impl-aarch32.BadMode.1" title="function: boolean BadMode(bits(5) mode)">BadMode</a>(mode) then
126            UNPREDICTABLE;
127    
128        constant base = <a href="shared_pseudocode.html#impl-aarch32.Rmode.read.2" title="accessor: bits(32) Rmode[integer n, bits(5) mode]">Rmode</a>[13,mode];
129        address = if increment then base else base-8;
130        if wordhigher then address = address+4;
131        <a href="shared_pseudocode.html#impl-aarch32.MemA.write.2" title="accessor: MemA[bits(32) address, integer size] = bits(8*size) value">MemA</a>[address,4]   = <a href="shared_pseudocode.html#impl-aarch32.LR.read.none" title="accessor: bits(32) LR">LR</a>;
132        <a href="shared_pseudocode.html#impl-aarch32.MemA.write.2" title="accessor: MemA[bits(32) address, integer size] = bits(8*size) value">MemA</a>[address+4,4] = <a href="shared_pseudocode.html#impl-shared.SPSR_curr.read.0" title="accessor: bits(32) SPSR_curr[]">SPSR_curr</a>[];
133        if wback then <a href="shared_pseudocode.html#impl-aarch32.Rmode.write.2" title="accessor: Rmode[integer n, bits(5) mode] = bits(32) value">Rmode</a>[13,mode] = if increment then base+8 else base-8;</p>
134    </div>
135  <h3>CONSTRAINED UNPREDICTABLE behavior</h3><p>If <span class="pseudocode">PSTATE.M IN {M32_User,M32_System}</span>, then one of the following behaviors must occur:</p><ul><li>The instruction is <span class="arm-defined-word">undefined</span>.</li><li>The instruction executes as <span class="asm-code">NOP</span>.</li></ul><p>If <span class="pseudocode">mode == M32_Hyp</span>, then one of the following behaviors must occur:</p><ul><li>The instruction is <span class="arm-defined-word">undefined</span>.</li><li>The instruction executes as <span class="asm-code">NOP</span>.</li></ul><p>If <span class="pseudocode">mode == M32_Monitor &amp;&amp; (!HaveEL(EL3) || CurrentSecurityState() != SS_Secure)</span>, then one of the following behaviors must occur:</p><ul><li>The instruction is <span class="arm-defined-word">undefined</span>.</li><li>The instruction executes as <span class="asm-code">NOP</span>.</li></ul><p>If <span class="pseudocode">BadMode(mode)</span>, then one of the following behaviors must occur:</p><ul><li>The instruction is <span class="arm-defined-word">undefined</span>.</li><li>The instruction executes as <span class="asm-code">NOP</span>.</li><li>The instruction stores to the stack of the mode in which it is executed.</li><li>The instruction stores to an <span class="arm-defined-word">unknown</span> address, and if the instruction specifies writeback then any general-purpose register that can be accessed from the current Exception level without a privilege violation becomes <span class="arm-defined-word">unknown</span>.</li></ul><hr/><table style="margin: 0 auto;"><tr><td><div class="topbar"><a href="index.html">Base Instructions</a></div></td><td><div class="topbar"><a href="fpsimdindex.html">SIMD&amp;FP Instructions</a></div></td><td><div class="topbar"><a href="a32_encindex.html">A32 Instructions by Encoding</a></div></td><td><div class="topbar"><a href="t32_encindex.html">T32 Instructions by Encoding</a></div></td><td><div class="topbar"><a href="shared_pseudocode.html">Shared Pseudocode</a></div></td><td><div class="topbar"><a href="notice.html">Proprietary Notice</a></div></td></tr></table><p class="versions">
136      Internal version only: isa v01_31, pseudocode v2024-09_rel
137      ; Build timestamp: 2024-09-26T13:26
138    </p><p class="copyconf">
139      Copyright © 2010-2024 Arm Limited or its affiliates. All rights reserved.
140      This document is Non-Confidential.
141    </p></body></html>