From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32566 invoked by alias); 19 Oct 2004 23:13:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 32526 invoked by alias); 19 Oct 2004 23:13:20 -0000 Date: Tue, 19 Oct 2004 23:13:00 -0000 Message-ID: <20041019231320.32525.qmail@sourceware.org> From: "ericw at evcohs dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041019202143.18065.schlie@comcast.net> References: <20041019202143.18065.schlie@comcast.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/18065] not using qi version of divmod X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg02568.txt.bz2 List-Id: ------- 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