This is the mail archive of the
mailing list for the GCC project.
Re: new mips type attributes: shift, slt, clz
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: Jim Wilson <wilson at specifixinc dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 17 Mar 2004 07:10:35 +0000
- Subject: Re: new mips type attributes: shift, slt, clz
- References: <email@example.com>
Jim Wilson <firstname.lastname@example.org> writes:
> The const type seems to be used inconsistently. Some places that load
> constants use the const type, some use the arith type. I didn't try to
> decipher this. I left these as arith which seems accurate, since they will
> expand to either an addiu, ori, or lui in the vast majority of cases.
For the record, schedulers are supposed to treat "const" and "arith"
in the same way. I only added "const" for the benefit of the length
(define_attr "length" ""
(eq_attr "type" "const")
(symbol_ref "mips_const_insns (operands) * 4")
This seemed preferable to using set_attr_alternative for those
many-alternative move patterns.