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
21.9 KiB144 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>CPS, CPSID, CPSIE -- 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">CPS, CPSID, CPSIE</h2>
4      <p class="aml">Change PE State changes one or more of the <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="BEIDIGBH">PSTATE</a>.{A, I, F} interrupt mask bits and, optionally, the <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="BEIDIGBH">PSTATE</a>.M mode field, without changing any other <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="BEIDIGBH">PSTATE</a> bits.</p>
5      <p class="aml"><span class="asm-code">CPS</span> is treated as <span class="asm-code">NOP</span> if executed in User mode unless it is defined as being <span class="arm-defined-word">constrained unpredictable</span> elsewhere in this section.</p>
6      <p class="aml">The PE checks whether the value being written to PSTATE.M is legal. See <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="CHDDFIGE">Illegal changes to PSTATE.M</a>.</p>
7    
8    <p class="desc">
9      It has encodings from the following instruction sets:
10       A32 (
11      <a href="#iclass_a1">A1</a>
12      )
13       and 
14       T32 (
15      <a href="#iclass_t1">T1</a>
16       and 
17      <a href="#iclass_t2">T2</a>
18      )
19      .
20    </p>
21    <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>0</td><td>0</td><td>0</td><td>1</td><td>0</td><td>0</td><td>0</td><td class="r">0</td><td colspan="2" class="lr">imod</td><td class="lr">M</td><td class="lr">0</td><td class="lr">(0)</td><td class="lr">(0)</td><td class="lr">(0)</td><td class="lr">(0)</td><td class="lr">(0)</td><td class="lr">(0)</td><td class="lr">(0)</td><td class="lr">A</td><td class="lr">I</td><td class="lr">F</td><td class="lr">0</td><td colspan="5" class="lr">mode</td></tr></tbody></table></div><div class="encoding"><h4 class="encoding">Change mode<span class="bitdiff"> (imod == 00 &amp;&amp; M == 1)</span></h4><a id="CPS_A1_AS"/><p class="asm-code">CPS{<a href="#sa_q" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;q&gt;</a>} #<a href="#sa_mode" title="Number of mode to change to [0-31] (field &quot;mode&quot;)">&lt;mode&gt;</a>
22        //
23      
24        (Cannot be conditional)
25      </p></div><div class="encoding"><h4 class="encoding">Interrupt disable<span class="bitdiff"> (imod == 11 &amp;&amp; M == 0)</span></h4><a id="CPSID_A1_AS"/><p class="asm-code">CPSID{<a href="#sa_q" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;q&gt;</a>} <a href="#sa_iflags" title="Sequence of one or more of following, specifying which interrupt mask bits are affected:&#10;$a: Sets the A bit in the instruction, causing the specified effect on {xref{ARMARM_BEIDIGBH}{PSTATE}}">&lt;iflags&gt;</a>
26        //
27      
28        (Cannot be conditional)
29      </p></div><div class="encoding"><h4 class="encoding">Interrupt disable and change mode<span class="bitdiff"> (imod == 11 &amp;&amp; M == 1)</span></h4><a id="CPSID_A1_ASM"/><p class="asm-code">CPSID{<a href="#sa_q" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;q&gt;</a>} <a href="#sa_iflags" title="Sequence of one or more of following, specifying which interrupt mask bits are affected:&#10;$a: Sets the A bit in the instruction, causing the specified effect on {xref{ARMARM_BEIDIGBH}{PSTATE}}">&lt;iflags&gt;</a> , #<a href="#sa_mode" title="Number of mode to change to [0-31] (field &quot;mode&quot;)">&lt;mode&gt;</a>
30        //
31      
32        (Cannot be conditional)
33      </p></div><div class="encoding"><h4 class="encoding">Interrupt enable<span class="bitdiff"> (imod == 10 &amp;&amp; M == 0)</span></h4><a id="CPSIE_A1_AS"/><p class="asm-code">CPSIE{<a href="#sa_q" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;q&gt;</a>} <a href="#sa_iflags" title="Sequence of one or more of following, specifying which interrupt mask bits are affected:&#10;$a: Sets the A bit in the instruction, causing the specified effect on {xref{ARMARM_BEIDIGBH}{PSTATE}}">&lt;iflags&gt;</a>
34        //
35      
36        (Cannot be conditional)
37      </p></div><div class="encoding"><h4 class="encoding">Interrupt enable and change mode<span class="bitdiff"> (imod == 10 &amp;&amp; M == 1)</span></h4><a id="CPSIE_A1_ASM"/><p class="asm-code">CPSIE{<a href="#sa_q" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;q&gt;</a>} <a href="#sa_iflags" title="Sequence of one or more of following, specifying which interrupt mask bits are affected:&#10;$a: Sets the A bit in the instruction, causing the specified effect on {xref{ARMARM_BEIDIGBH}{PSTATE}}">&lt;iflags&gt;</a> , #<a href="#sa_mode" title="Number of mode to change to [0-31] (field &quot;mode&quot;)">&lt;mode&gt;</a>
38        //
39      
40        (Cannot be conditional)
41      </p></div><p class="pseudocode">if mode != '00000' &amp;&amp; M == '0' then UNPREDICTABLE;
42if (imod&lt;1&gt; == '1' &amp;&amp; A:I:F == '000') || (imod&lt;1&gt; == '0' &amp;&amp; A:I:F != '000') then UNPREDICTABLE;
43constant enable = (imod == '10');  constant disable = (imod == '11');
44constant changemode = (M == '1'); constant pemode = mode;
45constant affectA = (A == '1');  constant affectI = (I == '1');  constant affectF = (F == '1');
46if (imod == '00' &amp;&amp; M == '0') || imod == '01' then UNPREDICTABLE;</p><h3>CONSTRAINED UNPREDICTABLE behavior</h3><p>If <span class="pseudocode">imod == '01'</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">imod == '00' &amp;&amp; M == '0'</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 != '00000' &amp;&amp; M == '0'</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 executes with the additional decode: changemode = TRUE.</li><li>The instruction executes as described, and the value specified by mode is ignored. There are no additional side-effects.</li></ul><p>If <span class="pseudocode">imod&lt;1&gt; == '1' &amp;&amp; A:I:F == '000'</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 behaves as if imod&lt;1&gt; == '0'.</li><li>The instruction behaves as if A:I:F has an <span class="arm-defined-word">unknown</span> nonzero value.</li></ul><p>If <span class="pseudocode">imod&lt;1&gt; == '0' &amp;&amp; A:I:F != '000'</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 behaves as if imod&lt;1&gt; == '1'.</li><li>The instruction behaves as if A:I:F == '000'.</li></ul>
47    <h3 class="classheading"><a id="iclass_t1"/>T1</h3><p class="desc"/><div class="regdiagram-16"><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></tr></thead><tbody><tr class="firstrow"><td class="l">1</td><td>0</td><td>1</td><td>1</td><td>0</td><td>1</td><td>1</td><td>0</td><td>0</td><td class="r">1</td><td class="lr">1</td><td class="lr">im</td><td class="lr">(0)</td><td class="lr">A</td><td class="lr">I</td><td class="lr">F</td></tr></tbody></table></div><div class="encoding"><h4 class="encoding">Interrupt disable<span class="bitdiff"> (im == 1)</span></h4><a id="CPSID_T1_AS"/><p class="asm-code">CPSID{<a href="#sa_q" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;q&gt;</a>} <a href="#sa_iflags" title="Sequence of one or more of following, specifying which interrupt mask bits are affected:&#10;$a: Sets the A bit in the instruction, causing the specified effect on {xref{ARMARM_BEIDIGBH}{PSTATE}}">&lt;iflags&gt;</a>
48        //
49      
50        (Not permitted in IT block)
51      </p></div><div class="encoding"><h4 class="encoding">Interrupt enable<span class="bitdiff"> (im == 0)</span></h4><a id="CPSIE_T1_AS"/><p class="asm-code">CPSIE{<a href="#sa_q" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;q&gt;</a>} <a href="#sa_iflags" title="Sequence of one or more of following, specifying which interrupt mask bits are affected:&#10;$a: Sets the A bit in the instruction, causing the specified effect on {xref{ARMARM_BEIDIGBH}{PSTATE}}">&lt;iflags&gt;</a>
52        //
53      
54        (Not permitted in IT block)
55      </p></div><p class="pseudocode">if A:I:F == '000' then UNPREDICTABLE;
56constant enable = (im == '0');  constant disable = (im == '1');  constant changemode = FALSE;
57constant affectA = (A == '1');  constant affectI = (I == '1');  constant affectF = (F == '1');
58constant bits(5) pemode = bits(5) UNKNOWN;
59if <a href="shared_pseudocode.html#impl-aarch32.InITBlock.0" title="function: boolean InITBlock()">InITBlock</a>() then UNPREDICTABLE;</p><h3>CONSTRAINED UNPREDICTABLE behavior</h3><p>If <span class="pseudocode">A:I:F == '000'</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>
60    <h3 class="classheading"><a id="iclass_t2"/>T2</h3><p class="desc"/><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>1</td><td>0</td><td>0</td><td>1</td><td>1</td><td>1</td><td>0</td><td>1</td><td class="r">0</td><td class="lr">(1)</td><td class="lr">(1)</td><td class="lr">(1)</td><td class="lr">(1)</td><td class="l">1</td><td class="r">0</td><td class="lr">(0)</td><td class="lr">0</td><td class="lr">(0)</td><td colspan="2" class="lr">imod</td><td class="lr">M</td><td class="lr">A</td><td class="lr">I</td><td class="lr">F</td><td colspan="5" class="lr">mode</td></tr></tbody></table></div><div class="encoding"><h4 class="encoding">Change mode<span class="bitdiff"> (imod == 00 &amp;&amp; M == 1)</span></h4><a id="CPS_T2_AS"/><p class="asm-code">CPS{<a href="#sa_q" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;q&gt;</a>} #<a href="#sa_mode" title="Number of mode to change to [0-31] (field &quot;mode&quot;)">&lt;mode&gt;</a>
61        //
62      
63        (Not permitted in IT block)
64      </p></div><div class="encoding"><h4 class="encoding">Interrupt disable<span class="bitdiff"> (imod == 11 &amp;&amp; M == 0)</span></h4><a id="CPSID_T2_AS"/><p class="asm-code">CPSID.W <a href="#sa_iflags" title="Sequence of one or more of following, specifying which interrupt mask bits are affected:&#10;$a: Sets the A bit in the instruction, causing the specified effect on {xref{ARMARM_BEIDIGBH}{PSTATE}}">&lt;iflags&gt;</a>
65        //
66      
67        (Not permitted in IT block)
68      </p></div><div class="encoding"><h4 class="encoding">Interrupt disable and change mode<span class="bitdiff"> (imod == 11 &amp;&amp; M == 1)</span></h4><a id="CPSID_T2_ASM"/><p class="asm-code">CPSID{<a href="#sa_q" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;q&gt;</a>} <a href="#sa_iflags" title="Sequence of one or more of following, specifying which interrupt mask bits are affected:&#10;$a: Sets the A bit in the instruction, causing the specified effect on {xref{ARMARM_BEIDIGBH}{PSTATE}}">&lt;iflags&gt;</a>, #<a href="#sa_mode" title="Number of mode to change to [0-31] (field &quot;mode&quot;)">&lt;mode&gt;</a>
69        //
70      
71        (Not permitted in IT block)
72      </p></div><div class="encoding"><h4 class="encoding">Interrupt enable<span class="bitdiff"> (imod == 10 &amp;&amp; M == 0)</span></h4><a id="CPSIE_T2_AS"/><p class="asm-code">CPSIE.W <a href="#sa_iflags" title="Sequence of one or more of following, specifying which interrupt mask bits are affected:&#10;$a: Sets the A bit in the instruction, causing the specified effect on {xref{ARMARM_BEIDIGBH}{PSTATE}}">&lt;iflags&gt;</a>
73        //
74      
75        (Not permitted in IT block)
76      </p></div><div class="encoding"><h4 class="encoding">Interrupt enable and change mode<span class="bitdiff"> (imod == 10 &amp;&amp; M == 1)</span></h4><a id="CPSIE_T2_ASM"/><p class="asm-code">CPSIE{<a href="#sa_q" title="See {xref{ARMARM_Babbefhf}{Standard assembler syntax fields}}">&lt;q&gt;</a>} <a href="#sa_iflags" title="Sequence of one or more of following, specifying which interrupt mask bits are affected:&#10;$a: Sets the A bit in the instruction, causing the specified effect on {xref{ARMARM_BEIDIGBH}{PSTATE}}">&lt;iflags&gt;</a>, #<a href="#sa_mode" title="Number of mode to change to [0-31] (field &quot;mode&quot;)">&lt;mode&gt;</a>
77        //
78      
79        (Not permitted in IT block)
80      </p></div><p class="pseudocode">if imod == '00' &amp;&amp; M == '0' then SEE "Hint instructions";
81if mode != '00000' &amp;&amp; M == '0' then UNPREDICTABLE;
82if (imod&lt;1&gt; == '1' &amp;&amp; A:I:F == '000') || (imod&lt;1&gt; == '0' &amp;&amp; A:I:F != '000') then UNPREDICTABLE;
83constant enable = (imod == '10');  constant disable = (imod == '11');
84constant changemode = (M == '1'); constant pemode = mode;
85constant affectA = (A == '1');  constant affectI = (I == '1');  constant affectF = (F == '1');
86if imod == '01' || <a href="shared_pseudocode.html#impl-aarch32.InITBlock.0" title="function: boolean InITBlock()">InITBlock</a>() then UNPREDICTABLE;</p><h3>CONSTRAINED UNPREDICTABLE behavior</h3><p>If <span class="pseudocode">imod == '01'</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 != '00000' &amp;&amp; M == '0'</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 executes with the additional decode: changemode = TRUE.</li><li>The instruction executes as described, and the value specified by mode is ignored. There are no additional side-effects.</li></ul><p>If <span class="pseudocode">imod&lt;1&gt; == '1' &amp;&amp; A:I:F == '000'</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 behaves as if imod&lt;1&gt; == '0'.</li><li>The instruction behaves as if A:I:F has an <span class="arm-defined-word">unknown</span> nonzero value.</li></ul><p>If <span class="pseudocode">imod&lt;1&gt; == '0' &amp;&amp; A:I:F != '000'</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 behaves as if imod&lt;1&gt; == '1'.</li><li>The instruction behaves as if A:I:F == '000'.</li></ul>
87  <div class="encoding-notes">
88      <p class="aml">Hint instructions: In encoding T2, if the imod field is 00 and the M bit is 0, a hint instruction is encoded. To determine which hint instruction, see <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="T32.encoding_index.bcrtrl">Branches and miscellaneous control</a>.</p>
89      <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>.</p>
90    </div><h3 class="explanations">Assembler Symbols</h3><div class="explanations"><table><col class="asyn-l"/><col class="asyn-r"/><tr><td>&lt;q&gt;</td><td><a id="sa_q"/>
91        
92          <p class="aml">See <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="Babbefhf">Standard assembler syntax fields</a>.</p>
93        
94      </td></tr></table><table><col class="asyn-l"/><col class="asyn-r"/><tr><td>&lt;iflags&gt;</td><td><a id="sa_iflags"/>
95        
96          <p class="aml">Is a sequence of one or more of the following, specifying which interrupt mask bits are affected:</p>
97          <dl>
98            <dt>a</dt><dd>Sets the A bit in the instruction, causing the specified effect on <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="BEIDIGBH">PSTATE</a>.A, the SError interrupt mask bit.</dd>
99            <dt>i</dt><dd>Sets the I bit in the instruction, causing the specified effect on <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="BEIDIGBH">PSTATE</a>.I, the IRQ interrupt mask bit.</dd>
100            <dt>f</dt><dd>Sets the F bit in the instruction, causing the specified effect on <a class="armarm-xref" title="Reference to Armv8 ARM section" data-linkend="BEIDIGBH">PSTATE</a>.F, the FIQ interrupt mask bit.</dd>
101          </dl>
102        
103      </td></tr></table><table><col class="asyn-l"/><col class="asyn-r"/><tr><td>&lt;mode&gt;</td><td><a id="sa_mode"/>
104        
105          <p class="aml">Is the number of the mode to change to, in the range 0 to 31, encoded in the "mode" field.</p>
106        
107      </td></tr></table></div><div class="syntax-notes"/>
108    <div class="ps"><a id="execute"/><h3 class="pseudocode">Operation</h3>
109      <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
110    EncodingSpecificOperations();
111    if PSTATE.EL != <a href="shared_pseudocode.html#EL0" title="constant bits(2) EL0 = '00'">EL0</a> then
112        if enable then
113            if affectA then PSTATE.A = '0';
114            if affectI then PSTATE.I = '0';
115            if affectF then PSTATE.F = '0';
116        if disable then
117            if affectA then PSTATE.A = '1';
118            if affectI then PSTATE.I = '1';
119            if affectF then PSTATE.F = '1';
120        if changemode then
121            // AArch32.WriteModeByInstr() sets PSTATE.IL to 1 if this is an illegal mode change.
122            <a href="shared_pseudocode.html#AArch32.WriteModeByInstr.1" title="function: AArch32.WriteModeByInstr(bits(5) mode)">AArch32.WriteModeByInstr</a>(pemode);
123else
124    EncodingSpecificOperations();
125    if PSTATE.EL != <a href="shared_pseudocode.html#EL0" title="constant bits(2) EL0 = '00'">EL0</a> then
126        if enable then
127            if affectA then PSTATE.A = '0';
128            if affectI then PSTATE.I = '0';
129            if affectF then PSTATE.F = '0';
130        if disable then
131            if affectA then PSTATE.A = '1';
132            if affectI then PSTATE.I = '1';
133            if affectF then PSTATE.F = '1';
134        if changemode then
135            // AArch32.WriteModeByInstr() sets PSTATE.IL to 1 if this is an illegal mode change.
136            <a href="shared_pseudocode.html#AArch32.WriteModeByInstr.1" title="function: AArch32.WriteModeByInstr(bits(5) mode)">AArch32.WriteModeByInstr</a>(pemode);</p>
137    </div>
138  <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">
139      Internal version only: isa v01_31, pseudocode v2024-09_rel
140      ; Build timestamp: 2024-09-26T13:26
141    </p><p class="copyconf">
142      Copyright © 2010-2024 Arm Limited or its affiliates. All rights reserved.
143      This document is Non-Confidential.
144    </p></body></html>