PR target/16909: [3.5 Regression] "unrecognizable insn" ICE

H. J. Lu hjl@lucon.org
Sat Aug 7 16:33:00 GMT 2004


during bootstrap
Reply-To: 

There is a typo in

http://gcc.gnu.org/ml/gcc-patches/2004-08/msg00305.html

I will check in this patch as an obvious fix.


H.J.
---
2004-08-06  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.c (ix86_expand_clrmem): Properly call
	gen_strset for 64bit target.

--- gcc/config/i386/i386.c.64	2004-08-06 11:07:16.000000000 -0700
+++ gcc/config/i386/i386.c	2004-08-07 09:23:31.006373343 -0700
@@ -11569,7 +11569,10 @@ ix86_expand_clrmem (rtx dst, rtx count_e
 		rtx mem = adjust_automodify_address_nv (dst,
 							GET_MODE (zeroreg),
 							destreg, offset);
-		emit_insn (gen_strset (destreg, mem, zeroreg));
+		emit_insn (gen_strset (destreg, mem,
+				       (TARGET_64BIT
+					? gen_rtx_SUBREG (SImode, zeroreg, 0)
+					: zeroreg)));
 		offset += size;
 	      }
 	  else



More information about the Gcc-patches mailing list