summaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-07 18:51:50 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-07 18:51:50 +0000
commita8bb341c9887f37fa6e337c499b1f6638a53680a (patch)
treec6abedb6e62186f219350abb5c2bc2b793b9e1a6 /gcc/configure.ac
parent0204490b84227463aff0e5ad23b30003e874c70d (diff)
downloadgcc-a8bb341c9887f37fa6e337c499b1f6638a53680a.tar.gz
* config.gcc ({powerpc,rs6000}-ibm-aix*): Remove rs6000/aix.opt
from extra_options. * config.in (HAVE_AS_POPCNTB): New. * configure.ac (HAVE_AS_MFCRF): Add .machine "pwr5" to AIX test. (HAVE_AS_POPCNTB): New. * configure: Regenerated. * config/rs6000/aix.h (TARGET_XL_COMPAT): Delete. * config/rs6000/rs6000.c (rs6000_override_options, power5): Add MASK_POPCNTB. Uncomment rs6000_sched_restricted_insns_priority and rs6000_sched_costly_dep. * config/rs6000/rs6000.h (TARGET_POPCNTB): New. (TARGET_XL_COMPAT): Delete. * config/rs6000/rs6000.md (UNSPEC_POPCNTB): New. (popcount<mode>2): New. (popcntb<mode>2): New. * config/rs6000/rs6000.opt (mpopcntb): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99356 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac19
1 files changed, 18 insertions, 1 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 4a3cb379370..d9dcbe3c04d 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -2768,7 +2768,8 @@ foo: nop
powerpc*-*-*)
case $target in
- *-*-aix*) conftest_s=' .csect .text[[PR]]
+ *-*-aix*) conftest_s=' .machine "pwr5"
+ .csect .text[[PR]]
mfcr 3,128';;
*-*-darwin*)
gcc_GAS_CHECK_FEATURE([.machine directive support],
@@ -2791,6 +2792,22 @@ foo: nop
[$conftest_s],,
[AC_DEFINE(HAVE_AS_MFCRF, 1,
[Define if your assembler supports mfcr field.])])
+
+ case $target in
+ *-*-aix*) conftest_s=' .machine "pwr5"
+ .csect .text[[PR]]
+ popcntb 3,3';;
+ *) conftest_s=' .machine power5
+ .text
+ popcntb 3,3';;
+ esac
+
+ gcc_GAS_CHECK_FEATURE([popcntb support],
+ gcc_cv_as_powerpc_popcntb, [2,17,0],,
+ [$conftest_s],,
+ [AC_DEFINE(HAVE_AS_POPCNTB, 1,
+ [Define if your assembler supports popcntb field.])])
+
;;
mips*-*-*)