This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: target/2246: Code generated for IA64 doesn't reset NaT bit on scratch reg
- To: amacleod at cygnus dot com
- Subject: Re: target/2246: Code generated for IA64 doesn't reset NaT bit on scratch reg
- From: Richard Henderson <rth at redhat dot com>
- Date: Thu, 8 Nov 2001 17:33:52 -0800
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org
- References: <200111071411.fA7EBEF14307@simba.cygnus.com>
On Wed, Nov 07, 2001 at 06:11:14AM -0800, amacleod@cygnus.com wrote:
> ! /* Clear the destination before we move anything into it. */
> ! emit_insn (gen_rtx_SET (VOIDmode, dst,
> ! CONST0_RTX (GET_MODE (dst))));
emit_move_insn (dst, CONST0_RTX (GET_MODE (dst)));
I think you ought to add a little commentary on why we aren't
just clobbering the register. Also, there are a few other places
that do similar things.
I think this is probably the best way to solve this problem.
I'd be interested to see if one can measure a performance
difference one way or another on, say, x86.
r~