Compare Instruction¶
Ch 16
BRU — Branch and Compare |
**Group:** Compare Instruction |
**Forms:** 40 |
**Unique mnemonics:** 40
Integer comparison instructions that write a boolean result.
Instructions¶
| Mnemonic | Assembly | Length | Decode | Description |
|---|---|---|---|---|
| CMP.AND | cmp.and SrcL, SrcR<.sw, .uw, .not>, ->{t, u, Rd} |
32 | — | Instruction from the Compare Instruction group. |
| CMP.ANDI | cmp.andi SrcL, simm, ->{t, u, Rd} |
32 | — | Instruction from the Compare Instruction group. |
| CMP.EQ | cmp.eq SrcL, SrcR<{.sw, .uw}>, ->{t, u, Rd} |
32 | — | Compare equal. Sets destination to 1 if operands are equal. |
| CMP.EQI | cmp.eqi SrcL, simm, ->{t, u, Rd} |
32 | — | Instruction from the Compare Instruction group. |
| CMP.GE | cmp.ge SrcL, SrcR<{.sw, .uw}>, ->{t, u, Rd} |
32 | — | Compare greater-or-equal (signed). |
| CMP.GEI | cmp.gei SrcL, simm, ->{t, u, Rd} |
32 | — | Instruction from the Compare Instruction group. |
| CMP.GEU | cmp.geu SrcL, SrcR<{.sw, .uw}>, ->{t, u, Rd} |
32 | — | Compare greater-or-equal (unsigned). |
| CMP.GEUI | cmp.geui SrcL, uimm, ->{t, u, Rd} |
32 | — | Instruction from the Compare Instruction group. |
| CMP.LT | cmp.lt SrcL, SrcR<{.sw, .uw}>, ->{t, u, Rd} |
32 | — | Compare less-than (signed). |
| CMP.LTI | cmp.lti SrcL, simm, ->{t, u, Rd} |
32 | — | Instruction from the Compare Instruction group. |
| CMP.LTU | cmp.ltu SrcL, SrcR<{.sw, .uw}>, ->{t, u, Rd} |
32 | — | Compare less-than (unsigned). |
| CMP.LTUI | cmp.ltui SrcL, uimm, ->{t, u, Rd} |
32 | — | Instruction from the Compare Instruction group. |
| CMP.NE | cmp.ne SrcL, SrcR<{.sw, .uw}>, ->{t, u, Rd} |
32 | — | Compare not-equal. |
| CMP.NEI | cmp.nei SrcL, simm, ->{t, u, Rd} |
32 | — | Instruction from the Compare Instruction group. |
| CMP.OR | cmp.or SrcL, SrcR<.sw, .uw, .not>, ->{t, u, Rd} |
32 | — | Instruction from the Compare Instruction group. |
| CMP.ORI | cmp.ori SrcL, simm, ->{t, u, Rd} |
32 | — | Instruction from the Compare Instruction group. |
| HL.CMP.ANDI | hl.cmp.andi SrcL, simm, ->{t, u, Rd} |
48 | — | [48-bit HL.] Instruction from the Compare Instruction group. |
| HL.CMP.EQI | hl.cmp.eqi SrcL, simm, ->{t, u, Rd} |
48 | — | [48-bit HL.] Instruction from the Compare Instruction group. |
| HL.CMP.GEI | hl.cmp.gei SrcL, simm, ->{t, u, Rd} |
48 | — | [48-bit HL.] Instruction from the Compare Instruction group. |
| HL.CMP.GEUI | hl.cmp.geui SrcL, uimm, ->{t, u, Rd} |
48 | — | [48-bit HL.] Instruction from the Compare Instruction group. |
| HL.CMP.LTI | hl.cmp.lti SrcL, simm, ->{t, u, Rd} |
48 | — | [48-bit HL.] Instruction from the Compare Instruction group. |
| HL.CMP.LTUI | hl.cmp.ltui SrcL, uimm, ->{t, u, Rd} |
48 | — | [48-bit HL.] Instruction from the Compare Instruction group. |
| HL.CMP.NEI | hl.cmp.nei SrcL, simm, ->{t, u, Rd} |
48 | — | [48-bit HL.] Instruction from the Compare Instruction group. |
| HL.CMP.ORI | hl.cmp.ori SrcL, simm, ->{t, u, Rd} |
48 | — | [48-bit HL.] Instruction from the Compare Instruction group. |
| V.CMP.AND | v.cmp.and SrcL, SrcR, ->Dst |
64 | — | [64-bit V.] Instruction from the Compare Instruction group. |
| V.CMP.ANDI | v.cmp.andi SrcL, simm, ->Dst |
64 | — | [64-bit V.] Instruction from the Compare Instruction group. |
| V.CMP.EQ | v.cmp.eq SrcL, SrcR, ->Dst |
64 | — | [64-bit V.] Instruction from the Compare Instruction group. |
| V.CMP.EQI | v.cmp.eqi SrcL, simm, ->Dst |
64 | — | [64-bit V.] Instruction from the Compare Instruction group. |
| V.CMP.GE | v.cmp.ge SrcL, SrcR, ->Dst |
64 | — | [64-bit V.] Instruction from the Compare Instruction group. |
| V.CMP.GEI | v.cmp.gei SrcL, simm, ->Dst |
64 | — | [64-bit V.] Instruction from the Compare Instruction group. |
| V.CMP.GEU | v.cmp.geu SrcL, SrcR, ->Dst |
64 | — | [64-bit V.] Instruction from the Compare Instruction group. |
| V.CMP.GEUI | v.cmp.geui SrcL, uimm, ->Dst |
64 | — | [64-bit V.] Instruction from the Compare Instruction group. |
| V.CMP.LT | v.cmp.lt SrcL, SrcR, ->Dst |
64 | — | [64-bit V.] Instruction from the Compare Instruction group. |
| V.CMP.LTI | v.cmp.lti SrcL, simm, ->Dst |
64 | — | [64-bit V.] Instruction from the Compare Instruction group. |
| V.CMP.LTU | v.cmp.ltu SrcL, SrcR, ->Dst |
64 | — | [64-bit V.] Instruction from the Compare Instruction group. |
| V.CMP.LTUI | v.cmp.ltui SrcL, uimm, ->Dst |
64 | — | [64-bit V.] Instruction from the Compare Instruction group. |
| V.CMP.NE | v.cmp.ne SrcL, SrcR, ->Dst |
64 | — | [64-bit V.] Instruction from the Compare Instruction group. |
| V.CMP.NEI | v.cmp.nei SrcL, simm, ->Dst |
64 | — | [64-bit V.] Instruction from the Compare Instruction group. |
| V.CMP.OR | v.cmp.or SrcL, SrcR, ->Dst |
64 | — | [64-bit V.] Instruction from the Compare Instruction group. |
| V.CMP.ORI | v.cmp.ori SrcL, simm, ->Dst |
64 | — | [64-bit V.] Instruction from the Compare Instruction group. |