Difference between revisions of "Instruction Set/narrowf"

From Mill Computing Wiki
Jump to: navigation, search
Line 4:Line 4:
 
</div>
 
</div>
  
narrow scalar to half width
+
Half the width of a binary float value. Current rounding mode.
 +
 
 +
Can produce the [http://en.wikipedia.org/wiki/IEEE_floating_point IEEE 754] 16bit binary float interchange format.
 +
 
 +
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.
 +
 
 
----
 
----
 
<code style="font-size:130%"><b style="color:#050">narrowf</b>(<span style="color:#009">[[Domains#f|f]]</span> <span title="belt operand from ops window">v</span>) &#8594; [[Domains#f|f]] r<sub>0</sub></code>
 
<code style="font-size:130%"><b style="color:#050">narrowf</b>(<span style="color:#009">[[Domains#f|f]]</span> <span title="belt operand from ops window">v</span>) &#8594; [[Domains#f|f]] r<sub>0</sub></code>

Revision as of 00:06, 3 January 2015

realizing  exu stream  exu block  compute phase   operation   in the binary floating point value domain   and rounds use current dynamic rounding mode

native on: Silver Gold

Half the width of a binary float value. Current rounding mode.

Can produce the IEEE 754 16bit binary float interchange format.

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.


narrowf(f v) → f r0

operands: like Narrowf [ff:½f]


Core In Slots Latencies
Silver E0 E1 w:h=3 d:w=4 q:d=5
Gold E0 E1 E2 E3 w:h=3 d:w=4 q:d=5

narrowf(f v1, f v2) → f r0

operands: like Narrowvf [FF:½F]


Core In Slots Latencies
Silver E0 E1 wv,wv:hv=3 dv,dv:wv=4 qv,qv:dv=5
Gold E0 E1 E2 E3 wv,wv:hv=3 dv,dv:wv=4 qv,qv:dv=5


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