SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Maximum of Two Unsigned Register Values
MAXU src1, src2, dst
Functional unit = L
32 bit
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 13 | 12 | 10 | 9 | 7 | 6 | 0 |
x | x | x | x | x | x | x | x | x | x | x | 1 | 1 | 0 | 1 | 0 | dst | src2 | src1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
3 | 3 | 3 | opcode |
Performs a maximum operation on the unsigned values in src1 and src2. The larger value is loaded in dst.
CSR:EQ = (dst == 0)
dst = (src2 > src1) ? src2:src1