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]
Other format: [Raw text]

Re: PATCH: PR target/44588: Very inefficient 8bit mod/div


On 06/23/2010 08:24 PM, H.J. Lu wrote:
  [(set (match_operand:HI 0 "register_operand" "=a")
         (div:HI
           (match_operand:HI 1 "register_operand" "0")
           (match_operand:QI 2 "nonimmediate_operand" "qm")))
    (clobber (reg:CC FLAGS_REG))]

Maybe this:


[(set (match_operand:QI 0 "register_operand" "=a")
   (subreg:QI
    (div:HI
     (match_operand:HI 1 "register_operand" "0")
     (match_operand:QI 2 "nonimmediate_operand" "qm")) 0))
 (clobber (reg:CC FLAGS_REG))]

Paolo


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