2007-08-09 Sandra Loosemore <sandra@codesourcery.com>
commite533b20e5dabbb15601e49736e9e9ca917dcb44e
authorsandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Aug 2007 14:08:54 +0000 (9 14:08 +0000)
committersandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Aug 2007 14:08:54 +0000 (9 14:08 +0000)
treea8a3fee4ca17eda473bf8fd976e6e1976cb54255
parent99bdde56c01a90080290f126b54b20e6c1cf0ea0
2007-08-09  Sandra Loosemore  <sandra@codesourcery.com>
    Nigel Stephens  <nigel@mips.com>

gcc/
* doc/tm.texi (CLZ_DEFINED_VALUE_AT_ZERO, CTZ_DEFINED_VALUE_AT_ZERO):
Document change in interpretation of value from boolean to
tri-state integer.
* optabs.c (expand_ffs, expand_ctz): New functions to compute
ffs and ctz using clz.
(expand_unop):  Call them.
* config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Fix its
result value.
(CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
* config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Likewise, to
enable the new ffs expansion on this target.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127318 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/mips/mips.h
gcc/config/rs6000/rs6000.h
gcc/doc/tm.texi
gcc/optabs.c