POPCOUNT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127532
138bc75d-0d04-0410-961f-
82ee72b054a4
+2007-08-15 David Edelsohn <edelsohn@gnu.org>
+
+ * config/rs6000/rs6000.c (rs6000_rtx_costs): Add CLZ, CTZ, and
+ POPCOUNT.
+
2007-08-15 Daniel Jacobowitz <dan@codesourcery.com>
* config/rs6000/rs6000.c (rs6000_file_start): Output a .gnu_attribute
*total += COSTS_N_INSNS (2);
return false;
+ case CTZ:
case FFS:
*total = COSTS_N_INSNS (4);
return false;
+ case POPCOUNT:
+ *total = COSTS_N_INSNS (6);
+ return false;
+
case NOT:
if (outer_code == AND || outer_code == IOR || outer_code == XOR)
{
/* FALLTHRU */
case AND:
+ case CLZ:
case IOR:
case XOR:
case ZERO_EXTRACT: