How to compare two vectors using SIMD and get a single boolean result?

Viewed 10930

I have two vectors of 4 integers each and I'd like to use a SIMD command to compare them (say generate a result vector where each entry is 0 or 1 according to the result of the comparison).

Then, I'd like to compare the result vector to a vector of 4 zeros and only if they're equal do something.

Do you know what SIMD commands I can use to do it?

1 Answers
Related