Skip to content

Latest commit

 

History

History
46 lines (41 loc) · 944 Bytes

vi.c.4.7-branch-instructions.md

File metadata and controls

46 lines (41 loc) · 944 Bytes

VI.C.4.7 Branch instructions

The assembler does not optimize branches. The branch must be specified explicitly as using either the short or long form of the instruction. If the displacement is too large for the short form, then the assembler will display an error.

<instr> ::=
<instr_brtarget> <int32>
| <instr_brtarget> <label>
<instr_brtarget> ::= Derived from opcode.def
beq
| beq.s
| bge
| bge.s
| bge.un
| bge.un.s
| bgt
| bgt.s
| bgt.un
| bgt.un.s
| ble
| ble.s
| ble.un
| ble.un.s
| blt
| blt.s
| blt.un
| blt.un.s
| bne.un
| bne.un.s
| br
| br.s
| brfalse
| brfalse.s
| brtrue
| brtrue.s
| leave
| leave.

Example:

br.s 22
br foo