Difference between revisions of "Instruction Set/extract"

From Mill Computing Wiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1:Line 1:
 
{{DISPLAYTITLE:extract}}
 
{{DISPLAYTITLE:extract}}
<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;<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; [[Condition Code|that produces condition codes]]<br />
 
'''native on:''' [[Cores|all]]<br />
 
'''native on:''' [[Cores|all]]<br />
 
</div>
 
</div>
Line 9:Line 9:
  
 
----
 
----
<code style="font-size:130%"><b style="color:#050">extract</b>(<span style="color:#009">[[Domains#op|op]]</span> <span title="belt operand from ops window">v</span>, <span style="color:#009">[[Domains#i|i]]</span> <span title="belt operand from ops window">i</span>) &#8594; [[Domains#op|op]] r<sub>0</sub></code>
+
<code style="font-size:130%"><b style="color:#050">extract</b>(<span style="color:#009">[[Domains#op|op]]</span> <span title="belt operand from ops window">op0</span>, <span style="color:#009">[[Domains#op|op]]</span> <span title="vector element index or field in a struct">args</span>) &#8594; [[Domains#op|op]] r<sub>0</sub></code>
<div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeExtractx|like Extractx Xx:x]]
+
<div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeExtract|like Extract XX:x]]
 
</div>
 
</div>
 
<br />
 
<br />
Line 17:Line 17:
 
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
|-
 
|-
| [[Cores/Tin/Encoding#extract|Tin]] || E0 || 1
+
| [[Cores/Tin/Encoding#extract|Tin]] || E0 ||  
 
|-
 
|-
| [[Cores/Copper/Encoding#extract|Copper]] || E0 E1 || 1
+
| [[Cores/Copper/Encoding#extract|Copper]] || E0 ||  
 
|-
 
|-
| [[Cores/Silver/Encoding#extract|Silver]] || E0 E1 E2 E3 || 1
+
| [[Cores/Silver/Encoding#extract|Silver]] || E0 E1 E2 E3 ||  
 
|-
 
|-
| [[Cores/Gold/Encoding#extract|Gold]] || E0 E1 E2 E3 E4 E5 E6 E7 || 1
+
| [[Cores/Gold/Encoding#extract|Gold]] || E0 ||  
|-
+
| [[Cores/Decimal8/Encoding#extract|Decimal8]] || E0 E1 E2 E3 || 1
+
|-
+
| [[Cores/Decimal16/Encoding#extract|Decimal16]] || E0 E1 E2 E3 || 1
+
 
|}
 
|}
  
 
----
 
----
<code style="font-size:130%"><b style="color:#050">extract</b>(<span style="color:#009">[[Domains#op|op]]</span> <span title="belt operand from ops window">v</span>, <i><span style="color:#009">[[Immediates#imm|imm]]</span> <span title="small immediate constant of per-slot varying range">i</span></i>) &#8594; [[Domains#op|op]] r<sub>0</sub></code>
+
<code style="font-size:130%"><b style="color:#050">extract</b>(<span style="color:#009">[[Domains#op|op]]</span> <span title="belt operand from ops window">op0</span>, <span style="color:#009">[[Domains#op|op]]</span> <span title="vector element index or field in a struct">width0</span>, <i><span style="color:#009">[[Immediates#width|width]]</span> <span title="data width
<div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeExtract|like Extract XX:x]]
+
            and vector length (exu)">args</span></i>) &#8594; [[Domains#op|op]] r<sub>0</sub></code>
 +
<div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeExtracts|like Extracts xx:x]]
 
</div>
 
</div>
 
<br />
 
<br />
Line 39:Line 36:
 
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
|-
 
|-
| [[Cores/Tin/Encoding#extract|Tin]] || E0 || 1
+
| [[Cores/Tin/Encoding#extract|Tin]] || E0 ||  
 
|-
 
|-
| [[Cores/Copper/Encoding#extract|Copper]] || E0 E1 || 1
+
| [[Cores/Copper/Encoding#extract|Copper]] || E0 ||
 +
|-
 +
| [[Cores/Silver/Encoding#extract|Silver]] || E0 E1 E2 E3 ||
 +
|-
 +
| [[Cores/Gold/Encoding#extract|Gold]] || E0 ||
 +
|}
 +
 
 +
----
 +
<code style="font-size:130%"><b style="color:#050">extract</b>(<span style="color:#009">[[Domains#op|op]]</span> <span title="belt operand from ops window">v</span>, <span style="color:#009">[[Domains#i|i]]</span> <span title="belt operand from ops window">i</span>) &#8594; [[Domains#op|op]] r<sub>0</sub></code>
 +
<div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeExtractx|like Extractx Xx:x]]
 +
</div>
 +
<br />
 +
 
 +
{| class="mw-collapsible mw-collapsed wikitable" data-expandtext="&#9656;" data-collapsetext="&#9662;"
 +
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
|-
 
|-
| [[Cores/Silver/Encoding#extract|Silver]] || E0 E1 E2 E3 || 1
+
| [[Cores/Tin/Encoding#extract|Tin]] || E0 ||  
 
|-
 
|-
| [[Cores/Gold/Encoding#extract|Gold]] || E0 E1 E2 E3 E4 E5 E6 E7 || 1
+
| [[Cores/Copper/Encoding#extract|Copper]] || E0 ||  
 
|-
 
|-
| [[Cores/Decimal8/Encoding#extract|Decimal8]] || E0 E1 E2 E3 || 1
+
| [[Cores/Silver/Encoding#extract|Silver]] || E0 E1 E2 E3 ||  
 
|-
 
|-
| [[Cores/Decimal16/Encoding#extract|Decimal16]] || E0 E1 E2 E3 || 1
+
| [[Cores/Gold/Encoding#extract|Gold]] || E0 ||  
 
|}
 
|}
  
  
 
[[Instruction_Set|Instruction Set, alphabetical]], [[Instruction Set by Category]], [http://millcomputing.com/instructions.html?collapse=7#ops Instruction Set, sortable, filterable]
 
[[Instruction_Set|Instruction Set, alphabetical]], [[Instruction Set by Category]], [http://millcomputing.com/instructions.html?collapse=7#ops Instruction Set, sortable, filterable]

Latest revision as of 14:10, 23 February 2021

speculable  exu stream  exu block  compute phase   operation   that produces condition codes

native on: all

Extract a vector element to a scalar value operand.

related operations: alternate, shuffle, vec, inject


extract(op op0, op args) → op r0

operands: like Extract XX:x


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

extract(op op0, op width0, width args) → op r0

operands: like Extracts xx:x


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

extract(op v, i i) → op r0

operands: like Extractx Xx:x


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