Re: [PATCH v1 1/8] LoongArch: testsuite:Add detection procedures supported by the target.

2023-12-28 Thread Chenghua Xu
chenxiaolong writes: > In order to improve and check the function of vector quantization in > LoongArch architecture, tests on vector instruction set are provided > in target-support.exp. > > gcc/testsuite/ChangeLog: > > * lib/target-supports.exp:Add LoongArch to the list of supported >

Re: [PATCH] Loongarch: Fix plugin header missing install.

2023-08-18 Thread Chenghua Xu
Pushed as r14-3331. Thanks. chenglulu writes: > LGTM! > > 在 2023/8/16 上午9:48, Guo Jie 写道: >> gcc/ChangeLog: >> >> * config/loongarch/t-loongarch: Add loongarch-driver.h into >> TM_H. Add loongarch-def.h and loongarch-tune.h into >> OPTIONS_H_EXTRA. >> >> Co-authored-by: Lulu Cheng

Re: [PATCH 1/9] LoongArch: Introduce loongarch32 target

2023-08-08 Thread Chenghua Xu
Hi Jiajie, Thanks for you contribution. But we need some time to define/write/public ilp32d abi doc. Jiajie Chen via Gcc-patches writes: > Introduce loongarch32 target and ilp32 abi variants. The ilp32d abi > variant is selected as the default abi of loongarch32 target. > >

Re: [PATCH 5/9] loongarch: Don't add crtfastmath.o for -shared

2023-01-26 Thread Chenghua Xu
Sorry for delay. Pushed as r13-5424 with s/loongarch/LoongArch/ in commit message. Thanks for fix this. 在 2023/1/23 下午4:59, Richard Biener 写道: On Fri, 13 Jan 2023, Richard Biener wrote: Don't add crtfastmath.o for -shared to avoid altering the FP environment when loading a shared library.

Re: [PATCH v3] LoongArch: add addr_global attribute

2022-07-31 Thread Chenghua Xu
在 2022/7/30 上午1:17, Xi Ruoyao via Gcc-patches 写道: Change v2 to v3: - Disable section anchor for addr_global symbols. - Use -O2 in test to make sure section anchor is disabled. -- Background:

Re: [PATCH] [wwwdocs] Added LoongArch support to the gcc12 changes.

2022-05-07 Thread Chenghua Xu
Hi Gerald, Thinks for your review. As your suggestion,  change the HTML ids to lowercase. And pushed. Thanks. Chenghua On 5/7/22 22:38, Gerald Pfeifer wrote: On Sat, 7 May 2022, xucheng...@loongson.cn wrote: +LoongArch I usually recommend all lowercase for HTML ids. That is only a

Request a LoongArch port merge permission from the GCC Steering Committee

2022-03-20 Thread Chenghua Xu
and Joseph for the code review again. Thanks. Chenghua Xu [1] https://gcc.gnu.org/pipermail/gcc-patches/2022-March/592042.html

[PATCH v5 12/12] LoongArch Port: Add doc.

2022-01-22 Thread Chenghua Xu
From: chenglulu * contrib/config-list.mk: Add LoongArch triplet. * gcc/doc/install.texi: Add LoongArch options section. * gcc/doc/invoke.texi: Add LoongArch options section. * gcc/doc/md.texi: Add LoongArch options section. --- contrib/config-list.mk | 5 +-

[PATCH v5 08/12] LoongArch Port: libgcc

2022-01-22 Thread Chenghua Xu
From: chenglulu libgcc/ * config/loongarch/crtfastmath.c: New file. * config/loongarch/crti.S: Like wise. * config/loongarch/crtn.S: Like wise. * config/loongarch/lib2funcs.c: Like wise. * config/loongarch/linux-unwind.h: Like wise. *

[PATCH v5 11/12] LoongArch Port: gcc/testsuite

2022-01-22 Thread Chenghua Xu
From: chenglulu gcc/testsuite/ * g++.dg/cpp0x/constexpr-rom.C: Add build options for LoongArch. * g++.old-deja/g++.abi/ptrmem.C: Add LoongArch support. * g++.old-deja/g++.pt/ptrmem6.C: xfail for LoongArch. * gcc.dg/20020312-2.c: Add LoongArch support. *

[PATCH v5 06/12] LoongArch Port: Builtin functions.

2022-01-22 Thread Chenghua Xu
From: chenglulu gcc/ * config/loongarch/larchintrin.h: New file. * config/loongarch/loongarch-builtins.cc: New file. --- gcc/config/loongarch/larchintrin.h | 413 + gcc/config/loongarch/loongarch-builtins.cc | 511 + 2 files changed,

[PATCH v5 02/12] LoongArch Port: gcc build

2022-01-21 Thread Chenghua Xu
From: chenglulu gcc/ * common/config/loongarch/loongarch-common.cc: New file. * config/loongarch/genopts/genstr.sh: New file. * config/loongarch/genopts/loongarch-strings: New file. * config/loongarch/genopts/loongarch.opt.in: New file. *

[PATCH v5 10/12] LoongArch Port: libgomp

