This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/10733] Modulus bug
- From: "kazu at cs dot umass dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jan 2004 23:22:42 -0000
- Subject: [Bug target/10733] Modulus bug
- References: <20030510153600.10733.jbright@winfordeng.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From kazu at cs dot umass dot edu 2004-01-03 23:22 -------
Trivial reduction. Produces the same assembly code.
I have yet to see if this contains a problem.
There may be problems with divmod library routines.
int
main (void)
{
unsigned char t1;
t1 = 2;
t1 = (t1 + 40) % 30;
__asm__ __volatile__ ("out %1,%0": :
"r" ((unsigned char) 0xff),
"M" ((unsigned char) 0x17));
__asm__ __volatile__ ("out %1,%0": :
"r" ((unsigned char) t1),
"M" ((unsigned char) 0x18));
return (0);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10733