Re: [PATCH] loongarch: testsuite: skip builtin-apply2.c

2022-04-09 Thread
在 2022/4/9 上午5:46, Xi Ruoyao 写道: A simple testcase change, tested on loongarch64-linux-gnuabif64. Ok for trunk? --- On LoongArch, variadic functions use different arugment passing conventions so this test is not valid (see the section named "Variadic argument" in the [ELF ABI][1]) and

Re: [PATCH v10 10/12] LoongArch Port: libgomp

2022-03-24 Thread
Hi, Jakub:  Thanks for your review. 在 2022/3/24 下午8:41, Jakub Jelinek 写道: On Thu, Mar 24, 2022 at 08:37:32PM +0800, chenglulu wrote: libgomp/ * configure.tgt: Add LoongArch triplet. Ok. diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt index d4f1e741b5a..2cd7272fcd8

Re: [PATCH v8 04/12] LoongArch Port: Machine description files.

2022-03-19 Thread
在 2022/3/7 上午12:16, Richard Sandiford 写道: +(define_split + [(match_operand 0 "small_data_pattern")] + "reload_completed" + [(match_dup 0)] + { operands[0] = loongarch_rewrite_small_data (operands[0]); }) + + +;; Match paired HI/SI/SF/DFmode load/stores. +(define_insn "*join2_load_store" +

Re: [PATCH v8 05/12] LoongArch Port: Machine description C files and .h files.

2022-03-19 Thread
在 2022/3/8 上午2:17, Richard Sandiford 写道: […] +/* This definition replaces the formerly used 'm' constraint with a + different constraint letter in order to avoid changing semantics of + the 'm' constraint when accepting new address formats in + TARGET_LEGITIMATE_ADDRESS_P. The

Re: [PATCH v8 00/12] Add LoongArch support.

2022-03-16 Thread
在 2022/3/15 下午10:35, Xi Ruoyao 写道: On Fri, 2022-03-04 at 15:17 +0800, xucheng...@loongson.cn wrote: v7 -> v8 1. Add new addressing type ADDRESS_REG_REG support. 2. Modify documentation. 3. Eliminate compile-time warnings. Hi, The v8 series does not build LoongArch Linux kernel tree

Re: [PATCH v8 04/12] LoongArch Port: Machine description files.

2022-03-09 Thread
Hi,    We are modifying the code, this support will be added in the next commit. Thanks. 在 2022/3/8 上午4:15, Xi Ruoyao 写道: On Fri, 2022-03-04 at 15:18 +0800, xucheng...@loongson.cn wrote: * config/loongarch/loongarch.md: New file. An ICE happens building OpenSSH-8.9p1.

Re: [PATCH v8 04/12] LoongArch Port: Machine description files.

2022-03-06 Thread
Hi, Richard:  Thanks for your review. We will revise it as soon as possible and submit it in the next version. 在 2022/3/7 上午12:16, Richard Sandiford 写道: Hi, Some comments below, but otherwise it looks good to me. xucheng...@loongson.cn writes: […] +(define_memory_constraint "k" + "A

Re: [PATCH v7 11/12] LoongArch Port: gcc/testsuite

2022-02-27 Thread
Thanks,  speculation barrier is not needed for loongarch. I have removed the warning. 在 2022/2/25 上午3:32, Xi Ruoyao 写道: On Sat, 2022-02-12 at 11:11 +0800, xucheng...@loongson.cn wrote: From: chenglulu 2022-02-12  Chenghua Xu      Lulu Cheng  gcc/testsuite/ spec-barrier tests

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

2022-01-23 Thread
在 2022/1/23 下午5:00, Xi Ruoyao 写道: On Sun, 2022-01-23 at 16:39 +0800, 程璐璐 wrote: 在 2022/1/22 下午4:42, Xi Ruoyao 写道: On Sat, 2022-01-22 at 15:55 +0800, Chenghua Xu wrote: +mstrict-align +Target Var(TARGET_STRICT_ALIGN) Init(0) +Do not generate unaligned memory accesses. Section 2.1.8

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

2022-01-23 Thread
在 2022/1/22 下午4:42, Xi Ruoyao 写道: On Sat, 2022-01-22 at 15:55 +0800, Chenghua Xu wrote: +mstrict-align +Target Var(TARGET_STRICT_ALIGN) Init(0) +Do not generate unaligned memory accesses. Section 2.1.8 of LoongArch spec says "load/store instruction *may* be implemented to allow unaligned

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

2022-01-23 Thread
在 2022/1/22 下午5:31, Jakub Jelinek 写道: On Sat, Jan 22, 2022 at 05:05:00PM +0800, Xi Ruoyao wrote: On Sat, 2022-01-22 at 16:56 +0800, 程璐璐 wrote: Under the MIPS architecture, *.opt files are also generated in $(srcdir). Well, but then you should put the commands for generating those files

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

2022-01-22 Thread
-原始邮件- 发件人: "Jakub Jelinek" 发送时间: 2022-01-22 17:31:40 (星期六) 收件人: "Xi Ruoyao" 抄送: "程璐璐" , "Chenghua Xu" , gcc-patches@gcc.gnu.org, jos...@codesourcery.com 主题: Re: [PATCH v5 02/12] LoongArch Port: gcc build On Sat, Jan 22, 2022 at 05:

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

2022-01-22 Thread
在 2022/1/22 下午5:05, Xi Ruoyao 写道: On Sat, 2022-01-22 at 16:56 +0800, 程璐璐 wrote: Under the MIPS architecture, *.opt files are also generated in $(srcdir). Well, but then you should put the commands for generating those files into contrib/gcc_update instead of Makefile.in, just like MIPS

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

2022-01-22 Thread
在 2022/1/22 下午4:46, Xi Ruoyao 写道: On Sat, 2022-01-22 at 09:41 +0100, Jakub Jelinek wrote: On Sat, Jan 22, 2022 at 04:33:08PM +0800, Xi Ruoyao via Gcc-patches wrote: On Sat, 2022-01-22 at 15:55 +0800, Chenghua Xu wrote: +$(srcdir)/config/loongarch/loongarch.opt: \ +   

Re: [PATCH v4 04/12] LoongArch Port: Machine Decsription files.

2022-01-07 Thread
在 2022/1/7 上午1:54, Xi Ruoyao 写道: On Fri, 2021-12-24 at 17:28 +0800, chenglulu wrote: +(define_insn "*zero_extendsidi2_internal" +  [(set (match_operand:DI 0 "register_operand" "=r,r,r") +   (subreg:DI (match_operand:SI 1 "nonimmediate_operand" "r,ZC,W") 0))] +  "TARGET_64BIT" +  "@ +