Difference between revisions of "Instruction Set/narrowus"

From Mill Computing Wiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 11:Line 11:
  
 
----
 
----
<code style="font-size:130%"><b style="color:#050">narrowus</b>(<span style="color:#009">[[Domains#u|u]]</span> <span title="belt operand from ops window">v</span>) &#8594; [[Domains#u|u]] r<sub>0</sub></code>
+
<code style="font-size:130%"><b style="color:#050">narrowus</b>(<span style="color:#009">[[Domains#u|u]]</span> <span title="belt operand from ops window">op0</span>, <i><span style="color:#009">[[Immediates#width|width]]</span> <span title="data width and vector length (exu)">width0</span></i>) &#8594; [[Domains#u|u]] r<sub>0</sub></code>
 
<div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeNarrow|like Narrow [xx:&#189;x]]]
 
<div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeNarrow|like Narrow [xx:&#189;x]]]
 
</div>
 
</div>
Line 19:Line 19:
 
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
|-
 
|-
| [[Cores/Tin/Encoding#narrowus|Tin]] || E0 || 2
+
| [[Cores/Tin/Encoding#narrowus|Tin]] || E0 ||  
 
|-
 
|-
| [[Cores/Copper/Encoding#narrowus|Copper]] || E0 E1 || 2
+
| [[Cores/Copper/Encoding#narrowus|Copper]] || E0 ||  
 
|-
 
|-
| [[Cores/Silver/Encoding#narrowus|Silver]] || E0 E1 E2 E3 || 2
+
| [[Cores/Silver/Encoding#narrowus|Silver]] || E0 E1 E2 E3 ||  
 
|-
 
|-
| [[Cores/Gold/Encoding#narrowus|Gold]] || E0 E1 E2 E3 E4 E5 E6 E7 || 2
+
| [[Cores/Gold/Encoding#narrowus|Gold]] || E0 ||  
|-
+
| [[Cores/Decimal8/Encoding#narrowus|Decimal8]] || E0 E1 E2 E3 || 2
+
|-
+
| [[Cores/Decimal16/Encoding#narrowus|Decimal16]] || E0 E1 E2 E3 || 2
+
|}
+
 
+
----
+
<code style="font-size:130%"><b style="color:#050">narrowus</b>(<span style="color:#009">[[Domains#u|u]]</span> <span title="belt operand from ops window">v1</span>, <span style="color:#009">[[Domains#u|u]]</span> <span title="belt operand from ops window">v2</span>) &#8594; [[Domains#u|u]] r<sub>0</sub></code>
+
<div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeNarrowv|like Narrowv [XX:&#189;x]]]
+
</div>
+
<br />
+
 
+
{| class="mw-collapsible mw-collapsed wikitable" data-expandtext="&#9656;" data-collapsetext="&#9662;"
+
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
+
|-
+
| [[Cores/Tin/Encoding#narrowus|Tin]] || E0 || 2
+
|-
+
| [[Cores/Copper/Encoding#narrowus|Copper]] || E0 E1 || 2
+
|-
+
| [[Cores/Silver/Encoding#narrowus|Silver]] || E0 E1 E2 E3 || 2
+
|-
+
| [[Cores/Gold/Encoding#narrowus|Gold]] || E0 E1 E2 E3 E4 E5 E6 E7 || 2
+
|-
+
| [[Cores/Decimal8/Encoding#narrowus|Decimal8]] || E0 E1 E2 E3 || 2
+
|-
+
| [[Cores/Decimal16/Encoding#narrowus|Decimal16]] || E0 E1 E2 E3 || 2
+
 
|}
 
|}
  
  
 
[[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:05, 23 February 2021

realizing  exu stream  exu block  compute phase   operation   in the unsigned integer value domain   using saturating overflow behavior  

native on: all

Half the width of an unsigned integer value. Saturating on overflow.

This is not a Speculable operation. The reason for this is the impossibility to fit all of the NaR payload into values smaller than 32bit. Nominally this would only require the narrowing of 32bit values to be not speculable, but for simplicity reasons in hardware and compiler this is not so. If narrowing should prove a big bottleneck this can be revisited.


narrowus(u op0, width width0) → u r0

operands: like Narrow [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