Patch for better support of LEA in HI/QI mode arithmetic.

Jeffrey A Law law@upchuck.cygnus.com
Wed Apr 14 22:45:00 GMT 1999


  > + ;; 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


More information about the Gcc-patches mailing list