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: Patch for incorrect execute/divconst-2.c



  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


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