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]

Re: machine description - 'high' meaning


	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

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