[PATCH] genrecog.cc (print_nonbool_test): Fix type error of SUBREG_BYTE

2022-09-19 Thread Jojo R via Gcc-patches
* gcc/genrecog.cc (print_nonbool_test): Fix type error of SUBREG_BYTE --- gcc/genrecog.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/genrecog.cc b/gcc/genrecog.cc index 77f8fb97853..319e437e334 100644 --- a/gcc/genrecog.cc +++ b/gcc/genrecog.cc @@ -4619,6 +4619,7 @@

Re: [PATCH v2] regrename: Skip renaming if instruction is noop move.

2021-12-13 Thread Jojo R via Gcc-patches
Hi, Thank you for your review & help. I could not fetch the merged patch from gcc master of git. Is there any problem for this ? Thanks. — Jojo 在 2021年12月3日 +0800 PM10:57,Jeff Law ,写道: > > > On 12/2/2021 9:26 PM, Jojo R wrote: > > Skip renaming if

[PATCH v2] regrename: Skip renaming if instruction is noop move.

2021-12-02 Thread Jojo R via Gcc-patches
Skip renaming if instruction is noop move, and it will been removed for performance. gcc/ * regrename.c (find_rename_reg): Return satisfied regno if instruction is noop move. --- gcc/regrename.c | 5 + 1 file changed, 5 insertions(+) diff --git a/gcc/regrename.c

[PATCH v2] regrename: Skip renaming if instruction is noop move.

2021-12-02 Thread Jojo R via Gcc-patches
Skip renaming if instruction is noop move, and it will been removed for performance. gcc/ * regrename.c (find_rename_reg): Return satisfied regno if instruction is noop move. --- gcc/regrename.c | 5 + 1 file changed, 5 insertions(+) diff --git a/gcc/regrename.c

Re: [PATCH] regrename: Skip renaming if instruction is noop move.

2021-11-18 Thread Jojo R via Gcc-patches
— Jojo 在 2021年11月19日 +0800 AM12:13,Jeff Law ,写道: > > > On 11/16/2021 7:20 PM, Jojo R via Gcc-patches wrote: > > — Jojo > > 在 2021年11月16日 +0800 PM8:12,Richard Biener ,写道: > > > On Tue, Nov 16, 2021 at 12:45 PM Jojo R via Gcc-patches > > > wrote: > >

Re: [PATCH] regrename: Skip renaming if instruction is noop move.

2021-11-16 Thread Jojo R via Gcc-patches
— Jojo 在 2021年11月16日 +0800 PM8:12,Richard Biener ,写道: > On Tue, Nov 16, 2021 at 12:45 PM Jojo R via Gcc-patches > wrote: > > > > Skip renaming if instruction is noop move, and it will > > been removed for performance. > > Is there any (target specific) test

[PATCH] regrename: Skip renaming if instruction is noop move.

2021-11-16 Thread Jojo R via Gcc-patches
Skip renaming if instruction is noop move, and it will been removed for performance. gcc/ * regrename.c (find_rename_reg): Return satisfied regno if instruction is noop move. --- gcc/regrename.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/regrename.c

Re: [PATCH 1/2] RISC-V: Add arch flags for T-HEAD.

2021-08-26 Thread Jojo R via Gcc-patches
] https://github.com/rjiejie/thead-bin-qemu [3] lifang_...@c-sky.com Thanks, — Jojo 在 2021年7月22日 +0800 AM10:16,Jojo R ,写道: > > — Jojo > 在 2021年7月22日 +0800 AM4:53,Jim Wilson ,写道: > > On Tue, Jul 13, 2021 at 11:06 AM Palmer Dabbelt wrote: > > > Is there are documentation

Re: [PATCH] Adding target hook allows to reject initialization of register

2021-08-17 Thread Jojo R via Gcc-patches
— Jojo 在 2021年8月16日 +0800 PM3:15,Richard Biener ,写道: > On Fri, Aug 13, 2021 at 3:59 AM Jojo R wrote: > > > > > > — Jojo > > 在 2021年8月11日 +0800 PM6:44,Richard Biener ,写道: > > > > On Wed, Aug 11, 2021 at 11:28 AM Richard Sandiford > > wrote: >

Re: [PATCH] Adding target hook allows to reject initialization of register

