Re: [OpenRISC] [PATCH v2 4/5] or1k: Initial support for FPU

2019-07-03 Thread Segher Boessenkool
On Thu, Jul 04, 2019 at 07:19:56AM +0900, Stafford Horne wrote: > On Wed, Jul 03, 2019 at 09:09:51PM +0200, Richard Henderson wrote: > > On 7/3/19 5:43 PM, Segher Boessenkool wrote: > > >> @@ -212,6 +214,7 @@ enum reg_class > > >> #define REG_CLASS_CONTENTS \ > > >> { { 0x, 0x000

Re: [OpenRISC] [PATCH v2 4/5] or1k: Initial support for FPU

2019-07-03 Thread Stafford Horne
On Wed, Jul 03, 2019 at 09:09:51PM +0200, Richard Henderson wrote: > On 7/3/19 5:43 PM, Segher Boessenkool wrote: > >> @@ -212,6 +214,7 @@ enum reg_class > >> #define REG_CLASS_CONTENTS \ > >> { { 0x, 0x }, \ > >>{ SIBCALL_REGS_MASK, 0 }, \ > >> + { 0x7efe,

Re: [PATCH v2 4/5] or1k: Initial support for FPU

2019-07-03 Thread Stafford Horne
On Wed, Jul 03, 2019 at 10:43:01AM -0500, Segher Boessenkool wrote: > Hi Stafford, > > On Wed, Jul 03, 2019 at 12:33:50PM +0900, Stafford Horne wrote: > > +case 'd': > > + if (REG_P (x)) > > + if (GET_MODE (x) == DFmode || GET_MODE (x) == DImode) > > + fprintf (file, "%s,%s", re

Re: [OpenRISC] [PATCH v2 4/5] or1k: Initial support for FPU

2019-07-03 Thread Richard Henderson
On 7/3/19 5:43 PM, Segher Boessenkool wrote: >> @@ -212,6 +214,7 @@ enum reg_class >> #define REG_CLASS_CONTENTS \ >> { { 0x, 0x }, \ >>{ SIBCALL_REGS_MASK, 0 }, \ >> + { 0x7efe, 0x }, \ > > Above you said r0, r30, r31 are excluded, but t

Re: [PATCH v2 4/5] or1k: Initial support for FPU

2019-07-03 Thread Segher Boessenkool
Hi Stafford, On Wed, Jul 03, 2019 at 12:33:50PM +0900, Stafford Horne wrote: > +case 'd': > + if (REG_P (x)) > + if (GET_MODE (x) == DFmode || GET_MODE (x) == DImode) > + fprintf (file, "%s,%s", reg_names[REGNO (operand)], > + reg_names[REGNO

[PATCH v2 4/5] or1k: Initial support for FPU

2019-07-02 Thread Stafford Horne
This adds support for OpenRISC hardware floating point instructions. This is enabled with the -mhard-float option. Double-prevision floating point operations work using register pairing as specified in: https://openrisc.io/proposals/orfpx64a32. This has just been added in the OpenRISC architectur