Pull in r209489 from upstream clang trunk (by Akira Hatanaka):

Fix a bug in xmmintrin.h.

  The last step of _mm_cvtps_pi16 should use _mm_packs_pi32, which is a function
  that reads two __m64 values and packs four 32-bit values into four 16-bit
  values.

  <rdar://problem/16873717>

MFC after:	3 days
This commit is contained in:
Dimitry Andric 2014-05-25 19:22:28 +00:00
parent 1e17cf74b6
commit b742fcdab0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=266674

View File

@ -903,7 +903,7 @@ _mm_cvtps_pi16(__m128 __a)
__a = _mm_movehl_ps(__a, __a);
__c = _mm_cvtps_pi32(__a);
return _mm_packs_pi16(__b, __c);
return _mm_packs_pi32(__b, __c);
}
static __inline__ __m64 __attribute__((__always_inline__, __nodebug__))