This is the mail archive of the gcc-patches@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: Patch for better support of LEA in HI/QI mode arithmetic.



  > + ;; The combiner patterns for lea instruction with HI mode operands.
  > + ;; We can not use addressing operand here, so we have to code it by hand.
  > + ;; It can be hard to cover all cases, so here are patterns just for the
  > most common ones.
Question -- why can't you write them using address_operand?

(define_insn ""
  [(set (match_operand:HI 0 "register_operand" "=r")
        (match_operand:HI 1 "address_operand" "p"))]
  ""
[ ... ]

IMHO the versions which use ior are not worth the effort.  


jeff


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