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: Simplify handling of TARGET_4300_MUL_FIX


cgd@broadcom.com writes:
> At Mon, 18 Aug 2003 04:46:42 +0000 (UTC), "Eric Christopher" wrote:
> > > based on our discussion about trap stuff, do you need the length
> > > attributes for mul*_4300?  8-)
> > 
> > Huh?
> 
> Well, he pointed out to me in another thread that length is
> automatically calculated based on the number of newlines and/or
> semicolons in the instruction list.

Actually, when I said "see the default definition of the length attribute",
I was talking this in mips.md:

    (define_attr "length" ""
       (cond [...
              (and (eq_attr "type" "idiv")
                   (ne (symbol_ref "TARGET_CHECK_ZERO_DIV") (const_int 0)))
              (cond [(ne (symbol_ref "TARGET_MIPS16") (const_int 0))
                     (const_int 12)]
                    (const_int 16))
              ...
	     ] (const_int 4)))

Richard


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