2021-08-12 Thread Jojo R via Gcc-patches
— Jojo 在 2021年8月11日 +0800 PM6:44,Richard Biener ,写道: > On Wed, Aug 11, 2021 at 11:28 AM Richard Sandiford > wrote: > > > > Richard Biener writes: > > > On Tue, Aug 10, 2021 at 10:33 AM Jojo R via Gcc-patches > > > wrote: > > > > > > >

Re: [PATCH] Adding target hook allows to reject initialization of register

2021-08-10 Thread Jojo R via Gcc-patches
— Jojo 在 2021年8月10日 +0800 PM7:03,Richard Biener ,写道: > On Tue, Aug 10, 2021 at 10:33 AM Jojo R via Gcc-patches > wrote: > > > > Some target like RISC-V allow to group vector register as a whole, > > and only operate part of it in fact, but the 'init-regs' pass will

Re: [PATCH] Adding target hook allows to reject initialization of register

2021-08-10 Thread Jojo R via Gcc-patches
— Jojo 在 2021年8月10日 +0800 PM7:03,Richard Biener ,写道: > On Tue, Aug 10, 2021 at 10:33 AM Jojo R via Gcc-patches > wrote: > > > > Some target like RISC-V allow to group vector register as a whole, > > and only operate part of it in fact, but the 'init-regs' pass will

[PATCH] Adding target hook allows to reject initialization of register

2021-08-10 Thread Jojo R via Gcc-patches
Some target like RISC-V allow to group vector register as a whole, and only operate part of it in fact, but the 'init-regs' pass will add initialization for uninitialized registers. Add this hook to reject this action for reducing instruction. gcc/ * init-regs.c

Re: [PATCH 1/2] RISC-V: Add arch flags for T-HEAD.

2021-07-21 Thread Jojo R via Gcc-patches
— Jojo 在 2021年7月22日 +0800 AM4:53,Jim Wilson ,写道: > On Tue, Jul 13, 2021 at 11:06 AM Palmer Dabbelt wrote: > > Is there are documentation as to what this "theadc" extension is? > > The best doc I know of is    https://github.com/isrc-cas/c910-llvmThe README > is in Chinese, but google translate

[PATCH 2/2] RISC-V: Add ldr/str instruction for T-HEAD.

2021-06-29 Thread Jojo R via Gcc-patches
gcc/ * gcc/config/riscv/riscv-opts.h (TARGET_LDR): New. (TARGET_LDUR): Likewise. * gcc/config/riscv/riscv.h (INDEX_REG_CLASS): Use TARGET_LDR. (REGNO_OK_FOR_INDEX_P): Use TARGET_LDR. (REG_OK_FOR_INDEX_P): Use REGNO_OK_FOR_INDEX_P. *

[PATCH 1/2] RISC-V: Add arch flags for T-HEAD.

2021-06-29 Thread Jojo R via Gcc-patches
gcc/ * gcc/config/riscv/riscv.opt (riscv_x_subext): New. * gcc/config/riscv/riscv-opts.h (MASK_XTHEAD_C): New. (TARGET_XTHEAD_C): Likewise. * gcc/common/config/riscv/riscv-common.c (riscv_ext_flag_table): Use riscv_x_subext & MASK_XTHEAD_C. ---

[PATCH 0/2] RISC-V: Add ldr/str instruction for T-HEAD.

2021-06-29 Thread Jojo R via Gcc-patches
T-HEAD extends some customized ISAs for Cores. The patches support ldr/str insns, it likes arm's LDR insn, the memory model is a base register indexed by (optionally scaled) register.

[PATCH] RISC-V: Add tune info for T-HEAD C906.

2021-06-21 Thread Jojo R via Gcc-patches
gcc/ * config/riscv/riscv.c (thead_c906_tune_info): New. * config/riscv/riscv.c (riscv_tune_info_table): Use new tune. --- gcc/config/riscv/riscv.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/gcc/config/riscv/riscv.c b/gcc/config/riscv/riscv.c index

Re: [PATCH v3] Include checking of 0 cost dependency due to bypass in rank_for_schedule

2020-11-11 Thread Jojo R
Ping … ... Jojo 在 2020年11月6日 +0800 PM5:38,Jojo R ,写道: > Insn seqs before sched: > > .L1: > a5 = insn-1 (a0) > a6 = insn-2 (a1) > a7 = insn-3 (a7, a5) > a8 = insn-4 (a8, a6) > Jmp .L1 > > Insn-3 & insn-4 is REG_DEP_TRUE of insn-1 & insn-2, > so insn-3 &