2022-01-21 Thread Chenghua Xu
From: chenglulu libgomp/ * configure.tgt: Add LoongArch triplet. --- libgomp/configure.tgt | 4 1 file changed, 4 insertions(+) diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt index d4f1e741b5a..2cd7272fcd8 100644 --- a/libgomp/configure.tgt +++ b/libgomp/configure.tgt

[PATCH v5 09/12] LoongArch Port: Regenerate libgcc/configure.

2022-01-21 Thread Chenghua Xu
From: chenglulu --- libgcc/configure | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libgcc/configure b/libgcc/configure index 4919a56f518..ce04c4f529f 100755 --- a/libgcc/configure +++ b/libgcc/configure @@ -2412,6 +2412,9 @@ case "${host}" in # sets the default

[PATCH v5 07/12] LoongArch Port: Builtin macros.

2022-01-21 Thread Chenghua Xu
From: chenglulu gcc/ *config/loongarch/loongarch-c.cc --- gcc/config/loongarch/loongarch-c.cc | 109 1 file changed, 109 insertions(+) create mode 100644 gcc/config/loongarch/loongarch-c.cc diff --git a/gcc/config/loongarch/loongarch-c.cc

[PATCH v5 03/12] LoongArch Port: Regenerate gcc/configure.

2022-01-21 Thread Chenghua Xu
From: chenglulu --- gcc/configure | 66 ++- 1 file changed, 60 insertions(+), 6 deletions(-) diff --git a/gcc/configure b/gcc/configure index bd4d4721868..3823bc4e783 100755 --- a/gcc/configure +++ b/gcc/configure @@ -5442,6 +5442,9 @@ case

[PATCH v5 01/12] LoongArch Port: Regenerate configure

2022-01-21 Thread Chenghua Xu
From: chenglulu * config/picflag.m4: Default add build option '-fpic' for LoongArch. * configure: Add LoongArch tuples. * configure.ac: Like wise. --- config/picflag.m4 | 3 +++ configure | 10 +- configure.ac | 10 +- 3 files changed, 21

[PATCH v5 00/12] Add LoongArch support

2022-01-21 Thread Chenghua Xu
The LoongArch architecture (LoongArch) is an Instruction Set Architecture (ISA) that has a Reduced Instruction Set Computer (RISC) style. The documents are on https://loongson.github.io/LoongArch-Documentation/README-EN.html The ELF ABI Documents are on:

[PATCH v3 12/12] LoongArch Port: Add doc.

2021-12-09 Thread Chenghua Xu
From: chenglulu * contrib/config-list.mk: Add LoongArch triplet. * gcc/doc/install.texi: Add LoongArch options section. * gcc/doc/invoke.texi: Add LoongArch options section. * gcc/doc/md.texi: Add LoongArch options section. --- contrib/config-list.mk | 5 +-

[PATCH v3 11/12] LoongArch Port: Regenerate configure

2021-12-09 Thread Chenghua Xu
From: chenglulu * config/picflag.m4: Default add build option '-fpic' for LoongArch. * configure: Add LoongArch tuples. * configure.ac: Like wise. --- config/picflag.m4 | 3 +++ configure | 10 +- configure.ac | 10 +- 3 files changed, 21

[PATCH v3 10/12] LoongArch Port: gcc/testsuite

2021-12-09 Thread Chenghua Xu
From: chenglulu gcc/testsuite/ * g++.dg/cpp0x/constexpr-rom.C: Add build options for LoongArch. * g++.old-deja/g++.abi/ptrmem.C: Add LoongArch support. * g++.old-deja/g++.pt/ptrmem6.C: xfail for LoongArch. * gcc.dg/20020312-2.c: Add LoongArch support. *

[PATCH v3 09/12] LoongArch Port: libgomp

2021-12-09 Thread Chenghua Xu
From: chenglulu libgomp/ * configure.tgt: Add LoongArch triplet. --- libgomp/configure.tgt | 4 1 file changed, 4 insertions(+) diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt index d4f1e741b5a..2cd7272fcd8 100644 --- a/libgomp/configure.tgt +++ b/libgomp/configure.tgt

[PATCH v3 07/12] LoongArch Port: libgcc

2021-12-09 Thread Chenghua Xu
From: chenglulu libgcc/ * config/loongarch/crtfastmath.c: New file. * config/loongarch/crti.S: Like wise. * config/loongarch/crtn.S: Like wise. * config/loongarch/lib2funcs.c: Like wise. * config/loongarch/linux-unwind.h: Like wise. *

[PATCH v3 08/12] LoongArch Port: Regenerate libgcc/configure.

2021-12-09 Thread Chenghua Xu
From: chenglulu --- libgcc/configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgcc/configure b/libgcc/configure index 4919a56f518..150ea04cb3d 100755 --- a/libgcc/configure +++ b/libgcc/configure @@ -5066,7 +5066,7 @@ $as_echo "$libgcc_cv_cfi" >&6; } # word size

[PATCH v3 05/12] LoongArch Port: Builtin functions.

