forked from OSchip/llvm-project
Fix some casts to work without -flax-vector-conversions.
llvm-svn: 72981
This commit is contained in:
parent
aea9b65668
commit
d00fd2885e
|
@ -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__))
|
||||
|
|
|
@ -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__))
|
||||
|
|
Loading…
Reference in New Issue