https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79568
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri May 5 21:25:59 2017 New Revision: 247669 URL: https://gcc.gnu.org/viewcvs?rev=247669&root=gcc&view=rev Log: Backported from mainline 2017-02-20 Jakub Jelinek <ja...@redhat.com> 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 (bdesc_special_args, bdesc_args): 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. Added: branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr79568-1.c branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr79568-2.c branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr79568-3.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/config/i386/i386.c branches/gcc-6-branch/gcc/testsuite/ChangeLog