pdp11.c (comparison_operator_index): Remove.

* config/pdp11/pdp11.c (comparison_operator_index): Remove.
	(comp_operator): Likewise.
	* config/pdp11/pdp11-protos.h: Remove corresponding
	prototypes.

From-SVN: r79116
This commit is contained in:
Kazu Hirata 2004-03-08 15:41:41 +00:00 committed by Kazu Hirata
parent 1d4eb925b9
commit 23bd99da2c
3 changed files with 7 additions and 51 deletions

View File

@ -1,3 +1,10 @@
2004-03-08 Kazu Hirata <kazu@cs.umass.edu>
* config/pdp11/pdp11.c (comparison_operator_index): Remove.
(comp_operator): Likewise.
* config/pdp11/pdp11-protos.h: Remove corresponding
prototypes.
2004-03-08 Eric Botcazou <ebotcazou@act-europe.fr>
* expr.c (highest_pow2_factor_for_type): Rename into

View File

@ -26,7 +26,6 @@ extern int const_immediate_operand (rtx, enum machine_mode);
extern int expand_shift_operand (rtx, enum machine_mode);
extern int immediate15_operand (rtx, enum machine_mode);
extern int simple_memory_operand (rtx, enum machine_mode);
extern int comp_operator (rtx, enum machine_mode);
extern int legitimate_address_p (enum machine_mode, rtx);
extern int legitimate_const_double_p (rtx);
@ -37,7 +36,6 @@ extern const char *output_move_quad (rtx *);
extern const char *output_block_move (rtx *);
extern void print_operand_address (FILE *, rtx);
extern int register_move_cost (enum reg_class, enum reg_class);
extern int comparison_operator_index (rtx);
#endif /* RTX_CODE */
extern void output_ascii (FILE *, const char *, int);

View File

@ -1600,55 +1600,6 @@ output_block_move(rtx *operands)
return "";
}
/* for future use */
int
comparison_operator_index(rtx op)
{
switch (GET_CODE(op))
{
case NE:
return 0;
case EQ:
return 1;
case GE:
return 2;
case GT:
return 3;
case LE:
return 4;
case LT:
return 5;
case GEU:
return 6;
case GTU:
return 7;
case LEU:
return 8;
case LTU:
return 9;
default:
return -1;
}
}
/* tests whether the rtx is a comparison operator */
int
comp_operator (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
{
return comparison_operator_index(op) >= 0;
}
int
legitimate_address_p (enum machine_mode mode, rtx address)
{