Branch¶
Ch 16
BRU — Branch and Compare |
**Group:** Branch |
**Forms:** 10 |
**Unique mnemonics:** 10
Conditional PC-relative branch instructions.
Instructions¶
| Mnemonic | Assembly | Length | Decode | Description |
|---|---|---|---|---|
| B.EQ | b.eq SrcL, SrcR, label |
32 | — | Conditional branch taken when SrcL equals SrcR. |
| B.GE | b.ge SrcL, SrcR, label |
32 | — | Conditional branch taken when SrcL is greater than or equal to SrcR (signed). |
| B.GEU | b.geu SrcL, SrcR, label |
32 | — | Conditional branch taken when SrcL is greater than or equal to SrcR (unsigned). |
| B.LT | b.lt SrcL, SrcR, label |
32 | — | Conditional branch taken when SrcL is less than SrcR (signed). |
| B.LTU | b.ltu SrcL, SrcR, label |
32 | — | Conditional branch taken when SrcL is less than SrcR (unsigned). |
| B.NE | b.ne SrcL, SrcR, label |
32 | — | Conditional branch taken when SrcL not equal to SrcR. |
| B.NZ | b.nz label |
32 | — | Conditional PC-relative branch. |
| B.Z | b.z label |
32 | — | Conditional PC-relative branch. |
| J | j label |
32 | — | Unconditional PC-relative jump to a target label. |
| JR | jr SrcL, label |
32 | — | Jump register: PC-relative or register-based jump to the address in a register. |