From 56c90f67e507207edc9514c70f8202b86a2d4caf Mon Sep 17 00:00:00 2001 From: uros Date: Fri, 8 Jun 2007 11:34:56 +0000 Subject: [PATCH] * config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and TARGET_ABM handling of x86_popcnt variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125570 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386.c | 11 ++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6ef4d8c..a0bc597 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2007-06-08 Uros Bizjak + * config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and + TARGET_ABM handling of x86_popcnt variable. + +2007-06-08 Uros Bizjak + * doc/extend.texi (X86 Built-in Functions): Document __builtin_fabsq, __builtin_copysignq and __builtin_infq built-in functions. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index c893900..eb7ff51 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -2267,12 +2267,9 @@ override_options (void) if (!TARGET_80387) target_flags |= MASK_NO_FANCY_MATH_387; - /* Turn on SSE4.1 builtins and popcnt instruction for -msse4.2. */ + /* Turn on SSE4.1 builtins for -msse4.2. */ if (TARGET_SSE4_2) - { - ix86_isa_flags |= OPTION_MASK_ISA_SSE4_1; - x86_popcnt = true; - } + ix86_isa_flags |= OPTION_MASK_ISA_SSE4_1; /* Turn on SSSE3 builtins for -msse4.1. */ if (TARGET_SSE4_1) @@ -2305,8 +2302,8 @@ override_options (void) if (TARGET_3DNOW) ix86_isa_flags |= OPTION_MASK_ISA_MMX; - /* Turn on POPCNT builtins for -mabm. */ - if (TARGET_ABM) + /* Turn on popcnt instruction for -msse4.2 or -mabm. */ + if (TARGET_SSE4_2 || TARGET_ABM) x86_popcnt = true; /* Validate -mpreferred-stack-boundary= value, or provide default. -- 2.7.4