I want to compare 2 int8x8_t,
From http://gcc.gnu.org/onlinedocs/gcc/ARM-NEON-Intrinsics.html
we can get the description for vclt_s8, but it does not tell us much details.
`uint8x8_t vclt_s8 (int8x8_t, int8x8_t)`
Form of expected instruction(s): vcgt.s8 d0, d0, d0
the return value uint8x8_t, it confuse me for I can not use
if(vclt_s8(a, b)) to decide the first is smaller.
Then suppose we have two int8x8_t: int8x8_t a and int8x8_t b, how do we know whether a is smaller?
You may find more details in the official ARM documentation for NEON.
The generic description for all comparison functions states:
Suppose you have: (this is pseudo code,
[]meaning the 8 values of each vector)You'll get:
The 4 first values of
aare less than the 4 first values ofb: all bits of the first 4 values ofcare set to1, making them255.In the same way, all 4 last values are greater: all bits of the 4 last values of
care set to 0, making them0.Hope this helps!