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