From 82be00ee67dc07c7f3cf817532501e10db1fd249 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 18 Feb 2002 22:07:42 +0000 Subject: [PATCH] h8300-protos.h: Remove the prototype for p_operand. * config/h8300/h8300-protos.h: Remove the prototype for p_operand. * config/h8300/h8300.c (p_operand): Remove. * config/h8300/h8300.md: Replace p_operand with const_int_operand. From-SVN: r49848 --- gcc/ChangeLog | 8 ++++++++ gcc/config/h8300/h8300-protos.h | 1 - gcc/config/h8300/h8300.c | 11 ----------- gcc/config/h8300/h8300.md | 2 +- 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fe35ed4e23e..9707a8c1a3a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2002-02-18 Kazu Hirata + + * config/h8300/h8300-protos.h: Remove the prototype for + p_operand. + * config/h8300/h8300.c (p_operand): Remove. + * config/h8300/h8300.md: Replace p_operand with + const_int_operand. + 2002-02-18 Philip Blundell * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in diff --git a/gcc/config/h8300/h8300-protos.h b/gcc/config/h8300/h8300-protos.h index 876b3cba2a4..5d84a979ee0 100644 --- a/gcc/config/h8300/h8300-protos.h +++ b/gcc/config/h8300/h8300-protos.h @@ -45,7 +45,6 @@ extern void split_adds_subs PARAMS ((enum machine_mode, rtx[])); extern int general_operand_src PARAMS ((rtx, enum machine_mode)); extern int general_operand_dst PARAMS ((rtx, enum machine_mode)); extern int o_operand PARAMS ((rtx, enum machine_mode)); -extern int p_operand PARAMS ((rtx, enum machine_mode)); extern int call_insn_operand PARAMS ((rtx, enum machine_mode)); extern int two_insn_adds_subs_operand PARAMS ((rtx, enum machine_mode)); extern int small_call_insn_operand PARAMS ((rtx, enum machine_mode)); diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index e79d86507a8..eb573f38266 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -572,17 +572,6 @@ o_operand (operand, mode) && CONST_OK_FOR_O (INTVAL (operand))); } -/* Return true if OP is a const valid for a bit set or bit xor instruction. */ - -int -p_operand (operand, mode) - rtx operand; - enum machine_mode mode ATTRIBUTE_UNUSED; -{ - return (GET_CODE (operand) == CONST_INT - && CONST_OK_FOR_P (INTVAL (operand))); -} - /* Return true if OP is a valid call operand. */ int diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index 4d85dd12066..724d8d0bcc5 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -2006,7 +2006,7 @@ (define_insn "" [(set (match_operand:HI 0 "register_operand" "=&r") (zero_extract:HI (xor:HI (match_operand:HI 1 "register_operand" "r") - (match_operand:HI 3 "p_operand" "P")) + (match_operand:HI 3 "const_int_operand" "n")) (const_int 1) (match_operand:HI 2 "const_int_operand" "n")))] "TARGET_H8300