Make sure that cmake test properly checks return value of popcnt to test availability.

This commit is contained in:
Pavel Krajcevski 2012-08-28 11:43:15 -04:00
parent f2c2f7c9af
commit 38e26850fe

View File

@ -25,7 +25,7 @@ IF(CMAKE_COMPILER_IS_GNUCC)
#include <smmintrin.h>
int main() {
const unsigned int testMe = 5;
return _mm_popcnt_u32(testMe);
return !(2 == _mm_popcnt_u32(testMe));
}"
HAS_SSE_POPCNT
)