[PATCH] D21373: [Clang][bmi][intrinsics] Adding _mm_tzcnt_64 _mm_tzcnt_32 intrinsics to clang.

michael zuckerman via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 21 04:20:54 PDT 2016


m_zuckerman added inline comments.

================
Comment at: lib/Headers/bmiintrin.h:296
@@ +295,3 @@
+/// This intrinsic corresponds to the \c TZCNT instruction.
+///
+/// \param __X
----------------
We can't use #define Here. The __mm_tzcnt_32(a) intrinsics is deferent from __tzcnt_u32  in the return value. The __mm_tzcnt_32 intrinsic return sign int while the __tzcnt_u32 return unsign value.   


http://reviews.llvm.org/D21373





More information about the cfe-commits mailing list