This is the mail archive of the gcc-bugs@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]

Re: target/2246: Code generated for IA64 doesn't reset NaT bit on scratch reg


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~


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