From 9b2c4fc14a195365ddda825583bc10761ac6db14 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 16 May 2016 01:09:16 +0000 Subject: [PATCH] [X86] Remove bad cast from the 'int' return type of __builtin_ia32_kortestchi to '__mask16' before return in an 'int' intrinsic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269621 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Headers/avx512fintrin.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Headers/avx512fintrin.h b/lib/Headers/avx512fintrin.h index f967f6ec82..4b168f57b9 100644 --- a/lib/Headers/avx512fintrin.h +++ b/lib/Headers/avx512fintrin.h @@ -8407,15 +8407,13 @@ _mm512_kor (__mmask16 __A, __mmask16 __B) static __inline__ int __DEFAULT_FN_ATTRS _mm512_kortestc (__mmask16 __A, __mmask16 __B) { - return (__mmask16) __builtin_ia32_kortestchi ((__mmask16) __A, - (__mmask16) __B); + return __builtin_ia32_kortestchi ((__mmask16) __A, (__mmask16) __B); } static __inline__ int __DEFAULT_FN_ATTRS _mm512_kortestz (__mmask16 __A, __mmask16 __B) { - return (__mmask16) __builtin_ia32_kortestzhi ((__mmask16) __A, - (__mmask16) __B); + return __builtin_ia32_kortestzhi ((__mmask16) __A, (__mmask16) __B); } static __inline__ __mmask16 __DEFAULT_FN_ATTRS -- 2.40.0