From 75a3503bf0a8c32611ea144fa66b909defd92507 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 22 Jan 2003 17:56:39 +0000 Subject: [PATCH] h8300.c (h8300_shift_needs_scratch_p): Don't request a scratch reg on H8S when the shift count is 8. * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't request a scratch reg on H8S when the shift count is 8. From-SVN: r61602 --- gcc/ChangeLog | 5 +++++ gcc/config/h8300/h8300.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 65ff19c499d..f61c6bc300d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-01-22 Kazu Hirata + + * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't + request a scratch reg on H8S when the shift count is 8. + 2003-01-22 Ulrich Weigand * config/s390/s390-protos.h (preferred_la_operand_p): diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index ba1db097423..624f9d8fafb 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -3198,7 +3198,7 @@ h8300_shift_needs_scratch_p (count, mode) /* On H8/300H and H8S, count == 8 uses the scratch register. */ return (a == SHIFT_LOOP || lr == SHIFT_LOOP || ar == SHIFT_LOOP - || (!TARGET_H8300 && mode == SImode && count == 8)); + || (TARGET_H8300H && mode == SImode && count == 8)); } /* Emit the assembler code for doing shifts. */