aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@hxi.com>2002-01-29 04:54:39 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2002-01-29 04:54:39 +0000
commit871f73e332d2ab60b0a9de3ab6f386996cc97cd7 (patch)
treea2fe776edb28ce3baee80b0e7359078ce6ce761e /gcc
parent5fc4b75139091cc47d62fb39d90f88be5e857f2c (diff)
downloadgcc-871f73e332d2ab60b0a9de3ab6f386996cc97cd7.zip
gcc-871f73e332d2ab60b0a9de3ab6f386996cc97cd7.tar.gz
gcc-871f73e332d2ab60b0a9de3ab6f386996cc97cd7.tar.bz2
h8300-protos.h: Update the prototype of output_simode_bld.
* config/h8300/h8300-protos.h: Update the prototype of output_simode_bld. * config/h8300/h8300.c (output_simode_bld): Remove an argumen 'log2'. * config/h8300/h8300.md: Adjust to the new prototype. From-SVN: r49308
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/h8300/h8300-protos.h2
-rw-r--r--gcc/config/h8300/h8300.c7
-rw-r--r--gcc/config/h8300/h8300.md8
4 files changed, 14 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 141fa7d..287b29f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,13 @@
2002-01-28 Kazu Hirata <kazu@hxi.com>
+ * config/h8300/h8300-protos.h: Update the prototype of
+ output_simode_bld.
+ * config/h8300/h8300.c (output_simode_bld): Remove an argumen
+ 'log2'.
+ * config/h8300/h8300.md: Adjust to the new prototype.
+
+2002-01-28 Kazu Hirata <kazu@hxi.com>
+
* conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
redundant code.
diff --git a/gcc/config/h8300/h8300-protos.h b/gcc/config/h8300/h8300-protos.h
index d32b2d5..b36a998 100644
--- a/gcc/config/h8300/h8300-protos.h
+++ b/gcc/config/h8300/h8300-protos.h
@@ -28,7 +28,7 @@ Boston, MA 02111-1307, USA. */
#ifdef RTX_CODE
extern const char *output_a_shift PARAMS ((rtx, rtx *));
extern const char *emit_a_rotate PARAMS ((int, rtx *));
-extern const char *output_simode_bld PARAMS ((int, int, rtx[]));
+extern const char *output_simode_bld PARAMS ((int, rtx[]));
extern void print_operand_address PARAMS ((FILE *, rtx));
extern const char *byte_reg PARAMS ((rtx, int));
extern int const_costs PARAMS ((rtx, enum rtx_code));
diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c
index 7b062a0..6bbcae7 100644
--- a/gcc/config/h8300/h8300.c
+++ b/gcc/config/h8300/h8300.c
@@ -3061,9 +3061,8 @@ h8300_encode_label (decl)
}
const char *
-output_simode_bld (bild, log2, operands)
+output_simode_bld (bild, operands)
int bild;
- int log2;
rtx operands[];
{
/* Clear the destination register. */
@@ -3072,10 +3071,6 @@ output_simode_bld (bild, log2, operands)
else
output_asm_insn ("sub.w\t%e0,%e0\n\tsub.w\t%f0,%f0", operands);
- /* Get the bit number we want to load. */
- if (log2)
- operands[2] = GEN_INT (exact_log2 (INTVAL (operands[2])));
-
/* Now output the bit load or bit inverse load, and store it in
the destination. */
if (bild)
diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md
index 03b430b..4e86213 100644
--- a/gcc/config/h8300/h8300.md
+++ b/gcc/config/h8300/h8300.md
@@ -2018,7 +2018,7 @@
(match_operand 2 "const_int_operand" "n")))]
"TARGET_H8300
&& INTVAL (operands[2]) < 16"
- "* return output_simode_bld (0, 0, operands);"
+ "* return output_simode_bld (0, operands);"
[(set_attr "cc" "clobber")
(set_attr "length" "6")])
@@ -2029,7 +2029,7 @@
(match_operand 2 "const_int_operand" "n")))]
"(TARGET_H8300H || TARGET_H8300S)
&& INTVAL (operands[2]) < 16"
- "* return output_simode_bld (0, 0, operands);"
+ "* return output_simode_bld (0, operands);"
[(set_attr "cc" "clobber")
(set_attr "length" "6")])
@@ -2046,7 +2046,7 @@
"TARGET_H8300
&& INTVAL (operands[2]) < 16
&& (1 << INTVAL (operands[2])) == INTVAL (operands[3])"
- "* return output_simode_bld (1, 0, operands);"
+ "* return output_simode_bld (1, operands);"
[(set_attr "cc" "clobber")
(set_attr "length" "6")])
@@ -2059,7 +2059,7 @@
"(TARGET_H8300H || TARGET_H8300S)
&& INTVAL (operands[2]) < 16
&& (1 << INTVAL (operands[2])) == INTVAL (operands[3])"
- "* return output_simode_bld (1, 0, operands);"
+ "* return output_simode_bld (1, operands);"
[(set_attr "cc" "clobber")
(set_attr "length" "6")])