[PATCH v2 00/10] New backend for the TI PRU processor

2018-07-28 Thread Dimitar Dimitrov
gcc-patches/2018-06/msg00775.html Dimitar Dimitrov (10): Initial TI PRU GCC port Initial TI PRU libgcc port testsuite: Add PRU tests testsuite: Add check for overflowed IMEM region to testsuite testsuite: Add check for unsupported TI ABI PRU features to testsuite testsuite: Remove PRU f

[PATCH v2 05/10] testsuite: Add check for unsupported TI ABI PRU features to testsuite

2018-07-28 Thread Dimitar Dimitrov
Not all C language features are supported when -mabi=ti option is used for PRU target. gcc/testsuite/ChangeLog: 2018-07-27 Dimitar Dimitrov * lib/gcc-dg.exp: Filter unsupported features in PRU's TI ABI mode. * lib/target-utils.exp: Ditto. * lib/target-supports.exp

[PATCH v2 04/10] testsuite: Add check for overflowed IMEM region to testsuite

2018-07-28 Thread Dimitar Dimitrov
PRU architecture supports maximum 256k program memory (IMEM). Some GCC test cases manage to produce executables bigger than that. gcc/testsuite/ChangeLog: 2018-07-27 Dimitar Dimitrov * lib/gcc-dg.exp: Bail on region overflow for tiny targets. * lib/target-utils.exp: Ditto

Re: [PATCH 11/11] Increase MAX_MAX_OPERANDS limit

2018-07-26 Thread Dimitar Dimitrov
On Monday, 23/7/2018 16:22:24 EEST Jeff Law wrote: > On 07/19/2018 08:12 PM, Dimitar Dimitrov wrote: > > On събота, 23 юни 2018 г. 20:35:23 EEST Jakub Jelinek wrote: > >> On Sat, Jun 23, 2018 at 03:26:50PM +0300, Dimitar Dimitrov wrote: > >>> I took arm/ldmstm.md a

Re: [PATCH 11/11] Increase MAX_MAX_OPERANDS limit

2018-07-19 Thread Dimitar Dimitrov
On събота, 23 юни 2018 г. 20:35:23 EEST Jakub Jelinek wrote: > On Sat, Jun 23, 2018 at 03:26:50PM +0300, Dimitar Dimitrov wrote: > > I took arm/ldmstm.md as an inspiration. See attached machine description > > for PRU that requires the increase. I omitted this machine-generated MD &

Re: [PATCH 01/11] Initial TI PRU GCC port

2018-06-23 Thread Dimitar Dimitrov
On петък, 22 юни 2018 г. 12:20:46 EEST Jeff Law wrote: > On 06/13/2018 12:57 PM, Dimitar Dimitrov wrote: > > ChangeLog: > > > > 2018-06-13 Dimitar Dimitrov > > > > * configure: Regenerate. > > * configure.ac: Add PRU target. > > &g

[PATCH v2] Fix LRA to handle multi-word eliminable registers

2018-06-23 Thread Dimitar Dimitrov
add_to_hard_reg_set. - Also fix check_pseudos_live_through_calls. - Decouple PRU tests so that LRA patch is now standalone. gcc/ChangeLog: 2018-06-23 Dimitar Dimitrov * lra-eliminations.c (update_reg_eliminate): Mark all spanning hard registers for Pmode.. * lra

Re: [PATCH 11/11] Increase MAX_MAX_OPERANDS limit

2018-06-23 Thread Dimitar Dimitrov
On петък, 22 юни 2018 г. 19:41:55 EEST Jakub Jelinek wrote: > On Fri, Jun 22, 2018 at 11:33:06AM -0600, Jeff Law wrote: > > On 06/13/2018 12:58 PM, Dimitar Dimitrov wrote: > > > The PRU load/store instructions can access memory with byte > > > > > > gra

Re: [PATCH 10/11] Fix LRA to handle multi-word eliminable registers

2018-06-23 Thread Dimitar Dimitrov
On петък, 22 юни 2018 г. 10:37:10 EEST Jeff Law wrote: > On 06/21/2018 10:01 PM, Dimitar Dimitrov wrote: > > On четвъртък, 21 юни 2018 г. 17:03:55 EEST Jeff Law wrote: > >> On 06/21/2018 11:44 AM, Vladimir Makarov wrote: > >>> On 06/13/2018 02:58 PM, Dimitar Dimitr

Re: [PATCH 02/11] Initial TI PRU libgcc port

2018-06-22 Thread Dimitar Dimitrov
On петък, 22 юни 2018 г. 10:55:29 EEST Jeff Law wrote: > On 06/13/2018 12:57 PM, Dimitar Dimitrov wrote: > > The floating point support has been borrowed from C6X libgcc port > > to help with TI PRU toolchain ABI compatibility. > > > > libgcc/ChangeLog: > >

Re: [PATCH 10/11] Fix LRA to handle multi-word eliminable registers

2018-06-21 Thread Dimitar Dimitrov
On четвъртък, 21 юни 2018 г. 17:03:55 EEST Jeff Law wrote: > On 06/21/2018 11:44 AM, Vladimir Makarov wrote: > > On 06/13/2018 02:58 PM, Dimitar Dimitrov wrote: > >> From: Dimitar Dimitrov > >> > >> For some targets, Pmode != UNITS_PER_WORD. Take this

Re: [PATCH 01/11] Initial TI PRU GCC port

2018-06-18 Thread Dimitar Dimitrov
On сряда, 13 юни 2018 г. 19:44:16 EEST Joseph Myers wrote: > On Wed, 13 Jun 2018, Dimitar Dimitrov wrote: > > + error ("__delay_cycles() only takes constant arguments"); > > As in documentation, diagnostics should not use () to indicate that a name > refe

