rs6000.c (num_insns_constant): Compute number of instructions more accurately.

* rs6000.c (num_insns_constant): Compute number of instructions
        more accurately.

From-SVN: r45484
This commit is contained in:
David Edelsohn 2001-09-08 02:40:36 +00:00 committed by David Edelsohn
parent 43fe47ca78
commit 4e2c1c4484
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-09-07 David Edelsohn <edelsohn@gnu.org>
* rs6000.c (num_insns_constant): Compute number of instructions
more accurately.
2001-09-07 Jim Wilson <wilson@redhat.com>
* alias.c (clear_reg_alias_info): New.

View File

@ -880,7 +880,8 @@ num_insns_constant (op, mode)
if (GET_CODE (op) == CONST_INT)
{
#if HOST_BITS_PER_WIDE_INT == 64
if (mask64_operand (op, mode))
if ((INTVAL (op) >> 31) != 0 && (INTVAL (op) >> 31) != -1
&& mask64_operand (op, mode))
return 2;
else
#endif