Difference between revisions of "Instruction Set/extract"
From Mill Computing Wiki
Line 1: | Line 1: | ||
{{DISPLAYTITLE:extract}} | {{DISPLAYTITLE:extract}} | ||
− | <div style="font-size:80%;line-height:90%;margin-bottom:2em">[[Speculation|speculable]] [[Encoding|exu stream]] [[Decode|exu block]] [[Phasing|compute phase]] operation <br /> | + | <div style="font-size:80%;line-height:90%;margin-bottom:2em">[[Speculation|speculable]] [[Encoding|exu stream]] [[Decode|exu block]] [[Phasing|compute phase]] operation [[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"> | + | <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>) → [[Domains#op|op]] r<sub>0</sub></code> |
− | <div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands# | + | <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 || | + | | [[Cores/Tin/Encoding#extract|Tin]] || E0 || |
|- | |- | ||
− | | [[Cores/Copper/Encoding#extract|Copper]] || E0 | + | | [[Cores/Copper/Encoding#extract|Copper]] || E0 || |
|- | |- | ||
− | | [[Cores/Silver/Encoding#extract|Silver]] || E0 E1 E2 E3 || | + | | [[Cores/Silver/Encoding#extract|Silver]] || E0 E1 E2 E3 || |
|- | |- | ||
− | | [[Cores/Gold/Encoding#extract|Gold]] || E0 | + | | [[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"> | + | <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# | + | and vector length (exu)">args</span></i>) → [[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 || | + | | [[Cores/Tin/Encoding#extract|Tin]] || E0 || |
|- | |- | ||
− | | [[Cores/Copper/Encoding#extract|Copper]] || E0 E1 || | + | | [[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>) → [[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="▸" data-collapsetext="▾" | ||
+ | ! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ||
|- | |- | ||
− | | [[Cores/ | + | | [[Cores/Tin/Encoding#extract|Tin]] || E0 || |
|- | |- | ||
− | | [[Cores/ | + | | [[Cores/Copper/Encoding#extract|Copper]] || E0 || |
|- | |- | ||
− | | [[Cores/ | + | | [[Cores/Silver/Encoding#extract|Silver]] || E0 E1 E2 E3 || |
|- | |- | ||
− | | [[Cores/ | + | | [[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
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 |
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