This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: machine description - 'high' meaning
- To: "Dragos Badea" <badrian at ss dot pub dot ro>
- Subject: Re: machine description - 'high' meaning
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Wed, 12 Apr 2000 13:52:26 -0400
- cc: gcc at gcc dot gnu dot org
HIGH is very likely not the correct RTL. Look in the RTL
documentation for an explanation. You may be intending mulhi3 and
mulhi3_highpart patterns. Maybe you intend something like:
(define_insn "smulhi3_highpart"
[(set (match_operand:HI 0 "gpc_reg_operand" "=r")
(truncate:HI
(lshiftrt:SI (mult:SI (sign_extend:SI
(match_operand:HI 1 "gpc_reg_operand" "%r"))
(sign_extend:SI
(match_operand:HI 2 "gpc_reg_operand" "r")))
(const_int 32))))]
The GCC documentation and other similar machine descriptions are
your friend.
David