SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Compare for Equality, Less Than, Greater Than, 16-Bit Unsigned Constant to Register
CMPU ucst16, src2
Functional unit = D
32 bit
31 | 16 | 15 | 14 | 13 | 12 | 10 | 9 | 0 |
ucst16 | x | x | x | src2 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
16 | 3 | opcode |
Compares src2 to a zero-extended 16-bit constant (ucst16). 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}(ucst16)
CSR[3]LT = (src2 < {zero extend}(ucst16)
CSR[4]GT = (src2 > {zero extend}(ucst16)
See Condition Codes