Re: [PATCH v2] Add bypass_p cost check in flag_sched_last_insn_heuristic

2020-11-06 Thread Jojo R
Jojo 在 2020年11月6日 +0800 AM11:18,Jeff Law ,写道: On 11/5/20 7:52 PM, Jim Wilson wrote: On Thu, Nov 5, 2020 at 6:10 PM Jojo R wrote: > >         gcc/ > >         * haifa-sched.c (rank_for_schedule): Add bypass_p > >         cost check in flag_sched_l

Re: [PATCH v2] Replace dep_list_size with dep_list_costs for better scheduling

2020-11-06 Thread Jojo R
Jojo 在 2020年11月6日 +0800 AM11:18,Jeff Law ,写道: On 11/5/20 7:50 PM, Jim Wilson wrote: On Thu, Nov 5, 2020 at 6:03 PM Jojo R wrote: > >         gcc/ > >         * haifa-sched.c (dep_list_costs): New. > >         (rank_for_schedule): Use dep_list_costs. > > Wh

[PATCH v3] Include checking of 0 cost dependency due to bypass in rank_for_schedule

2020-11-06 Thread Jojo R
Insn seqs before sched: .L1: a5 = insn-1 (a0) a6 = insn-2 (a1) a7 = insn-3 (a7, a5) a8 = insn-4 (a8, a6) Jmp .L1 Insn-3 & insn-4 is REG_DEP_TRUE of insn-1 & insn-2, so insn-3 & insn-4 will be as the last of ready list. And this patch will put 0 cost dependency due to a bypass as highest numbered

[PATCH v2] Add bypass_p cost check in flag_sched_last_insn_heuristic

2020-11-05 Thread Jojo R
gcc/ * haifa-sched.c (rank_for_schedule): Add bypass_p cost check in flag_sched_last_insn_heuristic. --- gcc/haifa-sched.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 62d1816a55d..adf63659d15

[PATCH v2] Replace dep_list_size with dep_list_costs for better scheduling

2020-11-05 Thread Jojo R
gcc/ * haifa-sched.c (dep_list_costs): New. (rank_for_schedule): Use dep_list_costs. --- gcc/haifa-sched.c | 31 +-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index

[PATCH] Add bypass_p cost check in flag_sched_last_insn_heuristic

2020-11-05 Thread Jojo R
gcc/ * haifa-sched.c (rank_for_schedule): Add bypass_p cost check in flag_sched_last_insn_heuristic. --- gcc/haifa-sched.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 62d1816a55d..7d826483f55

[PATCH] Replace dep_list_size with dep_list_costs for better scheduling

2020-11-04 Thread Jojo R
gcc/ * haifa-sched.c (dep_list_costs): New. (rank_for_schedule): Use dep_list_costs. --- gcc/haifa-sched.c | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 350178c82b8..62d1816a55d

Re: [PATCH v7] genemit.c (main): split insn-emit.c for compiling parallelly

2020-11-03 Thread Jojo R
Jojo 在 2020年10月30日 +0800 PM11:29,Richard Sandiford ,写道: > Jojo R writes: > > Jojo > > 在 2020年10月27日 +0800 PM10:14,Richard Sandiford > > ,写道: > > > Jojo R writes: > > > > gcc/ChangeLog: > > > > > > > > * genemit.c (main): Pri

[PATCH v9] genemit.c (main): split insn-emit.c for compiling parallelly

2020-11-03 Thread Jojo R
gcc/ChangeLog: * genemit.c (main): Print 'split line'. * Makefile.in (insn-emit.c): Define split count and file --- gcc/Makefile.in | 35 +++- gcc/genemit.c | 104 +--- 2 files changed, 90 insertions(+), 49 deletions(-)

[PATCH v8] genemit.c (main): split insn-emit.c for compiling parallelly

2020-10-30 Thread Jojo R
gcc/ChangeLog: * genemit.c (main): Print 'split line'. * Makefile.in (insn-emit.c): Define split count and file --- gcc/Makefile.in | 33 +++ gcc/genemit.c | 104 +--- 2 files changed, 89 insertions(+), 48 deletions(-)

