Re: [PATCH 06/10] mips: Improve support for vec_init.

2011-12-22 Thread Richard Sandiford
Richard Henderson writes: > On 12/22/2011 12:05 PM, Richard Sandiford wrote: >> Probably one of those where you had to stop following the rathole, >> but could this be generalised to handle pairs in which perm[1] >> == perm[0] + 8? Something like: >> >>> + if (!(TARGET_HARD_FLOAT && TARGET_LOON

Re: [PATCH 06/10] mips: Improve support for vec_init.

2011-12-22 Thread Richard Henderson
On 12/22/2011 12:05 PM, Richard Sandiford wrote: > Probably one of those where you had to stop following the rathole, > but could this be generalised to handle pairs in which perm[1] > == perm[0] + 8? Something like: > >> + if (!(TARGET_HARD_FLOAT && TARGET_LOONGSON_VECTORS)) >> +return fals

Re: [PATCH 06/10] mips: Improve support for vec_init.

2011-12-22 Thread Richard Sandiford
Richard Henderson writes: > +/* Recognize broadcast patterns for the Loongson. */ > + > +static bool > +mips_expand_vpc_loongson_bcast (struct expand_vec_perm_d *d) > +{ > + unsigned i, elt; > + rtx t0, t1; > + > + if (!(TARGET_HARD_FLOAT && TARGET_LOONGSON_VECTORS)) > +return false; > +