3.4.1 Simple Conditional



Short Conditional Branch, Test Against Zero

Mnemonic Format Unit Semantics Description
bzr zB bu if(x.j == 0) npc = pc + 3*tgt Branch if Zero
bnz zB bu if(x.j != 0) npc = pc + 3*tgt Branch if Not Zero
bpl zB bu if(x.j >= 0) npc = pc + 3*tgt Branch if Plus
bmi zB bu if(x.j < 0) npc = pc + 3*tgt Branch if Minus


Long Conditional Branch, Equality Test

Mnemonic Format Unit Semantics Description
beq rG lu if(x.j == y.j) npc = pc + pc_rel Branch if Equal
beqi iG lu if(x.j == imm) npc = pc + pc_rel Branch if Equal Immedidate
bne rG lu if(x.j != y.j) npc = pc + pc_rel Branch if Not Equal
bnei iG lu if(x.j != imm) npc = pc + pc_rel Branch if Not Equal Immedidate


Long Conditional Branch, Signed Relation Test

Mnemonic Format Unit Semantics Description
blt rG ia if(x.j < y.j) npc = pc + pc_rel Branch if Less Than
blti iG ia if(x.j < imm) npc = pc + pc_rel Branch if Less Than Immedidate
bge rG ia if(x.j >= y.j) npc = pc + pc_rel Branch if Greater or Equal
bgei iG ia if(x.j >= imm) npc = pc + pc_rel Branch if Greater or Equal Immedidate
ble rG ia if(x.j <= y.j) npc = pc + pc_rel Branch if Less or Equal
blei iG ia if(x.j <= imm) npc = pc + pc_rel Branch if Less or Equal Immedidate
bgt rG ia if(x.j > y.j) npc = pc + pc_rel Branch if Greater Than
bgti iG ia if(x.j > imm) npc = pc + pc_rel Branch if Greater Than Immedidate


Long Conditional Branch, Unsigned Relation Test

Mnemonic Format Unit Semantics Description
bult rG ia if(x.n < y.n ) npc = pc + pc_rel Branch if Unsigned Less Than
bulti iG ia if(x.n < (long long unsigned)imm) npc = pc + pc_rel Branch if Unsigned Less Than Immedidate
buge rG ia if(x.n >= y.n ) npc = pc + pc_rel Branch if Greater or Equal Unsigned
bugei iG ia if(x.n >= (long long unsigned)imm) npc = pc + pc_rel Branch if Greater or Equal Unsigned Immedidate
bule rG ia if(x.n <= y.n ) npc = pc + pc_rel Branch if Unsigned Less or Equal
bulei iG ia if(x.n <= (long long unsigned)imm) npc = pc + pc_rel Branch if Unsigned Less or Equal Immedidate
bugt rG ia if(x.n > y.n ) npc = pc + pc_rel Branch if Greater Than Unsigned
bugti iG ia if(x.n > (long long unsigned)imm) npc = pc + pc_rel Branch if Greater Than Unsigned Immedidate