aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-05-15 05:53:53 +0000
committerChris Lattner <sabre@nondot.org>2010-05-15 05:53:53 +0000
commitf805a6cc00b27ff0bcfc7f821e5d286c32a769ec (patch)
treed48b8e9baa9a32e4101498b5f39d6a75319b7de5
parent3c9034cb7ff1d6c1e4ecd1b44c98f553df013c7c (diff)
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
-rw-r--r--lib/Headers/xmmintrin.h3
1 files changed, 2 insertions, 1 deletions
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))