From: Uros Bizjak Date: Tue, 5 Jan 2021 13:30:05 +0000 (+0100) Subject: i386: Add _mm256_cmov_si256 [PR98521] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=951bdbde6ade56eb63af1dfa18777348a8a0d89e;p=gcc.git i386: Add _mm256_cmov_si256 [PR98521] Add missing _mm256_cmov_si256 intrinsic to xopintrin.h. 2021-01-05 Uroš Bizjak gcc/ PR target/98521 * config/i386/xopintrin.h (_mm256_cmov_si256): New. --- diff --git a/gcc/config/i386/xopintrin.h b/gcc/config/i386/xopintrin.h index 7b46084a73a..b95ef480051 100644 --- a/gcc/config/i386/xopintrin.h +++ b/gcc/config/i386/xopintrin.h @@ -208,6 +208,12 @@ _mm_cmov_si128(__m128i __A, __m128i __B, __m128i __C) return (__m128i) __builtin_ia32_vpcmov (__A, __B, __C); } +extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) +_mm256_cmov_si256(__m256i __A, __m256i __B, __m256i __C) +{ + return (__m256i) __builtin_ia32_vpcmov256 (__A, __B, __C); +} + extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_perm_epi8(__m128i __A, __m128i __B, __m128i __C) {