This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for incorrect execute/divconst-2.c
- To: Hans-Peter Nilsson <hp at bitrange dot com>
- Subject: Re: Patch for incorrect execute/divconst-2.c
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 07 Mar 2000 23:53:14 -0700
- cc: gcc-patches at gcc dot gnu dot org, mmixmasters at mmixmasters dot org
- Reply-To: law at cygnus dot com
In message <Pine.BSF.4.10.10003062120400.13918-100000@dair.pair.com>you write
:
> Ok to commit?
>
> Tue Mar 7 02:44:08 2000 Hans-Peter Nilsson <hp@bitrange.com>
>
> * execute/divconst-2.c (main): Allow for 0x7fffffffL /
> -0x80000000L yielding a -1 quotient.
Seems to me the best thing would be change the test so that it checks that
(a/b)*b + a%b == a Instead of looking for specific constant values.
jeff