[cfe-commits] r110389 - /cfe/trunk/lib/Headers/avxintrin.h
Bruno Cardoso Lopes
bruno.cardoso at gmail.com
Thu Aug 5 16:04:58 PDT 2010
Author: bruno
Date: Thu Aug 5 18:04:58 2010
New Revision: 110389
URL: http://llvm.org/viewvc/llvm-project?rev=110389&view=rev
Log:
Fix AVX 256-bit intrinsics headers by using the right cast type while dealing with logical ops
Modified:
cfe/trunk/lib/Headers/avxintrin.h
Modified: cfe/trunk/lib/Headers/avxintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/avxintrin.h?rev=110389&r1=110388&r2=110389&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/avxintrin.h (original)
+++ cfe/trunk/lib/Headers/avxintrin.h Thu Aug 5 18:04:58 2010
@@ -169,49 +169,49 @@
static __inline __m256d __attribute__((__always_inline__, __nodebug__))
_mm256_and_pd(__m256d a, __m256d b)
{
- return (__m256d)((__v4df)a & (__v4df)b);
+ return (__m256d)((__v4di)a & (__v4di)b);
}
static __inline __m256 __attribute__((__always_inline__, __nodebug__))
_mm256_and_ps(__m256 a, __m256 b)
{
- return (__m256)((__v8sf)a & (__v8sf)b);
+ return (__m256)((__v8si)a & (__v8si)b);
}
static __inline __m256d __attribute__((__always_inline__, __nodebug__))
_mm256_andnot_pd(__m256d a, __m256d b)
{
- return (__m256d)(~(__v4df)a & (__v4df)b);
+ return (__m256d)(~(__v4di)a & (__v4di)b);
}
static __inline __m256 __attribute__((__always_inline__, __nodebug__))
_mm256_andnot_ps(__m256 a, __m256 b)
{
- return (__m256)(~(__v8sf)a & (__v8sf)b);
+ return (__m256)(~(__v8si)a & (__v8si)b);
}
static __inline __m256d __attribute__((__always_inline__, __nodebug__))
_mm256_or_pd(__m256d a, __m256d b)
{
- return (__m256d)((__v4df)a | (__v4df)b);
+ return (__m256d)((__v4di)a | (__v4di)b);
}
static __inline __m256 __attribute__((__always_inline__, __nodebug__))
_mm256_or_ps(__m256 a, __m256 b)
{
- return (__m256)((__v8sf)a | (__v8sf)b);
+ return (__m256)((__v8si)a | (__v8si)b);
}
static __inline __m256d __attribute__((__always_inline__, __nodebug__))
_mm256_xor_pd(__m256d a, __m256d b)
{
- return (__m256d)((__v4df)a ^ (__v4df)b);
+ return (__m256d)((__v4di)a ^ (__v4di)b);
}
static __inline __m256 __attribute__((__always_inline__, __nodebug__))
_mm256_xor_ps(__m256 a, __m256 b)
{
- return (__m256)((__v8sf)a ^ (__v8sf)b);
+ return (__m256)((__v8si)a ^ (__v8si)b);
}
/* Horizontal arithmetic */
More information about the cfe-commits
mailing list