Difference between revisions of "Instruction Set/inject"
From Mill Computing Wiki
(Created page with "{{DISPLAYTITLE:inject}} <div style="font-size:80%;line-height:90%;margin-bottom:2em">realizing exu stream Decode|exu block...") | |||
| (4 intermediate revisions 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> | ||
| − | + | Replace a vector element with a different scalar value. | |
| + | |||
| + | <b>related operations:</b> [[Instruction_Set/alternate|alternate]], [[Instruction_Set/shuffle|shuffle]], [[Instruction_Set/vec|vec]], [[Instruction_Set/extract|extract]] | ||
| + | |||
---- | ---- | ||
| − | <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 21: | Line 17: | ||
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ||
|- | |- | ||
| − | | [[Cores/Tin/Encoding# | + | | [[Cores/Tin/Encoding#inject|Tin]] || E0 || 1 |
|- | |- | ||
| − | | [[Cores/Copper/Encoding# | + | | [[Cores/Copper/Encoding#inject|Copper]] || E0 || 1 |
|- | |- | ||
| − | | [[Cores/Silver/Encoding# | + | | [[Cores/Silver/Encoding#inject|Silver]] || E0 E1 E2 E3 || 1 |
|- | |- | ||
| − | | [[Cores/Gold/Encoding# | + | | [[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 44: | Line 36: | ||
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ||
|- | |- | ||
| − | | [[Cores/Tin/Encoding# | + | | [[Cores/Tin/Encoding#inject|Tin]] || E0 || |
|- | |- | ||
| − | | [[Cores/Copper/Encoding# | + | | [[Cores/Copper/Encoding#inject|Copper]] || E0 || |
|- | |- | ||
| − | | [[Cores/Silver/Encoding# | + | | [[Cores/Silver/Encoding#inject|Silver]] || E0 E1 E2 E3 || |
|- | |- | ||
| − | | [[Cores/Gold/Encoding# | + | | [[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/ | + | | [[Cores/Tin/Encoding#inject|Tin]] || E0 || |
|- | |- | ||
| − | | [[Cores/ | + | | [[Cores/Copper/Encoding#inject|Copper]] || E0 || |
| + | |- | ||
| + | | [[Cores/Silver/Encoding#inject|Silver]] || E0 E1 E2 E3 || | ||
| + | |- | ||
| + | | [[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] | ||
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