diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-02-13 10:12:47 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-02-13 10:12:47 +0100 |
commit | 5cd1af499d9257f44bff6e4aa85b0a9fa7058e9a (patch) | |
tree | 943d48180cd5097ae5d4e42798cf64ffbd340f81 /gcc/config/i386/wmmintrin.h | |
parent | 204a7ecb02199cdef17e445821c1effbfaf21bae (diff) | |
download | gcc-5cd1af499d9257f44bff6e4aa85b0a9fa7058e9a.zip gcc-5cd1af499d9257f44bff6e4aa85b0a9fa7058e9a.tar.gz gcc-5cd1af499d9257f44bff6e4aa85b0a9fa7058e9a.tar.bz2 |
re PR target/84335 (ICE on invalid code in copy_to_mode_reg, at explow.c:612)
PR target/84335
* config/i386/i386.c (ix86_init_mmx_sse_builtins): Pass
OPTION_MASK_ISA_AES | OPTION_MASK_ISA_SSE2 instead of
OPTION_MASK_ISA_AES as first argument to def_builtin_const
for AES builtins. Pass OPTION_MASK_ISA_PCLMUL | OPTION_MASK_ISA_SSE2
instead of OPTION_MASK_ISA_PCLMUL as first argument to
def_builtin_const for __builtin_ia32_pclmulqdq128 builtin.
* config/i386/wmmintrin.h: If __SSE2__ is not defined, enable it
temporarily for AES and PCLMUL builtins.
* gcc.target/i386/pr84335.c: New test.
From-SVN: r257619
Diffstat (limited to 'gcc/config/i386/wmmintrin.h')
-rw-r--r-- | gcc/config/i386/wmmintrin.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/i386/wmmintrin.h b/gcc/config/i386/wmmintrin.h index 5eabf69..61837f3 100644 --- a/gcc/config/i386/wmmintrin.h +++ b/gcc/config/i386/wmmintrin.h @@ -32,9 +32,9 @@ /* AES */ -#ifndef __AES__ +#if !defined(__AES__) || !defined(__SSE2__) #pragma GCC push_options -#pragma GCC target("aes") +#pragma GCC target("aes,sse2") #define __DISABLE_AES__ #endif /* __AES__ */ @@ -101,9 +101,9 @@ _mm_aeskeygenassist_si128 (__m128i __X, const int __C) /* PCLMUL */ -#ifndef __PCLMUL__ +#if !defined(__PCLMUL__) || !defined(__SSE2__) #pragma GCC push_options -#pragma GCC target("pclmul") +#pragma GCC target("pclmul,sse2") #define __DISABLE_PCLMUL__ #endif /* __PCLMUL__ */ |