if-test

Purpose

Branch to the given destination if the given two registers' values compare as specified.

Note: The branch offset may not be 0. (A spin loop may be legally constructed either by branching around a backward goto or by including a nop as a target before the branch.)

Details

Op & Format Mnemonic / Syntax Arguments
32..37 22t if-test vA, vB, +CCCC
32: if-eq
33: if-ne
34: if-lt
35: if-ge
36: if-gt
37: if-le
A: first register to test (4 bits)
B: second register to test (4 bits)
C: signed branch offset (16 bits)

Constraints

Behavior

Exceptions

None.