Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 May 2014 19:22:28 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r266674 - head/contrib/llvm/tools/clang/lib/Headers
Message-ID:  <201405251922.s4PJMSuI021949@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sun May 25 19:22:28 2014
New Revision: 266674
URL: http://svnweb.freebsd.org/changeset/base/266674

Log:
  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

Modified:
  head/contrib/llvm/tools/clang/lib/Headers/xmmintrin.h

Modified: head/contrib/llvm/tools/clang/lib/Headers/xmmintrin.h
==============================================================================
--- head/contrib/llvm/tools/clang/lib/Headers/xmmintrin.h	Sun May 25 19:19:41 2014	(r266673)
+++ head/contrib/llvm/tools/clang/lib/Headers/xmmintrin.h	Sun May 25 19:22:28 2014	(r266674)
@@ -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__))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405251922.s4PJMSuI021949>