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]

creating new pattern recognition in myproc.md


Hi,
I've got a problem in rtl recognition system :
I'd like to use a "mulsu" operation for multiply an
unsigned and a signed operand.
The problem is that I don't know at all how I can have
my new rtl pattern being taken in account by the
recognition process :
It appears it works a lot with the name of the rtl
pattern and all the room are taken with mulqihi3 or
umulqihi3 : If I declare a new pattern as follow :
(define_expand "sumulqihi3"
[(set (match_operand:HI 0 "register_operand" "=r")
(mult:HI (sign_extend:HI match_operand:QI
"register_operand" "r")(zero_extend:HI
(match_operand:QI 2 "register_operand" "r"))))]
  ""
  "")
followed by a good define_insn...
And I make a signed char*unsigned char in C, it
appears he will take mulqihi3...
Is there's a mean to make it differently?
Thanks for any help
Pierre

___________________________________________________________
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]