[Bug target/10733] Modulus bug
kazu at cs dot umass dot edu
gcc-bugzilla@gcc.gnu.org
Sat Jan 3 23:22:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list