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]

Re: PATCH, rs6000 (alpha?) long const take 2


On Wed, Jan 02, 2002 at 11:26:12PM -0500, David Edelsohn wrote:
> 	Do we want to change rs6000_emit_set_long_const to use get_rtx_IOR
> instead of gen_rtx_PLUS? 
> 
> 	Also, if explicitly allocting r0 was a problem, r12 should have
> been used instead.  Adding extra shifts was wrong on a number of levels. 

I think changing rs6000_emit_set_long_const so that it always
works is the right thing.  If you want to choose another register,
that's fine.

That said, IOR clearly works better than PLUS because of the r0 issue.


r~


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