https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53687
LIU Hao <lh_mouse at 126 dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lh_mouse at 126 dot com --- Comment #2 from LIU Hao <lh_mouse at 126 dot com> --- Intel's choice that `_mm_cmpistri()` should return `int` is just awkward. The result has always been zero-extended to RCX; similarly for `PMOVMSK` (with AVX, `VPMOVMSKB` produces a 32-bit result which is still zero-extended). For Clang, casting the result to `uint32_t` is sufficient to eliminate the zero-extension; for GCC it does not work.