This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: i386 notice_update_cc integer conditional move patch
- To: john at feith dot com (John Wehle)
- Subject: Re: i386 notice_update_cc integer conditional move patch
- From: hjl at lucon dot org (H.J. Lu)
- Date: Sun, 14 Jun 1998 10:56:58 -0700 (PDT)
- Cc: egcs-patches at cygnus dot com
>
> 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.