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]

Re: i386 notice_update_cc integer conditional move patch


> 
> ChangeLog:
> 
> Fri Jun 12 23:15:31 EDT 1998  John Wehle  (john@feith.com)
> 
> 	* i386.c (notice_update_cc): Integer conditional moves don't
> 	affect cc0.
> 

Why only integer conditional moves? Not all fp conditional moves
clobber cc0. Anyway, I have modified my patch to do just that. It
seems to work fine. I will wait until yours goes into CVS first
since mine turns yours into

	(GET_CODE (SET_SRC (exp)) == IF_THEN_ELSE
	 && !(cc_status.flags & CC_CLOBBERED))

I added the CC_CLOBBERED bit to cc_status.flags and keep track of it.
Although it is not that hard to do, I may miss something. You should
double check it.

Thanks.


H.J.


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