public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* division in myproc.md vs libgcc
@ 2002-07-17  4:09 Pierre Mallard
  0 siblings, 0 replies; only message in thread
From: Pierre Mallard @ 2002-07-17  4:09 UTC (permalink / raw)
  To: gcc-patches

Hi 
I got a problem catching div rtl, it 's always trying
to call libgcc function __udivsi3

here is a program test that do not work :
int main()
{ 
unsigned char val1 = 3; 
unsigned char val2 = 15; 
unsigned char val3 = val2/val1; 
return 1;
}

Here is the rtl I try to catch in my proc.md

define_insn "divqi3"  [(set (match_operand:QI 0
"register_operand" "=r")        (udiv:QI
(match_operand:QI 1 "register_operand" "r")           
    (match_operand:QI 2 "register_operand"
"r")))](define_insn "divhi3"  [(set (match_operand:HI
0 "register_operand" "=r")        (udiv:HI
(match_operand:HI 1 "register_operand" "r")           
    (match_operand:HI 2 "register_operand" "r")))] 
(define_insn "divsi3"  [(set (match_operand:SI 0
"register_operand" "=r")        (udiv:SI
(match_operand:SI 1 "register_operand" "r")           
    (match_operand:SI 2 "register_operand" "r")))]  

Thanks for your help 
ps : Is there a way to get the rtl code generated
without having it bugged with the libgcc call ... i.e.
before it's matched with libgcc function.?
Pierre

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-17 10:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-17  4:09 division in myproc.md vs libgcc Pierre Mallard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).