This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug target/10733] Modulus bug


------- 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


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