Re: [PATCH v7] genemit.c (main): split insn-emit.c for compiling parallelly

2020-10-30 Thread Jojo R
Jojo 在 2020年10月27日 +0800 PM10:14,Richard Sandiford ,写道: > Jojo R writes: > > gcc/ChangeLog: > > > > * genemit.c (main): Print 'split line'. > > * Makefile.in (insn-emit.c): Define split count and file > > > > --- > > gcc/Makef

Re: [PATCH v7] genemit.c (main): split insn-emit.c for compiling parallelly

2020-10-26 Thread Jojo R
Ping …. …. Jojo 在 2020年10月24日 +0800 PM2:02,Jojo R ,写道: > Hi, > > Has this patch been merged ? > > I track this some weeks and the patch has reviewed still on the way ... > > Could someone help me ? > > Thanks so much. > > Jojo > 在

Re: [PATCH v7] genemit.c (main): split insn-emit.c for compiling parallelly

2020-10-24 Thread Jojo R
Hi, Has this patch been merged ? I track this some weeks and the patch has reviewed still on the way ... Could someone help me ? Thanks so much. Jojo 在 2020年10月8日 +0800 AM10:01,Jojo R ,写道: > Ping …... > > Jojo > 在 2020年9月27日 +0800 AM10:34,Jojo R

Re: [PATCH v7] genemit.c (main): split insn-emit.c for compiling parallelly

2020-10-07 Thread Jojo R
Ping …... Jojo 在 2020年9月27日 +0800 AM10:34,Jojo R ,写道: > Hi, > > Has this patch been merged ? > > Jojo > 在 2020年9月15日 +0800 PM5:16,Jojo R ,写道: > > gcc/ChangeLog: > > > > * genemit.c (main): Print 'split line'. > > * Makefile.in (insn-emit.c): Defin

Re: [PATCH v7] genemit.c (main): split insn-emit.c for compiling parallelly

2020-09-26 Thread Jojo R
Hi, Has this patch been merged ? Jojo 在 2020年9月15日 +0800 PM5:16,Jojo R ,写道: > gcc/ChangeLog: > > * genemit.c (main): Print 'split line'. > * Makefile.in (insn-emit.c): Define split count and file > > --- > gcc/Makefile.in | 19 +

[PATCH] C-SKY: Add -msim option

2020-09-16 Thread Jojo R
gcc/ChangeLog: * config/csky/csky.opt (msim): New. * doc/invoke.texi (C-SKY Options): Document -msim. * config/csky/csky-elf.h (LIB_SPEC): Add simulator runtime. --- gcc/config/csky/csky-elf.h | 10 -- gcc/config/csky/csky.opt | 4 gcc/doc/invoke.texi

[PATCH 3/3] C-SKY: Refine target name for elf target test

2020-09-16 Thread Jojo R
gcc/testsuite/ChangeLog: * lib/target-supports.exp (check_profiling_available): Refine name of elf target. --- gcc/testsuite/lib/target-supports.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/lib/target-supports.exp

[PATCH 2/3] C-SKY: Set use_gcc_stdint=wrap for elf target

2020-09-16 Thread Jojo R
gcc/ChangeLog: * config.gcc (C-SKY): Set use_gcc_stdint=wrap for elf target. --- gcc/config.gcc | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/config.gcc b/gcc/config.gcc index 797f0ad..845f10e 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1543,6 +1543,7 @@ csky-*-*)

[PATCH 1/3] C-SKY: Enable crtbegin/crtend.o of libgcc for elf target

2020-09-16 Thread Jojo R
libgcc/ChangeLog: * config.host (C-SKY): Enable crtbegin/crtend.o of libgcc for elf target. --- libgcc/config.host | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgcc/config.host b/libgcc/config.host index 7a3e29d..dbb378f 100644 --- a/libgcc/config.host +++

[PATCH] C-SKY: Support multilib for mfloat-abi=.

2020-09-16 Thread Jojo R
gcc/ChangeLog: * config/csky/t-csky-linux (CSKY_MULTILIB_OSDIRNAMES): Use mfloat-abi. (MULTILIB_OPTIONS): Likewise. * config/csky/t-csky-elf (MULTILIB_OPTIONS): Likewise. (MULTILIB_EXCEPTIONS): Likewise. --- gcc/config/csky/t-csky-elf | 13 -

