Difference between revisions of "Instruction Set/subp"

From Mill Computing Wiki
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:subp}} <div style="font-size:80%;line-height:90%;margin-bottom:2em">realizing  exu stream  exu block...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1:Line 1:
 
{{DISPLAYTITLE:subp}}
 
{{DISPLAYTITLE:subp}}
<div style="font-size:80%;line-height:90%;margin-bottom:2em">[[Speculation|realizing]]&nbsp;&nbsp;[[Encoding|exu stream]]&nbsp;&nbsp;[[Decode|exu block]]&nbsp;&nbsp;[[Phasing|compute phase]]&nbsp;&nbsp; operation&nbsp;&nbsp; [[Domains|in the pointers value domain]]&nbsp;&nbsp;<br />
+
<div style="font-size:80%;line-height:90%;margin-bottom:2em">[[Speculation|speculable]]&nbsp;&nbsp;[[Encoding|exu stream]]&nbsp;&nbsp;[[Decode|exu block]]&nbsp;&nbsp;[[Phasing|compute phase]]&nbsp;&nbsp; operation&nbsp;&nbsp; [[Domains|in the pointer value domain]]&nbsp;&nbsp;<br />
 
'''native on:''' [[Cores|all]]<br />
 
'''native on:''' [[Cores|all]]<br />
 
</div>
 
</div>
  
subtraction
+
Pointer subtraction. Protects the upper 4 reserved bits, can be scaled for indexing.
 +
 
 
----
 
----
<code style="font-size:130%"><b style="color:#050">subp</b>(<span style="color:#009">[[Domains#p|p]]</span> <span title="belt operand from ops window">x</span>, <span style="color:#009">[[Domains#p|p]]</span> <span title="belt operand from ops window">y</span>, <i><span style="color:#009">[[Immediates#scale|scale]]</span> <span title="scale factor for indexes
+
<code style="font-size:130%"><b style="color:#050">subp</b>(<span style="color:#009">[[Domains#p|p]]</span> <span title="belt operand from ops window">op0</span>, <i><span style="color:#009">[[Immediates#imm|imm]]</span> <span title="small immediate constant of per-slot varying range">imm0</span></i>) &#8594; [[Domains#p|p]] r<sub>0</sub></code>
            in load/store/lea">s</span></i>) &#8594; [[Domains#p|p]] r<sub>0</sub></code>
+
<div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeLea|like Lea px:p]]
<div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeAddp|like Addp [px:p]]]
+
 
</div>
 
</div>
 
<br />
 
<br />
Line 15:Line 15:
 
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
|-
 
|-
| [[Cores/Tin/Encoding#862|Tin]] || E0 || d,b:d=1 d,h:d=1 d,w:d=1 d,d:d=2 d,q:d=2
+
| [[Cores/Tin/Encoding#subp|Tin]] || E0 ||  
 
|-
 
|-
| [[Cores/Copper/Encoding#862|Copper]] || E0 E1 || d,b:d=1 d,h:d=1 d,w:d=1 d,d:d=2 d,q:d=2
+
| [[Cores/Copper/Encoding#subp|Copper]] || E0 ||  
 
|-
 
|-
| [[Cores/Silver/Encoding#862|Silver]] || E0 E1 E2 E3 || d,b:d=1 d,h:d=1 d,w:d=1 d,d:d=2 d,q:d=2
+
| [[Cores/Silver/Encoding#subp|Silver]] || E0 E1 E2 E3 ||  
 
|-
 
|-
| [[Cores/Gold/Encoding#862|Gold]] || E0 E1 E2 E3 E4 E5 E6 E7 || d,b:d=1 d,h:d=1 d,w:d=1 d,d:d=2 d,q:d=2
+
| [[Cores/Gold/Encoding#subp|Gold]] || E0 ||  
|-
+
| [[Cores/Decimal8/Encoding#862|Decimal8]] || E0 E1 E2 E3 || d,b:d=1 d,h:d=1 d,w:d=1 d,d:d=2 d,q:d=2
+
|-
+
| [[Cores/Decimal16/Encoding#862|Decimal16]] || E0 E1 E2 E3 || d,b:d=1 d,h:d=1 d,w:d=1 d,d:d=2 d,q:d=2
+
 
|}
 
|}
  
----
 
<code style="font-size:130%"><b style="color:#050">subp</b>(<span style="color:#009">[[Domains#p|p]]</span> <span title="belt operand from ops window">x</span>, <i><span style="color:#009">[[Immediates#imm|imm]]</span> <span title="small immediate constant of per-slot varying range">y</span></i>, <i><span style="color:#009">[[Immediates#scale|scale]]</span> <span title="scale factor for indexes in load/store/lea">s</span></i>) &#8594; [[Domains#p|p]] r<sub>0</sub></code>
 
<div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeAddp|like Addp [px:p]]]
 
</div>
 
<br />
 
  
{| class="mw-collapsible mw-collapsed wikitable" data-expandtext="&#9656;" data-collapsetext="&#9662;"
+
[[Instruction_Set|Instruction Set, alphabetical]], [[Instruction Set by Category]], [http://millcomputing.com/instructions.html?collapse=7#ops Instruction Set, sortable, filterable]
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
+
|-
+
| [[Cores/Tin/Encoding#861|Tin]] || E0 || d,b:d=1 d,h:d=1 d,w:d=1 d,d:d=2 d,q:d=2
+
|-
+
| [[Cores/Copper/Encoding#861|Copper]] || E0 E1 || d,b:d=1 d,h:d=1 d,w:d=1 d,d:d=2 d,q:d=2
+
|-
+
| [[Cores/Silver/Encoding#861|Silver]] || E0 E1 E2 E3 || d,b:d=1 d,h:d=1 d,w:d=1 d,d:d=2 d,q:d=2
+
|-
+
| [[Cores/Gold/Encoding#861|Gold]] || E0 E1 E2 E3 E4 E5 E6 E7 || d,b:d=1 d,h:d=1 d,w:d=1 d,d:d=2 d,q:d=2
+
|-
+
| [[Cores/Decimal8/Encoding#861|Decimal8]] || E0 E1 E2 E3 || d,b:d=1 d,h:d=1 d,w:d=1 d,d:d=2 d,q:d=2
+
|-
+
| [[Cores/Decimal16/Encoding#861|Decimal16]] || E0 E1 E2 E3 || d,b:d=1 d,h:d=1 d,w:d=1 d,d:d=2 d,q:d=2
+
|}
+

Latest revision as of 14:05, 23 February 2021

speculable  exu stream  exu block  compute phase   operation   in the pointer value domain  

native on: all

Pointer subtraction. Protects the upper 4 reserved bits, can be scaled for indexing.


subp(p op0, imm imm0) → p r0

operands: like Lea px:p


Core In Slots Latencies
Tin E0
Copper E0
Silver E0 E1 E2 E3
Gold E0


Instruction Set, alphabetical, Instruction Set by Category, Instruction Set, sortable, filterable