This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: i386 notice_update_cc belt and suspenders patch
- To: john at feith dot com (John Wehle)
- Subject: Re: i386 notice_update_cc belt and suspenders patch
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 10 Jun 1998 01:36:55 -0600
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199806062044.QAA06346@jwlab.FEITH.COM>you write:
> Tracing the operation of NOTICE_UPDATE_CC when compiling
> the following snippet of code on i386 seems to show up a
> weakness in notice_update_cc:
[ ... ]
> The only flag defined after executing bsf is Z which contains the
> result from bsf. I believe that cc_status.value2 should be cleared
> in order to be technically correct.
>
> ChangeLog:
>
> Sat Jun 6 16:36:11 EDT 1998 John Wehle (john@feith.com)
>
> * i386.c (notice_update_cc): Clear cc_status.value2 in the
> case of UNSPEC 5 (bsf).
Seems reasonable to me. I've installed your patch.
Thanks!
jeff