Skip to content

CMP.EQ

32-bit Base **Group:** Compare Instruction  |  Ch 16   BRU — Branch and Compare  |  **Length:** 32  |  **Decode:**

Assembly Syntax

  • cmp.eq SrcL, SrcR<{.sw, .uw}>, ->{t, u, Rd}

Encoding

CMP.EQ encoding
Bitfield encoding diagram. MSB is on the left, LSB on the right.

Description

Compare equal. Sets destination to 1 if operands are equal.

Pseudocode (informative)

// Execute CMP.EQ as defined by the Compare Instruction semantics.

Encoding Notes

No additional encoding notes.

Full Catalog Forms

Assembly Length Decode
cmp.eq SrcL, SrcR<{.sw, .uw}>, ->{t, u, Rd} 32
← [Compare Instruction](../groups/compare_instruction.md)    [Index](../index.md)    [All instructions](index.md) →