From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6787 invoked by alias); 16 Oct 2002 12:01:55 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 6657 invoked from network); 16 Oct 2002 12:01:53 -0000 Received: from unknown (HELO web20309.mail.yahoo.com) (216.136.226.90) by sources.redhat.com with SMTP; 16 Oct 2002 12:01:53 -0000 Message-ID: <20021016120149.71794.qmail@web20309.mail.yahoo.com> Received: from [213.44.243.18] by web20309.mail.yahoo.com via HTTP; Wed, 16 Oct 2002 14:01:49 CEST Date: Wed, 16 Oct 2002 07:32:00 -0000 From: =?iso-8859-1?q?Pierre=20Mallard?= Subject: Re: divmod , division+modulo problem in rtl To: Momchil Velikov Cc: gcc@gcc.gnu.org In-Reply-To: <8765w5rse9.fsf@fadata.bg> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2002-10/txt/msg00943.txt.bz2 -gcc-3.0.4, c language- Hi and thanks a lot. I did not get any better things after having change those few lines. Anyway ok I just leave it now for catching div and mod the same time.. But the problem I got here right now is the matching of a divmodqi4 describe in a define_expand: My word are define as being 16 bits long same as for my char whereas my int are 32 bits long. when I do char a,b,c; c=a/b I can't make gcc understand I need divmodqi4 and not divmodhi4.. Gcc is always passing throw divmodhi4 and never in divmodqi4... I'm really disappointed think I may have missed something cause lots of different proc implements divmodqi4 especially avr one which as approximately the same definition as me for the words , char and int except it's twice less... In my configuration divmodqi4 dosn't look as it can be match once... Pierre --- Momchil Velikov a écrit : > >>>>> "Pierre" == Pierre Mallard > writes: > > Pierre> Hi, > Pierre> I need someone's help to output a single > operation for > Pierre> an operation such as a (div a b)+(mod a b) > in c > Pierre> language only... > > See if this patch will help > http://gcc.gnu.org/ml/gcc-patches/2002-07/msg01207.html > > Pierre> 2)And if u got any idea how a Signed Qi > division can > Pierre> be handle by a Qi signed division ... let me > just show > It can't, in C at least. > > ~velco > ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com