This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/36548] remainder gives the wrong result for wrapping case with unsigned types
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jun 2008 14:20:24 -0000
- Subject: [Bug middle-end/36548] remainder gives the wrong result for wrapping case with unsigned types
- References: <bug-36548-12544@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2008-06-17 14:20 -------
That is only true for where overflow is undefined IIRC. So if wrapping happens
this is not true ...
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Summary|likely integer codegen bug |remainder gives the wrong
| |result for wrapping case
| |with unsigned types
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36548