[PATCH 08/11] testsuite: Mark that PRU has one-cycle jumps

2018-06-13 Thread Dimitar Dimitrov
gcc/testsuite/ChangeLog: 2018-06-13 Dimitar Dimitrov * gcc.dg/tree-ssa/20040204-1.c: XFAIL on pru. * gcc.dg/tree-ssa/reassoc-33.c: Ditto. * gcc.dg/tree-ssa/reassoc-34.c: Ditto. * gcc.dg/tree-ssa/reassoc-35.c: Ditto. * gcc.dg/tree-ssa/reassoc-36.c: Ditto

[PATCH 07/11] testsuite: Define PRU stack usage

2018-06-13 Thread Dimitar Dimitrov
gcc/testsuite/ChangeLog: 2018-06-13 Dimitar Dimitrov * gcc.dg/stack-usage-1.c: Define PRU stack usage. Signed-off-by: Dimitar Dimitrov --- gcc/testsuite/gcc.dg/stack-usage-1.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/testsuite/gcc.dg/stack-usage-1.c b/gcc

[PATCH 05/11] testsuite: Add check for unsupported TI ABI PRU features to testsuite

2018-06-13 Thread Dimitar Dimitrov
Not all C language features are supported when -mabi=ti option is used for PRU target. gcc/testsuite/ChangeLog: 2018-06-13 Dimitar Dimitrov * lib/gcc-dg.exp: Filter unsupported features in PRU's TI ABI mode. * lib/target-utils.exp: Ditto. Signed-off-by: Dimitar Dimitrov

[PATCH 10/11] Fix LRA to handle multi-word eliminable registers

2018-06-13 Thread Dimitar Dimitrov
From: Dimitar Dimitrov For some targets, Pmode != UNITS_PER_WORD. Take this into account when marking hard registers as being used. I tested C and C++ testsuits for x86_64 with and without this patch. There was no regression, i.e. gcc.sum and g++.sum matched exactly. gcc/ChangeLog: 2018-06-13

[PATCH 00/11] New backend for the TI PRU processor

2018-06-13 Thread Dimitar Dimitrov
.html Dimitar Dimitrov (11): Initial TI PRU GCC port Initial TI PRU libgcc port testsuite: Add PRU tests testsuite: Add check for overflowed IMEM region to testsuite testsuite: Add check for unsupported TI ABI PRU features to testsuite testsuite: Remove PRU from test cases requiring

[PATCH 04/11] testsuite: Add check for overflowed IMEM region to testsuite

2018-06-13 Thread Dimitar Dimitrov
PRU architecture supports maximum 256k program memory (IMEM). Some GCC test cases manage to produce executables bigger than that. gcc/testsuite/ChangeLog: 2018-06-13 Dimitar Dimitrov * lib/gcc-dg.exp: Bail on region overflow for tiny targets. * lib/target-utils.exp: Ditto

[PATCH 11/11] Increase MAX_MAX_OPERANDS limit

2018-06-13 Thread Dimitar Dimitrov
, 0, 100 The load/store multiple patterns declare all subsequent registers as distinct operands. Hence the need to increase the limit. Increase the value to just 60 in order to avoid modifying regrename.c. 2018-06-13 Dimitar Dimitrov * genoutput.c (MAX_MAX_OPERANDS): Increase to 60

[PATCH 02/11] Initial TI PRU libgcc port

2018-06-13 Thread Dimitar Dimitrov
The floating point support has been borrowed from C6X libgcc port to help with TI PRU toolchain ABI compatibility. libgcc/ChangeLog: 2018-06-13 Dimitar Dimitrov * config.host: Add PRU target. * config/pru/asri.c: New file. * config/pru/eqd.c: New file

[PATCH 03/11] testsuite: Add PRU tests

2018-06-13 Thread Dimitar Dimitrov
gcc/testsuite/ChangeLog: 2018-06-13 Dimitar Dimitrov * gcc.target/pru/abi-arg-struct.c: New test. * gcc.target/pru/ashiftrt.c: New test. * gcc.target/pru/builtins-1.c: New test. * gcc.target/pru/builtins-error.c: New test. * gcc.target/pru/clearbit.c

[PATCH 09/11] testsuite: Mark that PRU uses all function pointer bits

2018-06-13 Thread Dimitar Dimitrov
gcc/testsuite/ChangeLog: 2018-06-13 Dimitar Dimitrov * g++.old-deja/g++.abi/ptrmem.C: Add PRU to list. Signed-off-by: Dimitar Dimitrov --- gcc/testsuite/g++.old-deja/g++.abi/ptrmem.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.old-deja/g

[PATCH 06/11] testsuite: Remove PRU from test cases requiring hosted environment

2018-06-13 Thread Dimitar Dimitrov
gcc/testsuite/ChangeLog: 2018-06-13 Dimitar Dimitrov * gcc.c-torture/execute/20101011-1.c: Define DO_TEST to 0 for PRU. * gcc.dg/20020312-2.c: No PIC register for PRU. Signed-off-by: Dimitar Dimitrov --- gcc/testsuite/gcc.c-torture/execute/20101011-1.c | 3 +++ gcc

HW subregs in machine description

2017-01-24 Thread Dimitar Dimitrov
Hello, I'm a newbie working on a GCC port [1] for PRU [2]. In order to achieve ABI compatibility with the proprietary TI toolchain, I need my Machine Description to support HW register subfields as indipendent first-class registers. I could not find a relevant example in the GCC source. Looks

Copyright assignment

2016-10-21 Thread Dimitar Dimitrov
Hello, I would like to contribute GCC and Binutils ports for PRU [1]. I think "assigment for all future changes" is suitable for me. Can I get the copyright assignment forms? Regards, Dimitar [1] https://github.com/dinuxbg/gnupru

<    1   2   3