Difference between revisions of "Instruction Set/inject"
From Mill Computing Wiki
m (Protected "Instruction Set/inject": generated ([Edit=<protect-level-bot>] (indefinite) [Move=<protect-level-bot>] (indefinite))) | |||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:inject}} | {{DISPLAYTITLE:inject}} | ||
− | <div style="font-size:80%;line-height:90%;margin-bottom:2em">[[Speculation| | + | <div style="font-size:80%;line-height:90%;margin-bottom:2em">[[Speculation|speculable]] [[Encoding|exu stream]] [[Decode|exu block]] [[Phasing|compute phase]] operation <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">inject</b>( | + | <code style="font-size:130%"><b style="color:#050">inject</b>(<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#likeShuffle|like Shuffle [xn:x]]] | |
− | <div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands# | + | |
</div> | </div> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<br /> | <br /> | ||
Line 26: | Line 19: | ||
| [[Cores/Tin/Encoding#inject|Tin]] || E0 || 1 | | [[Cores/Tin/Encoding#inject|Tin]] || E0 || 1 | ||
|- | |- | ||
− | | [[Cores/Copper/Encoding#inject|Copper]] || E0 | + | | [[Cores/Copper/Encoding#inject|Copper]] || E0 || 1 |
|- | |- | ||
| [[Cores/Silver/Encoding#inject|Silver]] || E0 E1 E2 E3 || 1 | | [[Cores/Silver/Encoding#inject|Silver]] || E0 E1 E2 E3 || 1 | ||
|- | |- | ||
− | | [[Cores/Gold/Encoding#inject|Gold]] || E0 | + | | [[Cores/Gold/Encoding#inject|Gold]] || E0 || 1 |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|} | |} | ||
---- | ---- | ||
− | <code style="font-size:130%"><b style="color:#050">inject</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">inject</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="belt operand from ops window">op1</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#likeInjectExuExuElem|like InjectExuExuElem Xx:X]] |
</div> | </div> | ||
<br /> | <br /> | ||
Line 47: | Line 36: | ||
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ||
|- | |- | ||
− | | [[Cores/Tin/Encoding#inject|Tin]] || E0 || | + | | [[Cores/Tin/Encoding#inject|Tin]] || E0 || |
|- | |- | ||
− | | [[Cores/Copper/Encoding#inject|Copper]] || E0 | + | | [[Cores/Copper/Encoding#inject|Copper]] || E0 || |
|- | |- | ||
− | | [[Cores/Silver/Encoding#inject|Silver]] || E0 E1 E2 E3 || | + | | [[Cores/Silver/Encoding#inject|Silver]] || E0 E1 E2 E3 || |
+ | |- | ||
+ | | [[Cores/Gold/Encoding#inject|Gold]] || E0 || | ||
+ | |} | ||
+ | |||
+ | ---- | ||
+ | <code style="font-size:130%"><b style="color:#050">inject</b>(<span style="color:#009">[[Domains#op|op]]</span> <span title="belt operand from ops window">v</span>, <span style="color:#009">[[Domains#op|op]]</span> <span title="belt operand from ops window">x</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#likeInjectExuExuExu|like InjectExuExuExu XX:X]] | ||
+ | </div> | ||
+ | <br /> | ||
+ | |||
+ | '''encoding:''' | ||
+ | <code style="font-size:100%"><b style="color:#050">inject</b>(<span style="color:#009">[[Domains#i|i]]</span> <span title="belt operand from ops window">i</span>)</code> | ||
+ | , | ||
+ | <code style="font-size:100%"><b style="color:#050">exuArgs</b>(<span style="color:#009">[[Domains#op|op]]</span> <span title="belt operand from ops window">arg0</span>, <span style="color:#009">[[Domains#op|op]]</span> <span title="belt operand from ops window">arg1</span>)</code> | ||
+ | <br /> | ||
+ | |||
+ | {| class="mw-collapsible mw-collapsed wikitable" data-expandtext="▸" data-collapsetext="▾" | ||
+ | ! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ||
+ | |- | ||
+ | | [[Cores/Tin/Encoding#inject|Tin]] || E0 || | ||
|- | |- | ||
− | | [[Cores/ | + | | [[Cores/Copper/Encoding#inject|Copper]] || E0 || |
|- | |- | ||
− | | [[Cores/ | + | | [[Cores/Silver/Encoding#inject|Silver]] || E0 E1 E2 E3 || |
|- | |- | ||
− | | [[Cores/ | + | | [[Cores/Gold/Encoding#inject|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:14, 23 February 2021
Replace a vector element with a different scalar value.
related operations: alternate, shuffle, vec, extract
operands: like Shuffle [xn:x]
Core | In Slots | Latencies |
---|---|---|
Tin | E0 | 1 |
Copper | E0 | 1 |
Silver | E0 E1 E2 E3 | 1 |
Gold | E0 | 1 |
inject(op op0, op op1, op args) → op r0
operands: like InjectExuExuElem Xx:X
Core | In Slots | Latencies |
---|---|---|
Tin | E0 | |
Copper | E0 | |
Silver | E0 E1 E2 E3 | |
Gold | E0 |
inject(op v, op x, i i) → op r0
operands: like InjectExuExuExu XX:X
encoding:
inject(i i)
,
exuArgs(op arg0, op arg1)
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