This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] h8300.c: Correct the length of loading CONST0_RTX (SFmode).
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 05 Jul 2003 14:59:37 -0400 (EDT)
- Subject: [patch] h8300.c: Correct the length of loading CONST0_RTX (SFmode).
Hi,
Attached is a patch to correct the length of loading CONST0_RTX
(SFmode), down to 4 bytes from 8 bytes.
Tested on h8300 port. Committed.
Kazu Hirata
2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.c (compute_mov_length): Correct the
length of loading CONST0_RTX (SFmode).
Index: h8300.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.c,v
retrieving revision 1.247
diff -u -r1.247 h8300.c
--- h8300.c 2 Jul 2003 20:48:04 -0000 1.247
+++ h8300.c 3 Jul 2003 18:54:22 -0000
@@ -1893,6 +1893,9 @@
if (REG_P (src))
return 4;
+ if (CONST_DOUBLE_OK_FOR_LETTER_P (src, 'G'))
+ return 4;
+
return 8;
}
@@ -2012,6 +2015,7 @@
if (CONST_DOUBLE_OK_FOR_LETTER_P (src, 'G'))
return 2;
+
return 6;
}