From: Chris Lattner Date: Sat, 15 May 2010 05:53:53 +0000 (+0000) Subject: add type casts to _mm_shuffle_ps so the front-end applies X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f805a6cc00b27ff0bcfc7f821e5d286c32a769ec;p=clang add type casts to _mm_shuffle_ps so the front-end applies 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 --- diff --git a/lib/Headers/xmmintrin.h b/lib/Headers/xmmintrin.h index 4e313b23b3..3e82e28c42 100644 --- a/lib/Headers/xmmintrin.h +++ b/lib/Headers/xmmintrin.h @@ -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))