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

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

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

From-SVN: r85673
This commit is contained in:
H.J. Lu 2004-08-07 16:34:00 +00:00 committed by H.J. Lu
parent 34def210f8
commit 11c4576fa8
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (ix86_expand_clrmem): Properly call
gen_strset for 64bit target.
2004-08-07 Olivier Hainque <hainque@act-europe.fr>
* config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.

View File

@ -11569,7 +11569,10 @@ ix86_expand_clrmem (rtx dst, rtx count_exp, rtx align_exp)
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