[PATCH] C-SKY: Fix wrong ld name with option -mfloat-abi=hard.

2020-09-15 Thread Jojo R
gcc/ChangeLog: * config/csky/csky-linux-elf.h (GLIBC_DYNAMIC_LINKER): Use mfloat-abi. --- gcc/config/csky/csky-linux-elf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/csky/csky-linux-elf.h b/gcc/config/csky/csky-linux-elf.h index 9a57dd04..cf587ae

Re: [PATCH v6] genemit.c (main): split insn-emit.c for compiling parallelly

2020-09-15 Thread Jojo R
Hi, Ok & Thanks, I will do my best for it :) It’s fixed in patch v7. Jojo 在 2020年9月11日 +0800 PM11:29,Segher Boessenkool ,写道: > Hi! > > On Fri, Sep 11, 2020 at 03:26:17PM +0800, Jojo R wrote: > > +#define printf_include() do { \ > > Don't use macr

[PATCH v7] genemit.c (main): split insn-emit.c for compiling parallelly

2020-09-15 Thread Jojo R
gcc/ChangeLog: * genemit.c (main): Print 'split line'. * Makefile.in (insn-emit.c): Define split count and file --- gcc/Makefile.in | 19 + gcc/genemit.c | 104 +--- 2 files changed, 83 insertions(+), 40 deletions(-) diff

[PATCH v3] C-SKY: Support -mfloat-abi=hard.

2020-09-15 Thread Jojo R
gcc/ChangeLog: * config/csky/csky.md (CSKY_NPARM_FREGS): New. (call_value_internal_vs/d): New. (untyped_call): New. * config/csky/csky.h (TARGET_SINGLE_FPU): New. (TARGET_DOUBLE_FPU): New. (FUNCTION_VARG_REGNO_P): New. (CSKY_VREG_MODE_P):

[PATCH v6] genemit.c (main): split insn-emit.c for compiling parallelly

2020-09-11 Thread Jojo R
gcc/ChangeLog: * genemit.c (main): Print 'split line'. * Makefile.in (insn-emit.c): Define split count and file --- gcc/Makefile.in | 19 +++ gcc/genemit.c | 128 ++-- 2 files changed, 89 insertions(+), 58 deletions(-) diff

Re: [PATCH v5] genemit.c (main): split insn-emit.c for compiling parallelly

2020-09-11 Thread Jojo R
Hi, Ok & Thanks, It’s fixed in patch v6. Jojo 在 2020年8月28日 +0800 PM5:52,Richard Sandiford ,写道: > Thanks for doing this. In addition to what Segher said: > > Jojo R writes: > > gcc/ChangeLog: > > > > * genemit.c (main): Print 'split line'. > >

Re: [PATCH v5] genemit.c (main): split insn-emit.c for compiling parallelly

