spatel added a comment.

In http://reviews.llvm.org/D21306#456965, @echristo wrote:

> The 128 bit versions should only be selecting for sse functions and shouldn't 
> need avx to work? What instructions are getting emitted here?


No, the 128-bit versions of these C intrinsics are strictly for AVX versions of 
the instructions (eg, vcmpps).

Example from the bug report:

  cmp = _mm_cmp_ps((__m128)a, (__m128)b, 8);

We're currently emitting illegal SSE instructions like:

  cmpps $0x8, %xmm1, %xmm0  <--- anything over '7' is reserved/undef


http://reviews.llvm.org/D21306



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to