Synopsis
uint8x4 __sel(uint8x4 val1,
uint8x4 val2);
Description
__sel inserts a SEL instruction. __sel returns the equivalent of
- res[0] = GE[0] ? val1[0] : val2[0]
- res[1] = GE[1] ? val1[1] : val2[1]
- res[2] = GE[2] ? val1[2] : val2[2]
- res[3] = GE[3] ? val1[3] : val2[3]
where [0] is the lower 16 bits and [1] is the upper 16 bits.