SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Unsigned Compare for Equality, Less Than, Greater Than, Two Register Values
CMPU src1, src2
Functional unit = D
16 bit
15 | 14 | 13 | 12 | 10 | 9 | 7 | 6 | 0 |
x | x | x | src2 | src1 | 0 | 1 | 1 | 0 | 1 | 1 | 1 |
3 | 3 | opcode |
Compares src2 to src1. 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 == src1)
CSR[3]LT = (src2 < src1)
CSR[4]GT = (src2 > src1)
See Condition Codes