Difference between revisions of "Instruction Set/carry"

From Mill Computing Wiki
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 1:Line 1:
 
{{DISPLAYTITLE:carry}}
 
{{DISPLAYTITLE:carry}}
<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; [[Domains|in the logical value domain]]&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; [[Domains|in the logical value domain]]&nbsp;&nbsp;<br />
'''native on:''' [[Cores|all]]<br />
+
'''native on:''' [[Cores/Tin|Tin]] [[Cores/Copper|Copper]] [[Cores/Gold|Gold]] <br />
 
</div>
 
</div>
  
carry/borrow gang predicate
+
Gets the carry/borrow flag or condition code of the ganged operation and puts it on the belt.
 +
<br />This is always available for condition code producing operations, regardless of overflow behavior.
 +
 
 +
<b>related operations:</b> [[Instruction_Set/eql|eql]], [[Instruction_Set/neq|neq]], [[Instruction_Set/gtr|gtr]], [[Instruction_Set/geq|geq]], [[Instruction_Set/lss|lss]], [[Instruction_Set/leq|leq]], [[Instruction_Set/overflow|overflow]], [[Instruction_Set/fault|fault]]
 +
 
 
----
 
----
<code style="font-size:130%"><b style="color:#050">carry</b>([[Condition_Code|<span style="color:#666">conditioncode</span>]]) &#8594; [[Domains#op|op]] r<sub>0</sub></code>
+
<code style="font-size:130%"><b style="color:#050">carry</b>() &#8594; [[Domains#op|op]] r<sub>0</sub></code>
 
<div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeIdentity|like Identity [xx:x]]]
 
<div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeIdentity|like Identity [xx:x]]]
</div>
+
&nbsp;&nbsp;'''native on:''' [[Cores/Copper|Copper]] [[Cores/Tin|Tin]] [[Cores/Gold|Gold]] </div>
 
<br />
 
<br />
  
 +
'''encoding:'''
 +
<code style="font-size:100%"><b style="color:#050">carry</b>(<span style="color:#009">[[Domains#op|op]]</span> <span title="belt operand from ops window">op0</span>)</code>
 +
<br />
 
{| class="mw-collapsible mw-collapsed wikitable" data-expandtext="&#9656;" data-collapsetext="&#9662;"
 
{| class="mw-collapsible mw-collapsed wikitable" data-expandtext="&#9656;" data-collapsetext="&#9662;"
 
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
|-
 
|-
| [[Cores/Tin/Encoding#carry|Tin]] || E0 E1 || 1
+
| [[Cores/Tin/Encoding#carry|Tin]] || E1 ||  
 
|-
 
|-
| [[Cores/Copper/Encoding#carry|Copper]] || E0 E1 || 1
+
| [[Cores/Copper/Encoding#carry|Copper]] || E1 ||  
 
|-
 
|-
| [[Cores/Silver/Encoding#carry|Silver]] || E0 E1 E2 E3 || 1
+
| [[Cores/Gold/Encoding#carry|Gold]] || E1 ||  
 +
|}
 +
 
 +
----
 +
<code style="font-size:130%"><b style="color:#050">carry</b>(<span style="color:#009">[[Domains#op|op]]</span> <span title="belt operand from ops window">op0</span>) &#8594; [[Domains#op|op]] r<sub>0</sub></code>
 +
<div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeIdentity|like Identity [xx:x]]]
 +
&nbsp;&nbsp;'''native on:''' [[Assembly|none]]</div>
 +
<br />
 +
 
 +
'''encoding:'''
 +
<code style="font-size:100%"><b style="color:#050">carry</b>(<span style="color:#009">[[Domains#op|op]]</span> <span title="belt operand from ops window">op0</span>)</code>
 +
<br />
 +
{| class="mw-collapsible mw-collapsed wikitable" data-expandtext="&#9656;" data-collapsetext="&#9662;"
 +
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
|-
 
|-
| [[Cores/Gold/Encoding#carry|Gold]] || E0 E1 E2 E3 E4 E5 E6 E7 || 1
+
| [[Cores/Tin/Encoding#carry|Tin]] || ||  
 
|-
 
|-
| [[Cores/Decimal8/Encoding#carry|Decimal8]] || E0 E1 E2 E3 || 1
+
| [[Cores/Copper/Encoding#carry|Copper]] || ||  
 
|-
 
|-
| [[Cores/Decimal16/Encoding#carry|Decimal16]] || E0 E1 E2 E3 || 1
+
| [[Cores/Gold/Encoding#carry|Gold]] || ||  
 
|}
 
|}
  
  
 
[[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:13, 23 February 2021

speculable  exu stream  exu block  compute phase   operation   in the logical value domain  

native on: Tin Copper Gold

Gets the carry/borrow flag or condition code of the ganged operation and puts it on the belt.
This is always available for condition code producing operations, regardless of overflow behavior.

related operations: eql, neq, gtr, geq, lss, leq, overflow, fault


carry() → op r0

operands: like Identity [xx:x]   native on: Copper Tin Gold


encoding: carry(op op0)

Core In Slots Latencies
Tin E1
Copper E1
Gold E1

carry(op op0) → op r0

operands: like Identity [xx:x]   native on: none


encoding: carry(op op0)

Core In Slots Latencies
Tin
Copper
Gold


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