Patchwork [rs6000] Fix REG_CLASS_CONTENTS

login
register
mail settings
Submitter Pat Haugen
Date May 31, 2011, 4:08 p.m.
Message ID <4DE51266.8040607@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/98054/
State New
Headers show

Comments

Pat Haugen - May 31, 2011, 4:08 p.m.
The following patch fixes an issue I noticed where vr0..vr2 were inadvertently 
included in NON_FLOAT_REGS.

Bootstrap/regtest on powerpc64-linux with no new regressions. Ok for trunk?

-Pat


2011-05-31  Pat Haugen <pthaugen@us.ibm.com>

	* config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
	NON_FLOAT_REGS.
David Edelsohn - May 31, 2011, 7:18 p.m.
On Tue, May 31, 2011 at 12:08 PM, Pat Haugen
<pthaugen@linux.vnet.ibm.com> wrote:
> The following patch fixes an issue I noticed where vr0..vr2 were
> inadvertently included in NON_FLOAT_REGS.
>
> Bootstrap/regtest on powerpc64-linux with no new regressions. Ok for trunk?
>
> -Pat
>
>
> 2011-05-31  Pat Haugen <pthaugen@us.ibm.com>
>
>        * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
>        NON_FLOAT_REGS.

Okay.

Thanks, David
Pat Haugen - June 3, 2011, 12:41 p.m.
On 05/31/2011 02:18 PM, David Edelsohn wrote:
> On Tue, May 31, 2011 at 12:08 PM, Pat Haugen
> <pthaugen@linux.vnet.ibm.com>  wrote:
>> >  The following patch fixes an issue I noticed where vr0..vr2 were
>> >  inadvertently included in NON_FLOAT_REGS.
>> >
>> >  Bootstrap/regtest on powerpc64-linux with no new regressions. Ok for trunk?
>> >
>> >  -Pat
>> >
>> >
>> >  2011-05-31  Pat Haugen<pthaugen@us.ibm.com>
>> >
>> >          * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
>> >          NON_FLOAT_REGS.
> Okay.
>

I should have asked before, ok for 4.6 also after bootstrap/regtest?

-Pat
David Edelsohn - June 4, 2011, 10:39 p.m.
On Fri, Jun 3, 2011 at 8:41 AM, Pat Haugen <pthaugen@linux.vnet.ibm.com> wrote:

> I should have asked before, ok for 4.6 also after bootstrap/regtest?

Yes.

Thanks, David

Patch

Index: gcc/config/rs6000/rs6000.h
===================================================================
--- gcc/config/rs6000/rs6000.h  (revision 174304)
+++ gcc/config/rs6000/rs6000.h  (working copy)
@@ -1224,7 +1224,7 @@  enum reg_class
    { 0xffffffff, 0x00000000, 0x0000000f, 0x00022000 }, /* SPEC_OR_GEN_REGS */ \
    { 0x00000000, 0x00000000, 0x00000010, 0x00000000 }, /* CR0_REGS */        \
    { 0x00000000, 0x00000000, 0x00000ff0, 0x00000000 }, /* CR_REGS */         \
-  { 0xffffffff, 0x00000000, 0x0000efff, 0x00020000 }, /* NON_FLOAT_REGS */   \
+  { 0xffffffff, 0x00000000, 0x00000fff, 0x00020000 }, /* NON_FLOAT_REGS */   \
    { 0x00000000, 0x00000000, 0x00001000, 0x00000000 }, /* CA_REGS */         \
    { 0xffffffff, 0xffffffff, 0xffffffff, 0x0003ffff }  /* ALL_REGS */        \
  }