2020-09-11 Thread Jojo R
Hi, Ok & Thanks, It’s fixed in patch v6. Jojo 在 2020年8月28日 +0800 AM4:40,Segher Boessenkool ,写道: > Hi! > > On Thu, Aug 27, 2020 at 08:47:19PM +0800, Jojo R wrote: > > +insn-emit-split-c = $(foreach o, $(shell for i in > > {1..$(insn-generated-split

[PATCH] C-SKY: Add compatibility of elf target name

2020-08-28 Thread Jojo R
gcc/ChangeLog: * config.gcc (C-SKY): Add compatibility of elf target name. libgcc/ChangeLog: * config.host (C-SKY): Add compatibility of elf target name. --- gcc/config.gcc | 2 +- libgcc/config.host | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] C-SKY: Add -mbacktrace option.

2020-08-27 Thread Jojo R
Hi, Ok & thanks, I will reroll this :) Jojo 在 2020年8月26日 +0800 AM4:22,Jeff Law ,写道: > On Fri, 2020-08-21 at 14:18 +0800, Jojo R wrote: > > gcc/ChangeLog: > > > > * config/csky/csky.opt (TARGET_BACKTRACE): New. > > * doc/invoke.texi (C-SKY Options): Docume

[PATCH v5] genemit.c (main): split insn-emit.c for compiling parallelly

2020-08-27 Thread Jojo R
gcc/ChangeLog: * genemit.c (main): Print 'split line'. * Makefile.in (insn-emit.c): Define split count and file --- gcc/Makefile.in | 15 + gcc/genemit.c | 87 - 2 files changed, 64 insertions(+), 38 deletions(-) diff

Re: [PATCH v4] genemit.c (main): split insn-emit.c for compiling parallelly

2020-08-27 Thread Jojo R
Jojo 在 2020年8月2日 +0800 AM8:09,Segher Boessenkool ,写道: > On Sat, Aug 01, 2020 at 07:02:07PM +0800, Jojo R wrote: > > +insn-generated-split-num = $(shell nproc) > > nproc isn't portable, is not the same on every system, and can lead to > a number of processes quadratic in the nu

[PATCH] C-SKY: Add -mbacktrace option.

2020-08-21 Thread Jojo R
gcc/ChangeLog: * config/csky/csky.opt (TARGET_BACKTRACE): New. * doc/invoke.texi (C-SKY Options): Document -mbacktrace. --- gcc/config/csky/csky.opt | 4 gcc/doc/invoke.texi | 7 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v2] C-SKY: Support -mfloat-abi=hard.

2020-08-18 Thread Jojo R
ns of C formatting style, which use the > defualt 8 clumns tab wide. > > > On 8/18/20 9:42 AM, Jojo R wrote: > > Hi, > > > > Is there coding rule with it ? > > > > I can not find it from  > > https://www.gnu.org/prep/standards/html_node/index.html > &g

Re: [PATCH v2] C-SKY: Support -mfloat-abi=hard.

2020-08-17 Thread Jojo R
Hi Jojo, > > > On 8/17/20 7:09 PM, Jojo R wrote: > > diff --git a/gcc/config/csky/csky.c b/gcc/config/csky/csky.c > > index 7ba3ed3..b71291a 100644 > > --- a/gcc/config/csky/csky.c > > +++ b/gcc/config/csky/csky.c > > @@ -328,6 +328,16 @

[PATCH v2] C-SKY: Support -mfloat-abi=hard.

2020-08-17 Thread Jojo R
gcc/ChangeLog: * config/csky/csky.md (CSKY_NPARM_FREGS): New. (call_value_internal_vs/d): New. (untyped_call): New. * config/csky/csky.h (TARGET_SINGLE_FPU): New. (TARGET_DOUBLE_FPU): New. (FUNCTION_VARG_REGNO_P): New. (CSKY_VREG_MODE_P):

[PATCH] C-SKY: Support -mfloat-abi=hard.

2020-08-16 Thread Jojo R
gcc/ChangeLog: * config/csky/csky.md (CSKY_NPARM_FREGS): New. (call_value_internal_vs/d): New. (untyped_call): New. * config/csky/csky.h (TARGET_SINGLE_FPU): New. (TARGET_DOUBLE_FPU): New. (FUNCTION_VARG_REGNO_P): New. (CSKY_VREG_MODE_P):

Re: [PATCH] C-SKY: Fix assembling error with -mfloat-abi=hard.

2020-08-14 Thread Jojo R
Hi, Ok & thanks. Jojo 在 2020年8月14日 +0800 PM3:02,Xianmiao Qu ,写道: > Hi Jojo, > > > gcc/ChangeLog: > > * gcc/config/csky/csky-elf.h (ASM_SPEC): Use mfloat-abi. > > * gcc/config/csky/csky-linux-elf.h (ASM_SPEC): mfloat-abi. > > > I have committed it to trunk. But there two points you shoud 

[PATCH] C-SKY: Fix assembling error with -mfloat-abi=hard.

2020-08-13 Thread Jojo R
gcc/ChangeLog: * gcc/config/csky/csky-elf.h (ASM_SPEC): Use mfloat-abi. * gcc/config/csky/csky-linux-elf.h (ASM_SPEC): mfloat-abi. --- gcc/config/csky/csky-elf.h | 2 ++ gcc/config/csky/csky-linux-elf.h | 2 ++ 2 files changed, 4 insertions(+) diff --git

[PATCH v2] CSKY: Add -mfloat-abi= option.

2020-08-10 Thread Jojo R
From: jojo gcc/ChangeLog: * config/csky/csky_opts.h (float_abi_type): New. * config/csky/csky.h (TARGET_SOFT_FLOAT): New. (TARGET_HARD_FLOAT): New. (TARGET_HARD_FLOAT_ABI): New. (OPTION_DEFAULT_SPECS): Use mfloat-abi. * config/csky/csky.opt

[PATCH v4] genemit.c (main): split insn-emit.c for compiling parallelly

2020-08-01 Thread Jojo R
gcc/ChangeLog: * genemit.c (main): Print 'split line'. * Makefile.in (insn-emit.c): Define split count and file --- gcc/Makefile.in | 11 +++ gcc/genemit.c | 87 - 2 files changed, 60 insertions(+), 38 deletions(-) diff

[PATCH] CSKY: Add -mfloat-abi= option.

2020-07-31 Thread Jojo R
gcc/ChangeLog: * config/csky/csky_opts.h (float_abi_type): New. * config/csky/csky.h (TARGET_SOFT_FLOAT): New. (TARGET_HARD_FLOAT): New. (TARGET_HARD_FLOAT_ABI): New. (OPTION_DEFAULT_SPECS): Use mfloat-abi. * config/csky/csky.opt (mfloat-abi): New.

Re: [PATCH v3] genemit.c (main): split insn-emit.c for compiling parallelly

2020-07-29 Thread Jojo R
在 2020年7月24日 +0800 PM9:19,Segher Boessenkool ,写道: > On Fri, Jul 24, 2020 at 12:03:16PM +0200, Richard Biener via Gcc-patches > wrote: > > On Fri, Jul 24, 2020 at 10:13 AM Rainer Orth > > wrote: > > > Jojo R writes: > > > > +insn-generated-split-num = $

Re: [PATCH v3] genemit.c (main): split insn-emit.c for compiling parallelly

2020-07-29 Thread Jojo R
在 2020年7月24日 +0800 PM9:57,Joseph Myers ,写道: > On Fri, 24 Jul 2020, Jojo R wrote: > > > + -csplit insn-$*.c /parallel\ compilation/ -k -s > > {$(insn-generated-split-num)} -f insn-$* -b "%d.c" > > + -( [ ! -s insn-$*0.c ] && for i in {1..$(insn-generat

Re: [PATCH v3] genemit.c (main): split insn-emit.c for compiling parallelly

2020-07-29 Thread Jojo R
在 2020年7月24日 +0800 PM6:03,Richard Biener ,写道: > On Fri, Jul 24, 2020 at 10:13 AM Rainer Orth > wrote: > > > > Jojo R writes: > > > > > gcc/ChangeLog: > > > > > > * genemit.c (main): Print 'split line'. > > > * Makefile.in (insn-emi

Re: [PATCH v3] genemit.c (main): split insn-emit.c for compiling parallelly

2020-07-29 Thread Jojo R
在 2020年7月24日 +0800 PM4:12,Rainer Orth ,写道: > Jojo R writes: > > > gcc/ChangeLog: > > > > * genemit.c (main): Print 'split line'. > > * Makefile.in (insn-emit.c): Define split count and file > [...] > > diff --git a/gcc/Makefile.in b/gcc/Makefile.in &g

[PATCH v3] genemit.c (main): split insn-emit.c for compiling parallelly

2020-07-23 Thread Jojo R
gcc/ChangeLog: * genemit.c (main): Print 'split line'. * Makefile.in (insn-emit.c): Define split count and file --- gcc/Makefile.in | 10 ++ gcc/genemit.c | 87 - 2 files changed, 59 insertions(+), 38 deletions(-) diff --git

Re: [PATCH v2] genemit.c (main): split insn-emit.c for compiling parallelly

2020-07-23 Thread Jojo R
在 2020年7月21日 +0800 PM2:55,Bin.Cheng ,写道: > On Tue, Jul 21, 2020 at 11:14 AM Jojo wrote: > > > > gcc/ChangeLog: > > > > * genemit.c (main): Print 'split line'. > > * Makefile.in (insn-emit.c): Define split count and file > > > > Thanks for working one this, following comments are based on the >

[PATCH] genemit.c (main): split insn-emit.c for compiling parallelly

2020-07-15 Thread Jojo R
Hi, The size of generated file like insn-emit.c is very huge if we add lots of define_expand patten or define_insn patten. It’s present easily when there are much more intrinsic interfaces it costs much more time to create toolchain with compiling these files :(