From: H.J. Lu Date: Sat, 7 Aug 2004 16:34:00 +0000 (+0000) Subject: i386.c (ix86_expand_clrmem): Properly call gen_strset for 64bit target. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11c4576fa854807f99d01793a14247f5d820912f;p=gcc.git i386.c (ix86_expand_clrmem): Properly call gen_strset for 64bit target. 2004-08-07 H.J. Lu * config/i386/i386.c (ix86_expand_clrmem): Properly call gen_strset for 64bit target. From-SVN: r85673 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7cd55d3df51..11aaa96d4db 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-08-07 H.J. Lu + + * config/i386/i386.c (ix86_expand_clrmem): Properly call + gen_strset for 64bit target. + 2004-08-07 Olivier Hainque * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 951573415da..e1e2027b2e3 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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