Difference between revisions of "Instruction Set/narrowsx"
From Mill Computing Wiki
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
</div> | </div> | ||
− | + | Half the width of a signed integer value. Exception 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. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
---- | ---- | ||
− | <code style="font-size:130%"><b style="color:#050">narrowsx</b>(<span style="color:#009">[[Domains#s|s]]</span> <span title="belt operand from ops window"> | + | <code style="font-size:130%"><b style="color:#050">narrowsx</b>(<span style="color:#009">[[Domains#s|s]]</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>) → [[Domains#s|s]] 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#likeNarrow|like Narrow [xx:½x]]] |
</div> | </div> | ||
<br /> | <br /> | ||
Line 36: | Line 19: | ||
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ||
|- | |- | ||
− | | [[Cores/Tin/Encoding#narrowsx|Tin]] || E0 || | + | | [[Cores/Tin/Encoding#narrowsx|Tin]] || E0 || |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
− | | [[Cores/ | + | | [[Cores/Copper/Encoding#narrowsx|Copper]] || E0 || |
|- | |- | ||
− | | [[Cores/ | + | | [[Cores/Silver/Encoding#narrowsx|Silver]] || E0 E1 E2 E3 || |
|- | |- | ||
− | | [[Cores/ | + | | [[Cores/Gold/Encoding#narrowsx|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:06, 23 February 2021
realizing exu stream exu block compute phase operation in the signed integer value domain using excepting overflow behavior
native on: all
Half the width of a signed integer value. Exception 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.
narrowsx(s op0, width width0) → s 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