Re: [PATCH 01/10] mips: Allow mode changes between integrals in FP registers.

2011-12-22 Thread Richard Henderson
On 12/22/2011 11:30 AM, Richard Sandiford wrote: > I'm lumbering you with a private hobby horse, but would you mind using > the attached instead? I just want to avoid the "Here's a long explanation > of why we must do X. Oh, but don't do X in this one case." style of comment. Fixed. r~

Re: [PATCH 01/10] mips: Allow mode changes between integrals in FP registers.

2011-12-22 Thread Richard Sandiford
Richard Henderson writes: > @@ -10808,6 +10808,13 @@ mips_cannot_change_mode_class (enum machine_mode > from ATTRIBUTE_UNUSED, > format. > > We therefore disallow all mode changes involving FPRs. */ > + > + /* Except for Loongson and its integral vectors. We need to be able > +

[PATCH 01/10] mips: Allow mode changes between integrals in FP registers.

2011-12-21 Thread Richard Henderson
We ask for subregs of vectors all of the time, punning them between different vector modes. The test below allows punning between DI, V8QI, V4HI, and V2SI modes. Without this we get oodles of dummy copies to and from the general register set for each mode change. --- gcc/config/mips/mips.c |