h8300.c (h8300_shift_needs_scratch_p): Don't request a scratch reg on H8S when the...
authorKazu Hirata <kazu@cs.umass.edu>
Wed, 22 Jan 2003 17:56:39 +0000 (17:56 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Wed, 22 Jan 2003 17:56:39 +0000 (17:56 +0000)
* 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
gcc/config/h8300/h8300.c

index 65ff19c499d86e1f0ce51bf3299ee4aaa9742e41..f61c6bc300dba8c76c250891bc80a3d8b3fa244a 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * 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  <uweigand@de.ibm.com>
 
        * config/s390/s390-protos.h (preferred_la_operand_p):
index ba1db09742378dc10d60c22feaa19e4a7ba65c11..624f9d8fafb9af3660fa373476f955117e3964e8 100644 (file)
@@ -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.  */