Re: How to write this insn define?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Ruan Beihong" <ruanbeihong@xxxxxxxxx> writes:

> There is a instruction:
> mult rega,regb,regc
> Lower 32-bit of sign-extended regb is multiplied by lower 32-bit of
> sign-extended regc, and the lower 32-bit of product then sign-extends
> to 64-bit and stores in rega.
> How to write a (define_insn ) to describe this instruction?

Something like this seems about right:

(set (match_operand:DI 0 "register_operand" "constraints")
     (sign_extend:DI (mult:SI (match_operand:SI 1 "register_operand" "constraints")
                              (match_operand:SI 2 "register_operand" "constraints"))))


Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux