gcc/
PR target/82983
* config/i386/gfniintrin.h: Add sse check.
* config/i386/i386.c (ix86_expand_builtin): Fix gfni check.
From-SVN: r254797
+2017-11-16 Julia Koval <julia.koval@intel.com>
+
+ PR target/82983
+ * config/i386/gfniintrin.h: Add sse check.
+ * config/i386/i386.c (ix86_expand_builtin): Fix gfni check.
+
2017-11-16 Julia Koval <julia.koval@intel.com>
* common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI2_SET,
#ifndef _GFNIINTRIN_H_INCLUDED
#define _GFNIINTRIN_H_INCLUDED
-#ifndef __GFNI__
+#if !defined(__GFNI__) || !defined(__SSE__)
#pragma GCC push_options
-#pragma GCC target("gfni")
+#pragma GCC target("gfni,sse")
#define __DISABLE_GFNI__
#endif /* __GFNI__ */
& ix86_isa_flags))
|| ((ix86_builtins_isa[fcode].isa & OPTION_MASK_ISA_AVX512VL)
&& !(ix86_isa_flags & OPTION_MASK_ISA_AVX512VL))
+ || ((ix86_builtins_isa[fcode].isa & OPTION_MASK_ISA_GFNI)
+ && !(ix86_isa_flags & OPTION_MASK_ISA_GFNI))
|| ((ix86_builtins_isa[fcode].isa & OPTION_MASK_ISA_MMX)
&& !(ix86_isa_flags & OPTION_MASK_ISA_MMX))
|| (ix86_builtins_isa[fcode].isa2