Skip to content

Commit 5d28ea1

Browse files
committed
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> llvm-svn: 209489
1 parent f5e8a14 commit 5d28ea1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Headers/xmmintrin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ _mm_cvtps_pi16(__m128 __a)
905905
__a = _mm_movehl_ps(__a, __a);
906906
__c = _mm_cvtps_pi32(__a);
907907

908-
return _mm_packs_pi16(__b, __c);
908+
return _mm_packs_pi32(__b, __c);
909909
}
910910

911911
static __inline__ __m64 __attribute__((__always_inline__, __nodebug__))

0 commit comments

Comments
 (0)