This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]