r295584 - [X86][XOP] Fix type conversion warning in vpcmov generic implementations.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 18 15:47:35 PST 2017
Author: rksimon
Date: Sat Feb 18 17:47:34 2017
New Revision: 295584
URL: http://llvm.org/viewvc/llvm-project?rev=295584&view=rev
Log:
[X86][XOP] Fix type conversion warning in vpcmov generic implementations.
Modified:
cfe/trunk/lib/Headers/xopintrin.h
Modified: cfe/trunk/lib/Headers/xopintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/xopintrin.h?rev=295584&r1=295583&r2=295584&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/xopintrin.h (original)
+++ cfe/trunk/lib/Headers/xopintrin.h Sat Feb 18 17:47:34 2017
@@ -198,13 +198,13 @@ _mm_hsubq_epi32(__m128i __A)
static __inline__ __m128i __DEFAULT_FN_ATTRS
_mm_cmov_si128(__m128i __A, __m128i __B, __m128i __C)
{
- return (__m128i)((__v2du)__A & (__v2du)__C) | ((__v2du)__B & ~(__v2du)__C);
+ return (__m128i)(((__v2du)__A & (__v2du)__C) | ((__v2du)__B & ~(__v2du)__C));
}
static __inline__ __m256i __DEFAULT_FN_ATTRS
_mm256_cmov_si256(__m256i __A, __m256i __B, __m256i __C)
{
- return (__m256i)((__v4du)__A & (__v4du)__C) | ((__v4du)__B & ~(__v4du)__C);
+ return (__m256i)(((__v4du)__A & (__v4du)__C) | ((__v4du)__B & ~(__v4du)__C));
}
static __inline__ __m128i __DEFAULT_FN_ATTRS
More information about the cfe-commits
mailing list