Difference between revisions of "Instruction Set/calltrn"

From Mill Computing Wiki
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:calltrn}} <div style="font-size:80%;line-height:90%;margin-bottom:2em">realizing  flow stream Decode|flow bl...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1:Line 1:
 
{{DISPLAYTITLE:calltrn}}
 
{{DISPLAYTITLE:calltrn}}
 
<div style="font-size:80%;line-height:90%;margin-bottom:2em">[[Speculation|realizing]]&nbsp;&nbsp;[[Encoding|flow stream]]&nbsp;&nbsp;[[Decode|flow block]]&nbsp;&nbsp;[[Phasing|call phase]]&nbsp;&nbsp; operation&nbsp;&nbsp;<br />
 
<div style="font-size:80%;line-height:90%;margin-bottom:2em">[[Speculation|realizing]]&nbsp;&nbsp;[[Encoding|flow stream]]&nbsp;&nbsp;[[Decode|flow block]]&nbsp;&nbsp;[[Phasing|call phase]]&nbsp;&nbsp; operation&nbsp;&nbsp;<br />
'''aliases:''' calltrn <br />
 
 
'''native on:''' [[Cores|all]]<br />
 
'''native on:''' [[Cores|all]]<br />
 
</div>
 
</div>
  
function call
+
Call predicated function with defined number of return values on true.
 +
 
 +
Everything that applies to [[Instruction_Set/calln|calln]] applies also here. The difference is the predicate to make it a conditional call. And there is one less possible argument in all the encodings.
 +
 
 +
<b>related operations:</b>  [[Instruction_Set/calln|calln]], [[Instruction_Set/callfln|callfln]], [[Instruction_Set/retn|retn]]
 +
 
 
----
 
----
 
<code style="font-size:130%"><b style="color:#050">calltrn</b>(<span style="color:#009">[[Domains#op|op]]</span> <span title="call argument from calls window">q</span>, <i><span style="color:#009">[[Immediates#lit|lit]]</span> <span title="morsel-sized manifest constant">n</span></i>, <span style="color:#009">[[Domains#p|p]]</span> <span title="call argument from  
 
<code style="font-size:130%"><b style="color:#050">calltrn</b>(<span style="color:#009">[[Domains#op|op]]</span> <span title="call argument from calls window">q</span>, <i><span style="color:#009">[[Immediates#lit|lit]]</span> <span title="morsel-sized manifest constant">n</span></i>, <span style="color:#009">[[Domains#p|p]]</span> <span title="call argument from  
Line 20:Line 24:
 
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
|-
 
|-
| [[Cores/Tin/Encoding#954|Tin]] || F0 || 1
+
| [[Cores/Silver/Encoding#calltrn|Silver]] || F0 F1 F2 || 1
|-
+
| [[Cores/Copper/Encoding#954|Copper]] || F0 F1 || 1
+
|-
+
| [[Cores/Silver/Encoding#954|Silver]] || F0 F1 F2 || 1
+
|-
+
| [[Cores/Gold/Encoding#954|Gold]] || F0 F1 F2 F3 || 1
+
|-
+
| [[Cores/Decimal8/Encoding#954|Decimal8]] || F0 F1 F2 || 1
+
|-
+
| [[Cores/Decimal16/Encoding#954|Decimal16]] || F0 F1 F2 || 1
+
 
|}
 
|}
  
Line 49:Line 43:
 
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]]
 
|-
 
|-
| [[Cores/Tin/Encoding#955|Tin]] || F0 || 1
+
| [[Cores/Silver/Encoding#calltrn|Silver]] || F0 F1 F2 || 1
|-
+
| [[Cores/Copper/Encoding#955|Copper]] || F0 F1 || 1
+
|-
+
| [[Cores/Silver/Encoding#955|Silver]] || F0 F1 F2 || 1
+
|-
+
| [[Cores/Gold/Encoding#955|Gold]] || F0 F1 F2 F3 || 1
+
|-
+
| [[Cores/Decimal8/Encoding#955|Decimal8]] || F0 F1 F2 || 1
+
|-
+
| [[Cores/Decimal16/Encoding#955|Decimal16]] || F0 F1 F2 || 1
+
 
|}
 
|}
 +
 +
 +
[[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:03, 23 February 2021

realizing  flow stream  flow block  call phase   operation  

native on: all

Call predicated function with defined number of return values on true.

Everything that applies to calln applies also here. The difference is the predicate to make it a conditional call. And there is one less possible argument in all the encodings.

related operations: calln, callfln, retn


calltrn(op q, lit n, p target, args args) → ops r0 ...rn

operands: like Inv :


encoding: calltrn(op q, lit n, p target, off argc, count args)

Core In Slots Latencies
Silver F0 F1 F2 1

calltrn(op q, lit n, lbl target, args args) → ops r0 ...rn

operands: like Inv :


encoding: calltrn(op q, lit n, off target, count argc) , calltrn(op q, lit n, off target, count argc, lit argv)

Core In Slots Latencies
Silver F0 F1 F2 1


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