SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Compare for Equality, Less Than, Greater Than, 3-Bit Unsigned Constant to Register
CMPU ucst3, src2
Functional unit = D
16 bit
15 | 14 | 13 | 12 | 10 | 9 | 7 | 6 | 0 |
x | x | x | src2 | ucst3 | 0 | 1 | 1 | 0 | 1 | 0 | 1 |
3 | 3 | opcode |
Compares src2 to a zero-extended 3-bit constant (ucst3). The condition bits CSR:EQ, CSR:LT, and CSR:GT are updated based on the comparison. This is an unsigned comparison.
CSR[2]EQ = (src2 == {zero extend}(ucst3)
CSR[3]LT = (src2 < {zero extend}(ucst3)
CSR[4]GT = (src2 > {zero extend}(ucst3)
See Condition Codes