This is the mail archive of the gcc@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]

Re: divmod , division+modulo problem in rtl


-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 <velco@fadata.bg> a écrit : >
>>>>> "Pierre" == Pierre Mallard
> <pierremallard@yahoo.fr> 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


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