Add GFNI command line options and macros

Programming / Compilers / GCC - kyukhin [138bc75d-0d04-0410-961f-82ee72b054a4] - 20 October 2017 02:31 EDT

gcc/
- common/config/i386/i386-common.c (OPTION_MASK_ISA_GFNI_SET, (OPTION_MASK_ISA_GFNI_UNSET): New. (ix86_handle_option): Handle OPT_mgfni.
- config/i386/cpuid.h (bit_GFNI): New.
- config/i386/driver-i386.c (host_detect_local_cpu): Detect gfni.
- config/i386/i386-c.c (ix86_target_macros_internal): Define __GFNI__.
- config/i386/i386.c (ix86_target_string): Add -mgfni. (ix86_valid_target_attribute_inner_p): Add OPT_mgfni.
- config/i386/i386.h (TARGET_GFNI, TARGET_GFNI_P): New.
- config/i386/i386.opt: Add mgfni.

213ed75 Add GFNI command line options and macros
gcc/ChangeLog | 13 +++++++++++++
gcc/common/config/i386/i386-common.c | 15 +++++++++++++++
gcc/config/i386/cpuid.h | 1 +
gcc/config/i386/driver-i386.c | 5 ++++-
gcc/config/i386/i386-c.c | 2 ++
gcc/config/i386/i386.c | 2 ++
gcc/config/i386/i386.h | 2 ++
gcc/config/i386/i386.opt | 4 ++++
8 files changed, 43 insertions(+), 1 deletion(-)

Upstream: gcc.gnu.org


  • Share