mirror of
https://github.com/pound-emu/ballistic.git
synced 2026-01-31 01:15:21 +01:00
515 lines
29 KiB
XML
515 lines
29 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="STR_reg_fpsimd" title="STR (register, SIMD&FP) -- A64" type="instruction">
|
|
<docvars>
|
|
<docvar key="instr-class" value="fpsimd" />
|
|
<docvar key="isa" value="A64" />
|
|
<docvar key="mnemonic" value="STR" />
|
|
<docvar key="offset-type" value="off-reg" />
|
|
</docvars>
|
|
<heading>STR (register, SIMD&FP)</heading>
|
|
<desc>
|
|
<brief>
|
|
<para>Store SIMD&FP register (register offset)</para>
|
|
</brief>
|
|
<authored>
|
|
<para>Store SIMD&FP register (register offset). This instruction stores a single SIMD&FP register to memory. The address that is used for the store is calculated from a base register value and an offset register value. The offset can be optionally shifted and extended.</para>
|
|
<para>Depending on the settings in the <xref linkend="AArch64.cpacr_el1">CPACR_EL1</xref>, <xref linkend="AArch64.cptr_el2">CPTR_EL2</xref>, and <xref linkend="AArch64.cptr_el3">CPTR_EL3</xref> registers, and the current Security state and Exception level, an attempt to execute the instruction might be trapped.</para>
|
|
</authored>
|
|
</desc>
|
|
<operationalnotes>
|
|
<para>If PSTATE.DIT is 1, the timing of this instruction is insensitive to the value of the data being loaded or stored.</para>
|
|
</operationalnotes>
|
|
<alias_list howmany="0"></alias_list>
|
|
<classes>
|
|
<iclass name="SIMD&FP registers" oneof="1" id="iclass_fpsimd" no_encodings="6" isa="A64">
|
|
<docvars>
|
|
<docvar key="instr-class" value="fpsimd" />
|
|
<docvar key="isa" value="A64" />
|
|
<docvar key="mnemonic" value="STR" />
|
|
<docvar key="offset-type" value="off-reg" />
|
|
</docvars>
|
|
<iclassintro count="6"></iclassintro>
|
|
<regdiagram form="32" psname="aarch64/instrs/memory/single/simdfp/register" tworows="1">
|
|
<box hibit="31" width="2" name="size" usename="1">
|
|
<c colspan="2"></c>
|
|
</box>
|
|
<box hibit="29" width="3" settings="3">
|
|
<c>1</c>
|
|
<c>1</c>
|
|
<c>1</c>
|
|
</box>
|
|
<box hibit="26" name="V" settings="1">
|
|
<c>1</c>
|
|
</box>
|
|
<box hibit="25" width="2" settings="2">
|
|
<c>0</c>
|
|
<c>0</c>
|
|
</box>
|
|
<box hibit="23" width="2" name="opc" usename="1" settings="1" psbits="xx">
|
|
<c>x</c>
|
|
<c>0</c>
|
|
</box>
|
|
<box hibit="21" settings="1">
|
|
<c>1</c>
|
|
</box>
|
|
<box hibit="20" width="5" name="Rm" usename="1">
|
|
<c colspan="5"></c>
|
|
</box>
|
|
<box hibit="15" width="3" name="option" usename="1">
|
|
<c colspan="3"></c>
|
|
</box>
|
|
<box hibit="12" name="S" usename="1">
|
|
<c></c>
|
|
</box>
|
|
<box hibit="11" width="2" settings="2">
|
|
<c>1</c>
|
|
<c>0</c>
|
|
</box>
|
|
<box hibit="9" width="5" name="Rn" usename="1">
|
|
<c colspan="5"></c>
|
|
</box>
|
|
<box hibit="4" width="5" name="Rt" usename="1">
|
|
<c colspan="5"></c>
|
|
</box>
|
|
</regdiagram>
|
|
<encoding name="STR_B_ldst_regoff" oneofinclass="6" oneof="6" label="8-bit" bitdiffs="size == 00 && opc == 00 && option != 011">
|
|
<docvars>
|
|
<docvar key="atomic-ops" value="STR-8-fsreg" />
|
|
<docvar key="instr-class" value="fpsimd" />
|
|
<docvar key="isa" value="A64" />
|
|
<docvar key="mnemonic" value="STR" />
|
|
<docvar key="offset-type" value="off-reg" />
|
|
<docvar key="reg-type" value="8-fsreg" />
|
|
<docvar key="reg-type-and-use" value="8-fsreg-ext-reg" />
|
|
<docvar key="reguse" value="ext-reg" />
|
|
</docvars>
|
|
<box hibit="31" width="2" name="size">
|
|
<c>0</c>
|
|
<c>0</c>
|
|
</box>
|
|
<box hibit="23" width="2" name="opc">
|
|
<c>0</c>
|
|
<c></c>
|
|
</box>
|
|
<box hibit="15" width="3" name="option">
|
|
<c>Z</c>
|
|
<c>N</c>
|
|
<c>N</c>
|
|
</box>
|
|
<asmtemplate><text>STR </text><a link="sa_bt" hover="8-bit SIMD&FP register to be transferred (field "Rt")"><Bt></a><text>, [</text><a link="sa_xn_sp" hover="64-bit general-purpose base register or SP (field "Rn")"><Xn|SP></a><text>, (</text><a link="sa_wm" hover="When {field{option<0>}} is set to {binarynumber{0}} (field "Rm")"><Wm></a><text>|</text><a link="sa_xm" hover="When {field{option<0>}} is set to {binarynumber{1}} (field "Rm")"><Xm></a><text>), </text><a link="sa_extend" hover="Index extend specifier (field "option") [SXTW,SXTX,UXTW]"><extend></a><text> </text><text>{</text><a link="sa_amount" hover="Index shift amount, it must be {value{#0}} (field "S")"><amount></a><text>}</text><text>]</text></asmtemplate>
|
|
</encoding>
|
|
<encoding name="STR_BL_ldst_regoff" oneofinclass="6" oneof="6" label="8-bit" bitdiffs="size == 00 && opc == 00 && option == 011">
|
|
<docvars>
|
|
<docvar key="atomic-ops" value="STR-8-fsreg" />
|
|
<docvar key="instr-class" value="fpsimd" />
|
|
<docvar key="isa" value="A64" />
|
|
<docvar key="mnemonic" value="STR" />
|
|
<docvar key="offset-type" value="off-reg" />
|
|
<docvar key="reg-type" value="8-fsreg" />
|
|
<docvar key="reg-type-and-use" value="8-fsreg-shifted-reg" />
|
|
<docvar key="reguse" value="shifted-reg" />
|
|
</docvars>
|
|
<box hibit="31" width="2" name="size">
|
|
<c>0</c>
|
|
<c>0</c>
|
|
</box>
|
|
<box hibit="23" width="2" name="opc">
|
|
<c>0</c>
|
|
<c></c>
|
|
</box>
|
|
<box hibit="15" width="3" name="option">
|
|
<c>0</c>
|
|
<c>1</c>
|
|
<c>1</c>
|
|
</box>
|
|
<asmtemplate><text>STR </text><a link="sa_bt" hover="8-bit SIMD&FP register to be transferred (field "Rt")"><Bt></a><text>, [</text><a link="sa_xn_sp" hover="64-bit general-purpose base register or SP (field "Rn")"><Xn|SP></a><text>, </text><a link="sa_xm" hover="When {field{option<0>}} is set to {binarynumber{1}} (field "Rm")"><Xm></a><text>{</text><text>, LSL </text><a link="sa_amount" hover="Index shift amount, it must be {value{#0}} (field "S")"><amount></a><text>}</text><text>]</text></asmtemplate>
|
|
</encoding>
|
|
<encoding name="STR_H_ldst_regoff" oneofinclass="6" oneof="6" label="16-bit" bitdiffs="size == 01 && opc == 00">
|
|
<docvars>
|
|
<docvar key="atomic-ops" value="STR-16-fsreg" />
|
|
<docvar key="instr-class" value="fpsimd" />
|
|
<docvar key="isa" value="A64" />
|
|
<docvar key="mnemonic" value="STR" />
|
|
<docvar key="offset-type" value="off-reg" />
|
|
<docvar key="reg-type" value="16-fsreg" />
|
|
</docvars>
|
|
<box hibit="31" width="2" name="size">
|
|
<c>0</c>
|
|
<c>1</c>
|
|
</box>
|
|
<box hibit="23" width="2" name="opc">
|
|
<c>0</c>
|
|
<c></c>
|
|
</box>
|
|
<asmtemplate><text>STR </text><a link="sa_ht" hover="16-bit SIMD&FP register to be transferred (field "Rt")"><Ht></a><text>, [</text><a link="sa_xn_sp" hover="64-bit general-purpose base register or SP (field "Rn")"><Xn|SP></a><text>, (</text><a link="sa_wm" hover="When {field{option<0>}} is set to {binarynumber{0}} (field "Rm")"><Wm></a><text>|</text><a link="sa_xm" hover="When {field{option<0>}} is set to {binarynumber{1}} (field "Rm")"><Xm></a><text>)</text><text>{</text><text>, </text><a link="sa_extend_1" hover="Index extend/shift specifier, default LSL, and which must be omitted for LSL option when <amount> is omitted (field "option") [LSL,SXTW,SXTX,UXTW]"><extend></a><text> </text><text>{</text><a link="sa_amount_2" hover="Index shift amount, optional when <extend> is not LSL (field "S") [#0,#1]"><amount></a><text>}</text><text>}</text><text>]</text></asmtemplate>
|
|
</encoding>
|
|
<encoding name="STR_S_ldst_regoff" oneofinclass="6" oneof="6" label="32-bit" bitdiffs="size == 10 && opc == 00">
|
|
<docvars>
|
|
<docvar key="atomic-ops" value="STR-32-fsreg" />
|
|
<docvar key="instr-class" value="fpsimd" />
|
|
<docvar key="isa" value="A64" />
|
|
<docvar key="mnemonic" value="STR" />
|
|
<docvar key="offset-type" value="off-reg" />
|
|
<docvar key="reg-type" value="32-fsreg" />
|
|
</docvars>
|
|
<box hibit="31" width="2" name="size">
|
|
<c>1</c>
|
|
<c>0</c>
|
|
</box>
|
|
<box hibit="23" width="2" name="opc">
|
|
<c>0</c>
|
|
<c></c>
|
|
</box>
|
|
<asmtemplate><text>STR </text><a link="sa_st" hover="32-bit SIMD&FP register to be transferred (field "Rt")"><St></a><text>, [</text><a link="sa_xn_sp" hover="64-bit general-purpose base register or SP (field "Rn")"><Xn|SP></a><text>, (</text><a link="sa_wm" hover="When {field{option<0>}} is set to {binarynumber{0}} (field "Rm")"><Wm></a><text>|</text><a link="sa_xm" hover="When {field{option<0>}} is set to {binarynumber{1}} (field "Rm")"><Xm></a><text>)</text><text>{</text><text>, </text><a link="sa_extend_1" hover="Index extend/shift specifier, default LSL, and which must be omitted for LSL option when <amount> is omitted (field "option") [LSL,SXTW,SXTX,UXTW]"><extend></a><text> </text><text>{</text><a link="sa_amount_4" hover="Index shift amount, optional when <extend> is not LSL (field "S") [#0,#2]"><amount></a><text>}</text><text>}</text><text>]</text></asmtemplate>
|
|
</encoding>
|
|
<encoding name="STR_D_ldst_regoff" oneofinclass="6" oneof="6" label="64-bit" bitdiffs="size == 11 && opc == 00">
|
|
<docvars>
|
|
<docvar key="atomic-ops" value="STR-64-fsreg" />
|
|
<docvar key="instr-class" value="fpsimd" />
|
|
<docvar key="isa" value="A64" />
|
|
<docvar key="mnemonic" value="STR" />
|
|
<docvar key="offset-type" value="off-reg" />
|
|
<docvar key="reg-type" value="64-fsreg" />
|
|
</docvars>
|
|
<box hibit="31" width="2" name="size">
|
|
<c>1</c>
|
|
<c>1</c>
|
|
</box>
|
|
<box hibit="23" width="2" name="opc">
|
|
<c>0</c>
|
|
<c></c>
|
|
</box>
|
|
<asmtemplate><text>STR </text><a link="sa_dt" hover="64-bit SIMD&FP register to be transferred (field "Rt")"><Dt></a><text>, [</text><a link="sa_xn_sp" hover="64-bit general-purpose base register or SP (field "Rn")"><Xn|SP></a><text>, (</text><a link="sa_wm" hover="When {field{option<0>}} is set to {binarynumber{0}} (field "Rm")"><Wm></a><text>|</text><a link="sa_xm" hover="When {field{option<0>}} is set to {binarynumber{1}} (field "Rm")"><Xm></a><text>)</text><text>{</text><text>, </text><a link="sa_extend_1" hover="Index extend/shift specifier, default LSL, and which must be omitted for LSL option when <amount> is omitted (field "option") [LSL,SXTW,SXTX,UXTW]"><extend></a><text> </text><text>{</text><a link="sa_amount_1" hover="Index shift amount, optional when <extend> is not LSL (field "S") [#0,#3]"><amount></a><text>}</text><text>}</text><text>]</text></asmtemplate>
|
|
</encoding>
|
|
<encoding name="STR_Q_ldst_regoff" oneofinclass="6" oneof="6" label="128-bit" bitdiffs="size == 00 && opc == 10">
|
|
<docvars>
|
|
<docvar key="atomic-ops" value="STR-128-fsreg" />
|
|
<docvar key="instr-class" value="fpsimd" />
|
|
<docvar key="isa" value="A64" />
|
|
<docvar key="mnemonic" value="STR" />
|
|
<docvar key="offset-type" value="off-reg" />
|
|
<docvar key="reg-type" value="128-fsreg" />
|
|
</docvars>
|
|
<box hibit="31" width="2" name="size">
|
|
<c>0</c>
|
|
<c>0</c>
|
|
</box>
|
|
<box hibit="23" width="2" name="opc">
|
|
<c>1</c>
|
|
<c></c>
|
|
</box>
|
|
<asmtemplate><text>STR </text><a link="sa_qt" hover="128-bit SIMD&FP register to be transferred (field "Rt")"><Qt></a><text>, [</text><a link="sa_xn_sp" hover="64-bit general-purpose base register or SP (field "Rn")"><Xn|SP></a><text>, (</text><a link="sa_wm" hover="When {field{option<0>}} is set to {binarynumber{0}} (field "Rm")"><Wm></a><text>|</text><a link="sa_xm" hover="When {field{option<0>}} is set to {binarynumber{1}} (field "Rm")"><Xm></a><text>)</text><text>{</text><text>, </text><a link="sa_extend_1" hover="Index extend/shift specifier, default LSL, and which must be omitted for LSL option when <amount> is omitted (field "option") [LSL,SXTW,SXTX,UXTW]"><extend></a><text> </text><text>{</text><a link="sa_amount_3" hover="Index shift amount, optional when <extend> is not LSL (field "S") [#0,#4]"><amount></a><text>}</text><text>}</text><text>]</text></asmtemplate>
|
|
</encoding>
|
|
<ps_section howmany="1">
|
|
<ps name="aarch64/instrs/memory/single/simdfp/register" mylink="aarch64.instrs.memory.single.simdfp.register" enclabels="" sections="1" secttype="noheading">
|
|
<pstext mayhavelinks="1" section="Decode" rep_section="decode">boolean wback = FALSE;
|
|
boolean postindex = FALSE;
|
|
integer scale = <a link="impl-shared.UInt.1" file="shared_pseudocode.xml" hover="function: integer UInt(bits(N) x)">UInt</a>(opc<1>:size);
|
|
if scale > 4 then UNDEFINED;
|
|
if option<1> == '0' then UNDEFINED; // sub-word index
|
|
<a link="ExtendType" file="shared_pseudocode.xml" hover="enumeration ExtendType {ExtendType_SXTB, ExtendType_SXTH, ExtendType_SXTW, ExtendType_SXTX, ExtendType_UXTB, ExtendType_UXTH, ExtendType_UXTW, ExtendType_UXTX}">ExtendType</a> extend_type = <a link="impl-aarch64.DecodeRegExtend.1" file="shared_pseudocode.xml" hover="function: ExtendType DecodeRegExtend(bits(3) op)">DecodeRegExtend</a>(option);
|
|
integer shift = if S == '1' then scale else 0;</pstext>
|
|
</ps>
|
|
</ps_section>
|
|
</iclass>
|
|
</classes>
|
|
<explanations scope="all">
|
|
<explanation enclist="STR_B_ldst_regoff, STR_BL_ldst_regoff" symboldefcount="1">
|
|
<symbol link="sa_bt"><Bt></symbol>
|
|
<account encodedin="Rt">
|
|
<intro>
|
|
<para>Is the 8-bit name of the SIMD&FP register to be transferred, encoded in the "Rt" field.</para>
|
|
</intro>
|
|
</account>
|
|
</explanation>
|
|
<explanation enclist="STR_D_ldst_regoff" symboldefcount="1">
|
|
<symbol link="sa_dt"><Dt></symbol>
|
|
<account encodedin="Rt">
|
|
<intro>
|
|
<para>Is the 64-bit name of the SIMD&FP register to be transferred, encoded in the "Rt" field.</para>
|
|
</intro>
|
|
</account>
|
|
</explanation>
|
|
<explanation enclist="STR_H_ldst_regoff" symboldefcount="1">
|
|
<symbol link="sa_ht"><Ht></symbol>
|
|
<account encodedin="Rt">
|
|
<intro>
|
|
<para>Is the 16-bit name of the SIMD&FP register to be transferred, encoded in the "Rt" field.</para>
|
|
</intro>
|
|
</account>
|
|
</explanation>
|
|
<explanation enclist="STR_Q_ldst_regoff" symboldefcount="1">
|
|
<symbol link="sa_qt"><Qt></symbol>
|
|
<account encodedin="Rt">
|
|
<intro>
|
|
<para>Is the 128-bit name of the SIMD&FP register to be transferred, encoded in the "Rt" field.</para>
|
|
</intro>
|
|
</account>
|
|
</explanation>
|
|
<explanation enclist="STR_S_ldst_regoff" symboldefcount="1">
|
|
<symbol link="sa_st"><St></symbol>
|
|
<account encodedin="Rt">
|
|
<intro>
|
|
<para>Is the 32-bit name of the SIMD&FP register to be transferred, encoded in the "Rt" field.</para>
|
|
</intro>
|
|
</account>
|
|
</explanation>
|
|
<explanation enclist="STR_B_ldst_regoff, STR_BL_ldst_regoff, STR_D_ldst_regoff, STR_H_ldst_regoff, STR_Q_ldst_regoff, STR_S_ldst_regoff" symboldefcount="1">
|
|
<symbol link="sa_xn_sp"><Xn|SP></symbol>
|
|
<account encodedin="Rn">
|
|
<intro>
|
|
<para>Is the 64-bit name of the general-purpose base register or stack pointer, encoded in the "Rn" field.</para>
|
|
</intro>
|
|
</account>
|
|
</explanation>
|
|
<explanation enclist="STR_B_ldst_regoff, STR_D_ldst_regoff, STR_H_ldst_regoff, STR_Q_ldst_regoff, STR_S_ldst_regoff" symboldefcount="1">
|
|
<symbol link="sa_wm"><Wm></symbol>
|
|
<account encodedin="Rm">
|
|
<intro>
|
|
<para>When <field>option<0></field> is set to <binarynumber>0</binarynumber>, is the 32-bit name of the general-purpose index register, encoded in the "Rm" field.</para>
|
|
</intro>
|
|
</account>
|
|
</explanation>
|
|
<explanation enclist="STR_B_ldst_regoff, STR_BL_ldst_regoff, STR_D_ldst_regoff, STR_H_ldst_regoff, STR_Q_ldst_regoff, STR_S_ldst_regoff" symboldefcount="1">
|
|
<symbol link="sa_xm"><Xm></symbol>
|
|
<account encodedin="Rm">
|
|
<intro>
|
|
<para>When <field>option<0></field> is set to <binarynumber>1</binarynumber>, is the 64-bit name of the general-purpose index register, encoded in the "Rm" field.</para>
|
|
</intro>
|
|
</account>
|
|
</explanation>
|
|
<explanation enclist="STR_B_ldst_regoff" symboldefcount="1">
|
|
<symbol link="sa_extend"><extend></symbol>
|
|
<definition encodedin="option">
|
|
<intro>For the 8-bit variant: is the index extend specifier, </intro>
|
|
<table class="valuetable">
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry class="bitfield">option</entry>
|
|
<entry class="symbol"><extend></entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry class="bitfield">010</entry>
|
|
<entry class="symbol">UXTW</entry>
|
|
</row>
|
|
<row>
|
|
<entry class="bitfield">110</entry>
|
|
<entry class="symbol">SXTW</entry>
|
|
</row>
|
|
<row>
|
|
<entry class="bitfield">111</entry>
|
|
<entry class="symbol">SXTX</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</definition>
|
|
</explanation>
|
|
<explanation enclist="STR_D_ldst_regoff, STR_H_ldst_regoff, STR_Q_ldst_regoff, STR_S_ldst_regoff" symboldefcount="2">
|
|
<symbol link="sa_extend_1"><extend></symbol>
|
|
<definition encodedin="option">
|
|
<intro>For the 128-bit, 16-bit, 32-bit and 64-bit variant: is the index extend/shift specifier, defaulting to LSL, and which must be omitted for the LSL option when <amount> is omitted. </intro>
|
|
<table class="valuetable">
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry class="bitfield">option</entry>
|
|
<entry class="symbol"><extend></entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry class="bitfield">010</entry>
|
|
<entry class="symbol">UXTW</entry>
|
|
</row>
|
|
<row>
|
|
<entry class="bitfield">011</entry>
|
|
<entry class="symbol">LSL</entry>
|
|
</row>
|
|
<row>
|
|
<entry class="bitfield">110</entry>
|
|
<entry class="symbol">SXTW</entry>
|
|
</row>
|
|
<row>
|
|
<entry class="bitfield">111</entry>
|
|
<entry class="symbol">SXTX</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</definition>
|
|
</explanation>
|
|
<explanation enclist="STR_B_ldst_regoff, STR_BL_ldst_regoff" symboldefcount="1">
|
|
<symbol link="sa_amount"><amount></symbol>
|
|
<account encodedin="S">
|
|
<docvars>
|
|
<docvar key="atomic-ops" value="STR-8-fsreg" />
|
|
<docvar key="reg-type" value="8-fsreg" />
|
|
</docvars>
|
|
<intro>
|
|
<para>For the 8-bit variant: is the index shift amount, it must be <value>#0</value>, encoded in "S" as <binarynumber>0</binarynumber> if omitted, or as <binarynumber>1</binarynumber> if present.</para>
|
|
</intro>
|
|
</account>
|
|
</explanation>
|
|
<explanation enclist="STR_H_ldst_regoff" symboldefcount="2">
|
|
<symbol link="sa_amount_2"><amount></symbol>
|
|
<definition encodedin="S">
|
|
<intro>For the 16-bit variant: is the index shift amount, optional only when <extend> is not LSL. Where it is permitted to be optional, it defaults to #0. It is </intro>
|
|
<table class="valuetable">
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry class="bitfield">S</entry>
|
|
<entry class="symbol"><amount></entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry class="bitfield">0</entry>
|
|
<entry class="symbol">#0</entry>
|
|
</row>
|
|
<row>
|
|
<entry class="bitfield">1</entry>
|
|
<entry class="symbol">#1</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</definition>
|
|
</explanation>
|
|
<explanation enclist="STR_S_ldst_regoff" symboldefcount="3">
|
|
<symbol link="sa_amount_4"><amount></symbol>
|
|
<definition encodedin="S">
|
|
<intro>For the 32-bit variant: is the index shift amount, optional only when <extend> is not LSL. Where it is permitted to be optional, it defaults to #0. It is </intro>
|
|
<table class="valuetable">
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry class="bitfield">S</entry>
|
|
<entry class="symbol"><amount></entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry class="bitfield">0</entry>
|
|
<entry class="symbol">#0</entry>
|
|
</row>
|
|
<row>
|
|
<entry class="bitfield">1</entry>
|
|
<entry class="symbol">#2</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</definition>
|
|
</explanation>
|
|
<explanation enclist="STR_D_ldst_regoff" symboldefcount="4">
|
|
<symbol link="sa_amount_1"><amount></symbol>
|
|
<definition encodedin="S">
|
|
<intro>For the 64-bit variant: is the index shift amount, optional only when <extend> is not LSL. Where it is permitted to be optional, it defaults to #0. It is </intro>
|
|
<table class="valuetable">
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry class="bitfield">S</entry>
|
|
<entry class="symbol"><amount></entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry class="bitfield">0</entry>
|
|
<entry class="symbol">#0</entry>
|
|
</row>
|
|
<row>
|
|
<entry class="bitfield">1</entry>
|
|
<entry class="symbol">#3</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</definition>
|
|
</explanation>
|
|
<explanation enclist="STR_Q_ldst_regoff" symboldefcount="5">
|
|
<symbol link="sa_amount_3"><amount></symbol>
|
|
<definition encodedin="S">
|
|
<intro>For the 128-bit variant: is the index shift amount, optional only when <extend> is not LSL. Where it is permitted to be optional, it defaults to #0. It is </intro>
|
|
<table class="valuetable">
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry class="bitfield">S</entry>
|
|
<entry class="symbol"><amount></entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry class="bitfield">0</entry>
|
|
<entry class="symbol">#0</entry>
|
|
</row>
|
|
<row>
|
|
<entry class="bitfield">1</entry>
|
|
<entry class="symbol">#4</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</definition>
|
|
</explanation>
|
|
</explanations>
|
|
<ps_section howmany="1">
|
|
<ps name="aarch64/instrs/memory/single/simdfp/register" mylink="postdecode" enclabels="" sections="1" secttype="Shared Decode">
|
|
<pstext mayhavelinks="1" section="Postdecode" rep_section="postdecode">integer n = <a link="impl-shared.UInt.1" file="shared_pseudocode.xml" hover="function: integer UInt(bits(N) x)">UInt</a>(Rn);
|
|
integer t = <a link="impl-shared.UInt.1" file="shared_pseudocode.xml" hover="function: integer UInt(bits(N) x)">UInt</a>(Rt);
|
|
integer m = <a link="impl-shared.UInt.1" file="shared_pseudocode.xml" hover="function: integer UInt(bits(N) x)">UInt</a>(Rm);
|
|
boolean nontemporal = FALSE;
|
|
<a link="MemOp" file="shared_pseudocode.xml" hover="enumeration MemOp {MemOp_LOAD, MemOp_STORE, MemOp_PREFETCH}">MemOp</a> memop = if opc<0> == '1' then <a link="MemOp_LOAD" file="shared_pseudocode.xml" hover="enumeration MemOp {MemOp_LOAD, MemOp_STORE, MemOp_PREFETCH}">MemOp_LOAD</a> else <a link="MemOp_STORE" file="shared_pseudocode.xml" hover="enumeration MemOp {MemOp_LOAD, MemOp_STORE, MemOp_PREFETCH}">MemOp_STORE</a>;
|
|
integer datasize = 8 << scale;
|
|
boolean tagchecked = memop != <a link="MemOp_PREFETCH" file="shared_pseudocode.xml" hover="enumeration MemOp {MemOp_LOAD, MemOp_STORE, MemOp_PREFETCH}">MemOp_PREFETCH</a>;</pstext>
|
|
</ps>
|
|
</ps_section>
|
|
<ps_section howmany="1">
|
|
<ps name="aarch64/instrs/memory/single/simdfp/register" mylink="execute" enclabels="" sections="1" secttype="Operation">
|
|
<pstext mayhavelinks="1" section="Execute" rep_section="execute">bits(64) offset = <a link="impl-aarch64.ExtendReg.4" file="shared_pseudocode.xml" hover="function: bits(N) ExtendReg(integer reg, ExtendType exttype, integer shift, integer N)">ExtendReg</a>(m, extend_type, shift, 64);
|
|
<a link="impl-aarch64.CheckFPEnabled64.0" file="shared_pseudocode.xml" hover="function: CheckFPEnabled64()">CheckFPEnabled64</a>();
|
|
bits(64) address;
|
|
bits(datasize) data;
|
|
|
|
<a link="AccessDescriptor" file="shared_pseudocode.xml" hover="type AccessDescriptor is ( AccessType acctype, bits(2) el, SecurityState ss, boolean acqsc, boolean acqpc, boolean relsc, boolean limitedordered, boolean exclusive, boolean atomicop, MemAtomicOp modop, boolean nontemporal, boolean read, boolean write, CacheOp cacheop, CacheOpScope opscope, CacheType cachetype, boolean pan, boolean transactional, boolean nonfault, boolean firstfault, boolean first, boolean contiguous, boolean streamingsve, boolean ls64, boolean mops, boolean rcw, boolean rcws, boolean toplevel, VARange varange, boolean a32lsmd, boolean tagchecked, boolean tagaccess, MPAMinfo mpam )">AccessDescriptor</a> accdesc = <a link="impl-shared.CreateAccDescASIMD.3" file="shared_pseudocode.xml" hover="function: AccessDescriptor CreateAccDescASIMD(MemOp memop, boolean nontemporal, boolean tagchecked)">CreateAccDescASIMD</a>(memop, nontemporal, tagchecked);
|
|
|
|
if n == 31 then
|
|
<a link="impl-aarch64.CheckSPAlignment.0" file="shared_pseudocode.xml" hover="function: CheckSPAlignment()">CheckSPAlignment</a>();
|
|
address = <a link="impl-aarch64.SP.read.0" file="shared_pseudocode.xml" hover="accessor: bits(64) SP[]">SP</a>[];
|
|
else
|
|
address = <a link="impl-aarch64.X.read.2" file="shared_pseudocode.xml" hover="accessor: bits(width) X[integer n, integer width]">X</a>[n, 64];
|
|
|
|
if ! postindex then
|
|
address = address + offset;
|
|
|
|
case memop of
|
|
when <a link="MemOp_STORE" file="shared_pseudocode.xml" hover="enumeration MemOp {MemOp_LOAD, MemOp_STORE, MemOp_PREFETCH}">MemOp_STORE</a>
|
|
data = <a link="impl-aarch64.V.read.2" file="shared_pseudocode.xml" hover="accessor: bits(width) V[integer n, integer width]">V</a>[t, datasize];
|
|
Mem[address, datasize DIV 8, accdesc] = data;
|
|
|
|
when <a link="MemOp_LOAD" file="shared_pseudocode.xml" hover="enumeration MemOp {MemOp_LOAD, MemOp_STORE, MemOp_PREFETCH}">MemOp_LOAD</a>
|
|
data = <a link="impl-aarch64.Mem.read.3" file="shared_pseudocode.xml" hover="accessor: bits(size*8) Mem[bits(64) address, integer size, AccessDescriptor accdesc]">Mem</a>[address, datasize DIV 8, accdesc];
|
|
<a link="impl-aarch64.V.write.2" file="shared_pseudocode.xml" hover="accessor: V[integer n, integer width] = bits(width) value">V</a>[t, datasize] = data;
|
|
|
|
if wback then
|
|
if postindex then
|
|
address = address + offset;
|
|
if n == 31 then
|
|
<a link="impl-aarch64.SP.write.0" file="shared_pseudocode.xml" hover="accessor: SP[] = bits(64) value">SP</a>[] = address;
|
|
else
|
|
<a link="impl-aarch64.X.write.2" file="shared_pseudocode.xml" hover="accessor: X[integer n, integer width] = bits(width) value">X</a>[n, 64] = address;</pstext>
|
|
</ps>
|
|
</ps_section>
|
|
</instructionsection>
|