Difference between revisions of "Instruction Set/test"

From Mill Computing Wiki
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:test}} <div style="font-size:80%;line-height:90%;margin-bottom:2em">realizing  exu stream  exu block...")
 
Line 4:Line 4:
 
</div>
 
</div>
  
bit test
+
Test if a single indexed bit is set.
 +
 
 +
**related operations:** [[Instruction_Set/set|set], [[Instruction_Set/clear|clear]
 +
 
 
----
 
----
 
<code style="font-size:130%"><b style="color:#050">test</b>(<span style="color:#009">[[Domains#op|op]]</span> <span title="belt operand from ops window">x</span>, <i><span style="color:#009">[[Immediates#bit|bit]]</span> <span title="bit number">bit</span></i>) &#8594; [[Domains#op|op]] r<sub>0</sub></code>
 
<code style="font-size:130%"><b style="color:#050">test</b>(<span style="color:#009">[[Domains#op|op]]</span> <span title="belt operand from ops window">x</span>, <i><span style="color:#009">[[Immediates#bit|bit]]</span> <span title="bit number">bit</span></i>) &#8594; [[Domains#op|op]] r<sub>0</sub></code>

Revision as of 18:48, 26 November 2014

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

native on: all

Test if a single indexed bit is set.

    • related operations:** [[Instruction_Set/set|set], [[Instruction_Set/clear|clear]

test(op x, bit bit) → op r0

operands: like Shift [xi:x]


Core In Slots Latencies
Tin E0 1
Copper E0 E1 1
Silver E0 E1 E2 E3 1
Gold E0 E1 E2 E3 E4 E5 E6 E7 1
Decimal8 E0 E1 E2 E3 1
Decimal16 E0 E1 E2 E3 1

test(op x, n bit) → op r0

operands: like Shift [xi:x]


Core In Slots Latencies
Tin E0 1
Copper E0 E1 1
Silver E0 E1 E2 E3 1
Gold E0 E1 E2 E3 E4 E5 E6 E7 1
Decimal8 E0 E1 E2 E3 1
Decimal16 E0 E1 E2 E3 1