Commit 5b296d93 by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

cris.c (cris_rtx_costs): Blockify dangling else.

	* config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
	Fix functionalization typo.

From-SVN: r63272
parent 182c2078
2003-02-22 Hans-Peter Nilsson <hp@axis.com> 2003-02-22 Hans-Peter Nilsson <hp@axis.com>
* config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
Fix functionalization typo.
* regmove.c (optimize_reg_copy_1): Do not replace a hard register * regmove.c (optimize_reg_copy_1): Do not replace a hard register
in an asm. in an asm.
......
/* Definitions for GCC. Part of the machine description for CRIS. /* Definitions for GCC. Part of the machine description for CRIS.
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
Contributed by Axis Communications. Written by Hans-Peter Nilsson. Contributed by Axis Communications. Written by Hans-Peter Nilsson.
This file is part of GCC. This file is part of GCC.
...@@ -2128,10 +2128,12 @@ cris_rtx_costs (x, code, outer_code, total) ...@@ -2128,10 +2128,12 @@ cris_rtx_costs (x, code, outer_code, total)
and the PIC register. For a global PIC symbol, we also and the PIC register. For a global PIC symbol, we also
need a read of the GOT. */ need a read of the GOT. */
if (flag_pic) if (flag_pic)
if (cris_got_symbol (x)) {
*total = 2 + 4 + 6; if (cris_got_symbol (x))
else *total = 2 + 4 + 6;
*total = 2 + 6; else
*total = 2 + 6;
}
else else
*total = 6; *total = 6;
return true; return true;
...@@ -2169,7 +2171,7 @@ cris_rtx_costs (x, code, outer_code, total) ...@@ -2169,7 +2171,7 @@ cris_rtx_costs (x, code, outer_code, total)
case UMOD: case UMOD:
case DIV: case DIV:
if (GET_CODE (XEXP (x, 1)) != CONST_INT if (GET_CODE (XEXP (x, 1)) != CONST_INT
|| exact_log2 (INTVAL (XEXP (X, 1)) < 0)) || exact_log2 (INTVAL (XEXP (x, 1)) < 0))
{ {
/* Estimate this as 4 + 8 * #of bits. */ /* Estimate this as 4 + 8 * #of bits. */
*total = COSTS_N_INSNS (260); *total = COSTS_N_INSNS (260);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment