[patch] Make h8300 port 64-bit safe

Kazu Hirata kazu@hxi.com
Wed Aug 29 11:08:00 GMT 2001


Hi,

Attached is a patch to make h8300 port 64-bit safe.  OK to apply?

Thanks,

Kazu Hirata

2001-08-29  Kazu Hirata  <kazu@hxi.com>

	* h8300.md (movsi_h8300hs): Make it 64-bit safe.

Index: h8300.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.md,v
retrieving revision 1.34
diff -u -r1.34 h8300.md
--- h8300.md	2001/08/29 16:17:25	1.34
+++ h8300.md	2001/08/29 17:56:50
@@ -448,7 +448,7 @@
 
 	  /* Look for constants that can be obtained by subs, inc, and
              dec to 0.  */
-	  switch (val)
+	  switch (val & 0xffffffff)
 	    {
 	    case 0xffffffff:
 	      return \"sub.l\\t%S0,%S0\;subs\\t#1,%S0\";



More information about the Gcc-patches mailing list