SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Assembly syntax: | VSWAP cond, {src1|dst1}, {src2|dst2} |
Operation: | Conditional swap |
Classification: | 3-input 2-output |
Bit width: | 1-bit cond, 40-bit src1 & src2 |
Delay slot: | no |
C statement: | if (cond & 1) swap(src1, src2) |
Only the LSB of the vector register indicated by cond is checked. A swap/no-swap decision is made in each SIMD lane using the LSB of cond register in the lane.