diff options
author | dim <dim@FreeBSD.org> | 2014-05-25 19:22:28 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-05-25 19:22:28 +0000 |
commit | bed90566328336c38f7575131d97cd87fc482539 (patch) | |
tree | 330f3ce04c6ea218e8dacd09632479a0a2795f97 /contrib/llvm/tools/clang/lib/Headers | |
parent | d12760a6c6c9d07a37d079b6cec2aa720fe13b8b (diff) | |
download | FreeBSD-src-bed90566328336c38f7575131d97cd87fc482539.zip FreeBSD-src-bed90566328336c38f7575131d97cd87fc482539.tar.gz |
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
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Headers')
-rw-r--r-- | contrib/llvm/tools/clang/lib/Headers/xmmintrin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm/tools/clang/lib/Headers/xmmintrin.h b/contrib/llvm/tools/clang/lib/Headers/xmmintrin.h index c68d3ed..f6305fb 100644 --- a/contrib/llvm/tools/clang/lib/Headers/xmmintrin.h +++ b/contrib/llvm/tools/clang/lib/Headers/xmmintrin.h @@ -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__)) |