re PR target/84335 (ICE on invalid code in copy_to_mode_reg, at explow.c:612)
authorJakub Jelinek <jakub@redhat.com>
Tue, 13 Feb 2018 09:12:47 +0000 (10:12 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 13 Feb 2018 09:12:47 +0000 (10:12 +0100)
commit5cd1af499d9257f44bff6e4aa85b0a9fa7058e9a
tree943d48180cd5097ae5d4e42798cf64ffbd340f81
parent204a7ecb02199cdef17e445821c1effbfaf21bae
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
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/wmmintrin.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr84335.c [new file with mode: 0644]