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