]> granicus.if.org Git - clang/commitdiff
add type casts to _mm_shuffle_ps so the front-end applies
authorChris Lattner <sabre@nondot.org>
Sat, 15 May 2010 05:53:53 +0000 (05:53 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 15 May 2010 05:53:53 +0000 (05:53 +0000)
implicit conversions where needed.  This fixes an error reported
on cfe-dev, not really worth a testcase though.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103864 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/xmmintrin.h

index 4e313b23b3d0c53e07a9ea304d4099b2e3435bac..3e82e28c42edfe5420f08a918164d9f37867ff0c 100644 (file)
@@ -723,7 +723,8 @@ _mm_setcsr(unsigned int i)
 }
 
 #define _mm_shuffle_ps(a, b, mask) \
-        (__builtin_shufflevector(a, b, (mask) & 0x3, ((mask) & 0xc) >> 2, \
+        (__builtin_shufflevector((__v4sf)a, (__v4sf)b, \
+                                 (mask) & 0x3, ((mask) & 0xc) >> 2, \
                                  (((mask) & 0x30) >> 4) + 4, \
                                  (((mask) & 0xc0) >> 6) + 4))