2021-12-09 Thread Chenghua Xu
From: chenglulu gcc/ * config/loongarch/larchintrin.h: New file. * config/loongarch/loongarch-builtins.c: New file. --- gcc/config/loongarch/larchintrin.h| 413 + gcc/config/loongarch/loongarch-builtins.c | 511 ++ 2 files changed,

[PATCH v3 06/12] LoongArch Port: Builtin macros.

2021-12-09 Thread Chenghua Xu
From: chenglulu gcc/ *config/loongarch/loongarch-c.c --- gcc/config/loongarch/loongarch-c.c | 136 + 1 file changed, 136 insertions(+) create mode 100644 gcc/config/loongarch/loongarch-c.c diff --git a/gcc/config/loongarch/loongarch-c.c

[PATCH v3 01/12] LoongArch Port: gcc build

2021-12-09 Thread Chenghua Xu
From: chenglulu gcc/ * common/config/loongarch/loongarch-common.c: New file. * config/loongarch/genopts/genstr.sh: New file. * config/loongarch/genopts/loongarch-strings: New file. * config/loongarch/genopts/loongarch.opt.in: New file. *

[PATCH v3 02/12] LoongArch Port: Regenerate gcc/configure.

2021-12-09 Thread Chenghua Xu
From: chenglulu --- gcc/configure | 63 ++- 1 file changed, 57 insertions(+), 6 deletions(-) diff --git a/gcc/configure b/gcc/configure index a5160da83ec..2c95ceec398 100755 --- a/gcc/configure +++ b/gcc/configure @@ -7865,6 +7865,9 @@ else

[PATCH v3 00/12] Add LoongArch support.

2021-12-09 Thread Chenghua Xu
The LoongArch architecture (LoongArch) is an Instruction Set Architecture (ISA) that has a Reduced Instruction Set Computer (RISC) style. The documents are on https://loongson.github.io/LoongArch-Documentation/README-EN.html The ELF ABI Documents are on:

Re: [PATCH v1 1/7] LoongArch Port: gcc

2021-11-07 Thread Chenghua Xu
This patch does not arrive at  mail list. Send as an attachment in a compressed format. v1-0001-LoongArch-Port-gcc.patch.tar.xz Description: application/xz

[PATCH v1 7/7] LoongArch Port: Regenerate configure

2021-11-06 Thread Chenghua Xu
From: chenglulu * config/picflag.m4: Default add build option '-fpic' for LoongArch. * configure: Add LoongArch tuples. * configure.ac: Like wise. --- config/picflag.m4 | 3 +++ configure | 12 +++- configure.ac | 10 +- 3 files changed, 23

[PATCH v1 6/7] LoongArch Port: gcc/testsuite

2021-11-06 Thread Chenghua Xu
From: chenglulu gcc/testsuite/ * g++.dg/cpp0x/constexpr-rom.C: Add build options for LoongArch. * g++.old-deja/g++.abi/ptrmem.C: Add LoongArch support. * g++.old-deja/g++.pt/ptrmem6.C: xfail for LoongArch. * gcc.dg/20020312-2.c: Add LoongArch support. *

[PATCH v1 5/7] LoongArch Port: libgomp

2021-11-06 Thread Chenghua Xu
From: chenglulu libgomp/ * configure.tgt: Add LoongArch tuple. --- libgomp/configure.tgt | 4 1 file changed, 4 insertions(+) diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt index d4f1e741b5a..2cd7272fcd8 100644 --- a/libgomp/configure.tgt +++ b/libgomp/configure.tgt

[PATCH v1 4/7] LoongArch Port: Regenerate libgcc/configure.

2021-11-06 Thread Chenghua Xu
From: chenglulu --- libgcc/configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgcc/configure b/libgcc/configure index 4919a56f518..150ea04cb3d 100755 --- a/libgcc/configure +++ b/libgcc/configure @@ -5066,7 +5066,7 @@ $as_echo "$libgcc_cv_cfi" >&6; } # word size

[PATCH v1 3/7] LoongArch Port: libgcc

2021-11-06 Thread Chenghua Xu
From: chenglulu libgcc/ * config/loongarch/crtfastmath.c: New file. * config/loongarch/crti.S: Like wise. * config/loongarch/crtn.S: Like wise. * config/loongarch/lib2funcs.c: Like wise. * config/loongarch/linux-unwind.h: Like wise. *

[PATCH v1 2/7] LoongArch Port: Regenerate gcc/configure.

2021-11-06 Thread Chenghua Xu
From: chenglulu --- gcc/configure | 63 ++- 1 file changed, 57 insertions(+), 6 deletions(-) diff --git a/gcc/configure b/gcc/configure index 920868bcd33..5044fc27e42 100755 --- a/gcc/configure +++ b/gcc/configure @@ -7759,6 +7759,9 @@ else

[PATCH v1 0/7] Add LoongArch support.

2021-11-06 Thread Chenghua Xu
This is a series of patch sets to support LoongArch. The LoongArch architecture (LoongArch) is an Instruction Set Architecture (ISA) that has a Reduced Instruction Set Computer (RISC) style. The documents are on https://loongson.github.io/LoongArch-Documentation/README-EN.html The ELF ABI