Difference between revisions of "Instruction Set/inject"

From Mill Computing Wiki
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:inject}} <div style="font-size:80%;line-height:90%;margin-bottom:2em">realizing  exu stream Decode|exu block...")
 
Line 4:Line 4:
 
</div>
 
</div>
  
replace a vector element with a scalar
+
Replace a vector elements 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>(<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#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  
Line 21:Line 24:
 
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
|-
 
|-
| [[Cores/Tin/Encoding#1000|Tin]] || E0 || 1
+
| [[Cores/Tin/Encoding#inject|Tin]] || E0 || 1
 
|-
 
|-
| [[Cores/Copper/Encoding#1000|Copper]] || E0 E1 || 1
+
| [[Cores/Copper/Encoding#inject|Copper]] || E0 E1 || 1
 
|-
 
|-
| [[Cores/Silver/Encoding#1000|Silver]] || E0 E1 E2 E3 || 1
+
| [[Cores/Silver/Encoding#inject|Silver]] || E0 E1 E2 E3 || 1
 
|-
 
|-
| [[Cores/Gold/Encoding#1000|Gold]] || E0 E1 E2 E3 E4 E5 E6 E7 || 1
+
| [[Cores/Gold/Encoding#inject|Gold]] || E0 E1 E2 E3 E4 E5 E6 E7 || 1
 
|-
 
|-
| [[Cores/Decimal8/Encoding#1000|Decimal8]] || E0 E1 E2 E3 || 1
+
| [[Cores/Decimal8/Encoding#inject|Decimal8]] || E0 E1 E2 E3 || 1
 
|-
 
|-
| [[Cores/Decimal16/Encoding#1000|Decimal16]] || E0 E1 E2 E3 || 1
+
| [[Cores/Decimal16/Encoding#inject|Decimal16]] || E0 E1 E2 E3 || 1
 
|}
 
|}
  
Line 44:Line 47:
 
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
|-
 
|-
| [[Cores/Tin/Encoding#463|Tin]] || E0 || 1
+
| [[Cores/Tin/Encoding#inject|Tin]] || E0 || 1
 
|-
 
|-
| [[Cores/Copper/Encoding#463|Copper]] || E0 E1 || 1
+
| [[Cores/Copper/Encoding#inject|Copper]] || E0 E1 || 1
 
|-
 
|-
| [[Cores/Silver/Encoding#463|Silver]] || E0 E1 E2 E3 || 1
+
| [[Cores/Silver/Encoding#inject|Silver]] || E0 E1 E2 E3 || 1
 
|-
 
|-
| [[Cores/Gold/Encoding#463|Gold]] || E0 E1 E2 E3 E4 E5 E6 E7 || 1
+
| [[Cores/Gold/Encoding#inject|Gold]] || E0 E1 E2 E3 E4 E5 E6 E7 || 1
 
|-
 
|-
| [[Cores/Decimal8/Encoding#463|Decimal8]] || E0 E1 E2 E3 || 1
+
| [[Cores/Decimal8/Encoding#inject|Decimal8]] || E0 E1 E2 E3 || 1
 
|-
 
|-
| [[Cores/Decimal16/Encoding#463|Decimal16]] || E0 E1 E2 E3 || 1
+
| [[Cores/Decimal16/Encoding#inject|Decimal16]] || E0 E1 E2 E3 || 1
 
|}
 
|}
 +
 +
 +
[[Instruction_Set|Instruction Set, alphabetical]], [[Instruction Set by Category]], [http://millcomputing.com/instructions.html?collapse=7#ops Instruction Set, sortable, filterable]

Revision as of 02:39, 16 December 2014

realizing  exu stream  exu block  compute phase   operation  

native on: all

Replace a vector elements with a different scalar value.

related operations: alternate, shuffle, vec, extract


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 1
Copper E0 E1 1
Silver E0 E1 E2 E3 1
Gold E0 E1 E2 E3 E4 E5 E6 E7 1
Decimal8 E0 E1 E2 E3 1
Decimal16 E0 E1 E2 E3 1

inject(op v, op x, imm i) → op r0

operands: like InjectExuExuImm Xx:X


Core In Slots Latencies
Tin E0 1
Copper E0 E1 1
Silver E0 E1 E2 E3 1
Gold E0 E1 E2 E3 E4 E5 E6 E7 1
Decimal8 E0 E1 E2 E3 1
Decimal16 E0 E1 E2 E3 1


Instruction Set, alphabetical, Instruction Set by Category, Instruction Set, sortable, filterable