diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2009-06-06 03:45:06 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2009-06-06 03:45:06 +0000 |
| commit | d00fd2885e47bf938e00c77c2b257e4ae60be1b4 (patch) | |
| tree | d5528d66eb015f532bc20f5b3e63d5d37bd85338 | |
| parent | aea9b656684eaefebde46cc6a46569aeb4799d3f (diff) | |
| download | bcm5719-llvm-d00fd2885e47bf938e00c77c2b257e4ae60be1b4.tar.gz bcm5719-llvm-d00fd2885e47bf938e00c77c2b257e4ae60be1b4.zip | |
Fix some casts to work without -flax-vector-conversions.
llvm-svn: 72981
| -rw-r--r-- | clang/lib/Headers/emmintrin.h | 10 | ||||
| -rw-r--r-- | clang/lib/Headers/xmmintrin.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/clang/lib/Headers/emmintrin.h b/clang/lib/Headers/emmintrin.h index 1061bf3b79a..96a67f0957c 100644 --- a/clang/lib/Headers/emmintrin.h +++ b/clang/lib/Headers/emmintrin.h @@ -129,25 +129,25 @@ _mm_max_pd(__m128d a, __m128d b) static inline __m128d __attribute__((__always_inline__, __nodebug__)) _mm_and_pd(__m128d a, __m128d b) { - return (__m128)((__v4si)a & (__v4si)b); + return (__m128d)((__v4si)a & (__v4si)b); } static inline __m128d __attribute__((__always_inline__, __nodebug__)) _mm_andnot_pd(__m128d a, __m128d b) { - return (__m128)(~(__v4si)a & (__v4si)b); + return (__m128d)(~(__v4si)a & (__v4si)b); } static inline __m128d __attribute__((__always_inline__, __nodebug__)) _mm_or_pd(__m128d a, __m128d b) { - return (__m128)((__v4si)a | (__v4si)b); + return (__m128d)((__v4si)a | (__v4si)b); } static inline __m128d __attribute__((__always_inline__, __nodebug__)) _mm_xor_pd(__m128d a, __m128d b) { - return (__m128)((__v4si)a ^ (__v4si)b); + return (__m128d)((__v4si)a ^ (__v4si)b); } static inline __m128d __attribute__((__always_inline__, __nodebug__)) @@ -1190,7 +1190,7 @@ _mm_insert_epi16(__m128i a, int b, int imm) { __v8hi c = (__v8hi)a; c[imm & 7] = b; - return c; + return (__m128i)c; } static inline int __attribute__((__always_inline__, __nodebug__)) diff --git a/clang/lib/Headers/xmmintrin.h b/clang/lib/Headers/xmmintrin.h index f896893173f..96940efa798 100644 --- a/clang/lib/Headers/xmmintrin.h +++ b/clang/lib/Headers/xmmintrin.h @@ -634,7 +634,7 @@ _mm_insert_pi16(__m64 a, int d, int n) { __v4hi b = (__v4hi)a; b[n & 3] = d; - return b; + return (__m64)b; } static inline __m64 __attribute__((__always_inline__, __nodebug__)) |

