Simplify handling of TARGET_4300_MUL_FIX
Richard Sandiford
rsandifo@redhat.com
Mon Aug 18 07:52:00 GMT 2003
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
More information about the Gcc-patches
mailing list