re PR target/79568 (ICE in extract_insn, at recog.c:2311 for pr70325.c (with -mavx512bw))
authorJakub Jelinek <jakub@gcc.gnu.org>
Mon, 20 Feb 2017 12:52:21 +0000 (13:52 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 20 Feb 2017 12:52:21 +0000 (13:52 +0100)
commit705d3b776dbf4f447230e6dce2271eec219c89af
tree5d3260dfb1b2134a1fe38594aec49103c37b39a4
parent1b51df94425a71e9f0ee1d53559e2063a29e85cc
re PR target/79568 (ICE in extract_insn, at recog.c:2311 for pr70325.c (with -mavx512bw))

PR target/79568
* config/i386/i386.c (ix86_expand_builtin): Handle
OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
ix86_builtins_isa[fcode].isa as a requirement of those
flags and any other flag in the bitmask.
(ix86_init_mmx_sse_builtins): Use 0 instead of
~OPTION_MASK_ISA_64BIT as mask.
* config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
__builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
__builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
__builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.

* gcc.target/i386/pr79568-1.c: New test.
* gcc.target/i386/pr79568-2.c: New test.
* gcc.target/i386/pr79568-3.c: New test.

From-SVN: r245602
gcc/ChangeLog
gcc/config/i386/i386-builtin.def
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr79568-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr79568-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr79568-3.c [new file with mode: 0644]