[Bug target/18065] not using qi version of divmod

schlie at comcast dot net gcc-bugzilla@gcc.gnu.org
Tue Oct 19 22:31:00 GMT 2004


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

-paul-

> From: ericw at evcohs dot com <gcc-bugzilla@gcc.gnu.org>
> Reply-To: <gcc-bugzilla@gcc.gnu.org>
> Date: 19 Oct 2004 22:08:15 -0000
> To: <schlie@comcast.net>
> Subject: [Bug target/18065] not using qi version of divmod
> 
> 
> ------- Additional Comments From ericw at evcohs dot com  2004-10-19 22:08
> -------
> Bug #10733 is related.
> 
> -- 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |ericw at evcohs dot com
> 
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18065
> 
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.




-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18065



More information about the Gcc-bugs mailing list