[Bug target/18065] not using qi version of divmod
ericw at evcohs dot com
gcc-bugzilla@gcc.gnu.org
Tue Oct 19 23:13:00 GMT 2004
------- Additional Comments From ericw at evcohs dot com 2004-10-19 23:13 -------
Subject: Re: not using qi version of divmod
schlie at comcast dot net wrote:
>------- Additional Comments From schlie at comcast dot net 2004-10-19 22:31 -------
>Subject: Re: not using qi version of divmod
>
>Hi Eric,
>
>Out of curiosity, what exactly is the 10733 bug, is wrong result computed?
>
>If so, that implies that divmodhi is broken; otherwise it's not a bug, as
>the intermediate (t1 + 40) expression yields an int result, as within the
>context of the expression, although t1 is an unsigned char, there's no
>guarantee that (t1 + 40) will not overflow an unsigned char size, therefore
>properly assumed to be an int; unlike t1 = t1 % 3 or whatever, where all
>operands are clearly type compatible with unsigned char, and a valid
>optimization.
>
>
Bug #10733 is a wrong-code bug involving the modulus operator on the AVR
target. See the bug report itself for more information.
Eric
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18065
More information about the Gcc-bugs
mailing list