Difference between revisions of "Instruction Set/inject"

From Mill Computing Wiki
Jump to: navigation, search
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|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;<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>(<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  
+
<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>) &#8594; [[Domains#op|op]] r<sub>0</sub></code>
            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#likeShuffle|like Shuffle [xn:x]]]
<div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeInjectExuExuExu|like InjectExuExuExu XX:X]]
+
 
</div>
 
</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 />
 
<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 E1 || 1
+
| [[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 E1 E2 E3 E4 E5 E6 E7 || 1
+
| [[Cores/Gold/Encoding#inject|Gold]] || E0 || 1
|-
+
| [[Cores/Decimal8/Encoding#inject|Decimal8]] || E0 E1 E2 E3 || 1
+
|-
+
| [[Cores/Decimal16/Encoding#inject|Decimal16]] || E0 E1 E2 E3 || 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">v</span>, <span style="color:#009">[[Domains#op|op]]</span> <span title="belt operand from ops window">x</span>, <i><span style="color:#009">[[Immediates#imm|imm]]</span> <span title="small immediate constant
+
<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
             of per-slot varying range">i</span></i>) &#8594; [[Domains#op|op]] r<sub>0</sub></code>
+
             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#likeInjectExuExuImm|like InjectExuExuImm Xx:X]]
+
<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 || 1
+
| [[Cores/Tin/Encoding#inject|Tin]] || E0 ||  
 
|-
 
|-
| [[Cores/Copper/Encoding#inject|Copper]] || E0 E1 || 1
+
| [[Cores/Copper/Encoding#inject|Copper]] || E0 ||  
 
|-
 
|-
| [[Cores/Silver/Encoding#inject|Silver]] || E0 E1 E2 E3 || 1
+
| [[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>) &#8594; [[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="&#9656;" data-collapsetext="&#9662;"
 +
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 +
|-
 +
| [[Cores/Tin/Encoding#inject|Tin]] || E0 ||
 
|-
 
|-
| [[Cores/Gold/Encoding#inject|Gold]] || E0 E1 E2 E3 E4 E5 E6 E7 || 1
+
| [[Cores/Copper/Encoding#inject|Copper]] || E0 ||  
 
|-
 
|-
| [[Cores/Decimal8/Encoding#inject|Decimal8]] || E0 E1 E2 E3 || 1
+
| [[Cores/Silver/Encoding#inject|Silver]] || E0 E1 E2 E3 ||  
 
|-
 
|-
| [[Cores/Decimal16/Encoding#inject|Decimal16]] || E0 E1 E2 E3 || 1
+
| [[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

speculable  exu stream  exu block  compute phase   operation  

native on: all

Replace a vector element with a different scalar value.

related operations: alternate, shuffle, vec, extract


inject(i i) → op r0

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