Re: [PATCH] RISC-V/testsuite: Fix ILP32 RVV failures from missing

2023-09-24 Thread Vineet Gupta
+CC Patrick who's been chasing similar issues. On 9/23/23 00:18, Maciej W. Rozycki wrote: In non-multilib installations system headers may not be available for compilation options using a non-default model, causing build errors such as: In file included from .../include/features.h:527,

Re: [PATCH 1/1] gcc/d: add LoongArch64 support for D frontend

2023-09-24 Thread Iain Buclaw
Excerpts from liushuyu's message of September 24, 2023 1:21 am: > > gcc/ChangeLog: > > * config.gcc: add loongarch-d.o to d_target_objs for LoongArch > architecture. > > gcc/config/ChangeLog: > > * loongarch/loongarch-d.cc > (loongarch_d_target_versions): add interface f

RE: [PATCH v2] RISC-V: Fix fortran ICE/PR111546 when RV32 vec_init

2023-09-24 Thread Li, Pan2
Committed, thanks Juzhe. Pan From: 钟居哲 Sent: Sunday, September 24, 2023 2:06 PM To: Li, Pan2 ; gcc-patches Cc: Li, Pan2 ; Wang, Yanzhang ; kito.cheng ; patrick Subject: Re: [PATCH v2] RISC-V: Fix fortran ICE/PR111546 when RV32 vec_init LGTM juzhe.zh...@rivai

Re: [PATCH v1] Update check_effective_target_vect_int_mod according to LoongArch SX/ASX capabilities.

2023-09-24 Thread Xi Ruoyao
On Wed, 2023-09-20 at 09:15 +0800, Chenghui Pan wrote: > LoongArch failed to pass gcc.dg/pr104992.c with -mlsx and -mlasx. This test > uses > different dg-final directives depending on the vect_int_mod result, LoongArch > SX/ASX supports this operations but corresponding description is not defined

Re: RISC-V: Added support for CRC.

2023-09-24 Thread Alexander Monakov
On Sun, 24 Sep 2023, Joern Rennecke wrote: > It is a stated goal of coremark to test performance for CRC. I would expect a good CRC benchmark to print CRC throughput in bytes per cycle or megabytes per second. I don't see where Coremark states that goal. In the readme at https://github.com/eem

[PATCH] Always generate else-block in gimplify

2023-09-24 Thread Jørgen Kvalsvik
This is a request for feedback and a proof-of-concept, not something I intend to merge as-is. It would be nice if gcc, maybe just under some circumstances, always generated an else-block for coverage purposes. I am working on the MC/DC support by CFG analysis for a while https://gcc.gnu.org/piper

[PING] [C PATCH] Synthesize nonnull attribute for parameters declared with static

2023-09-24 Thread Martin Uecker
Am Mittwoch, dem 26.07.2023 um 18:06 +0200 schrieb Martin Uecker: > > C programmers increasingly use static to indicate that > pointer parameters are non-null. Clang can exploit this > for warnings and optimizations. GCC has some warnings > but not all warnings it has for nonnull. Below is a >

Re: RISC-V: Added support for CRC.

2023-09-24 Thread Joern Rennecke
On Sun, 24 Sept 2023 at 12:41, Alexander Monakov wrote: > > > On Sun, 24 Sep 2023, Joern Rennecke wrote: > > > It is a stated goal of coremark to test performance for CRC. > > I would expect a good CRC benchmark to print CRC throughput in > bytes per cycle or megabytes per second. > > I don't see

[PATCH] Fix PR 110386: backprop vs ABSU_EXPR

2023-09-24 Thread Andrew Pinski
The issue here is that when backprop tries to go and strip sign ops, it skips over ABSU_EXPR but ABSU_EXPR not only does an ABS, it also changes the type to unsigned. Since strip_sign_op_1 is only supposed to strip off sign changing operands and not ones that change types, removing ABSU_EXPR here i

[PATCH v2 0/1] Add LoongArch64 support for D frontend

2023-09-24 Thread Zixing Liu
This patch adds the LoongArch64 support for GCC D frontend. The runtime support is submitted as a separate patch here: https://github.com/dlang/dmd/pull/15628. You can find more information about the LoongArch architecture on this website: https://loongson.github.io/LoongArch-Documentation/README

[PATCH v2 1/1] gcc/d: add LoongArch64 support for D frontend

2023-09-24 Thread Zixing Liu
gcc/ChangeLog: * config.gcc: add loongarch-d.o to d_target_objs for LoongArch architecture. gcc/config/ChangeLog: * loongarch/loongarch-d.cc (loongarch_d_target_versions): add interface function to define builtin D versions for LoongArch architecture.

Re: [PATCH-1v2, rs6000] Enable SImode in FP registers on P7 [PR88558]

2023-09-24 Thread HAO CHEN GUI
Hi Kewen, 在 2023/9/18 15:34, Kewen.Lin 写道: > hanks for checking! So for P7, this patch looks neutral, but for P8 and > later, it may cause some few differences in code gen. I'm curious that how > many total object files and different object files were checked and found > on P8? P8 with -O2, fo

Re: [PATCH v2 00/13] Support Intel APX EGPR

2023-09-24 Thread Hongtao Liu
On Fri, Sep 22, 2023 at 6:56 PM Hongyu Wang wrote: > > Hi, > > This is a v2 patch for APX support which follows-up previous discussion in > https://gcc.gnu.org/pipermail/gcc-patches/2023-August/628904.html > > As discussed in previous thread, the inverse approach to extend base/index reg > support

[PATCH-2v3, rs6000] Implement 32bit inline lrint [PR88558]

2023-09-24 Thread HAO CHEN GUI
Hi, This patch implements 32bit inline lrint by "fctiw". It depends on the patch1 to do SImode move from FP registers on P7. Compared to last version, the main change is to add some test cases. https://gcc.gnu.org/pipermail/gcc-patches/2023-September/629187.html Bootstrapped and tested on p

Re:[pushed] [PATCH] LoongArch: Optimizations of vector construction.

2023-09-24 Thread chenglulu
Pushed to r14-4245. 在 2023/9/21 上午9:19, Guo Jie 写道: gcc/ChangeLog: * config/loongarch/lasx.md (lasx_vecinit_merge_): New pattern for vector construction. (vec_set_internal): Ditto. (lasx_xvinsgr2vr__internal): Ditto. (lasx_xvilvl__internal): Ditto.

Re: [PATCH v1] Update check_effective_target_vect_int_mod according to LoongArch SX/ASX capabilities.

2023-09-24 Thread Chenghui Pan
Thanks for your advice! I will check it out and submit a new version of patch. On Sun, 2023-09-24 at 18:05 +0800, Xi Ruoyao wrote: > On Wed, 2023-09-20 at 09:15 +0800, Chenghui Pan wrote: > > LoongArch failed to pass gcc.dg/pr104992.c with -mlsx and -mlasx. > > This test uses > > different dg-fina

Re: [PATCH] Fix PR 110386: backprop vs ABSU_EXPR

2023-09-24 Thread Richard Biener
> Am 24.09.2023 um 17:24 schrieb Andrew Pinski : > > The issue here is that when backprop tries to go > and strip sign ops, it skips over ABSU_EXPR but > ABSU_EXPR not only does an ABS, it also changes the > type to unsigned. > Since strip_sign_op_1 is only supposed to strip off > sign changin

Re: [PATCH, rs6000] Enable vector compare for 16-byte memory equality compare [PR111449]

2023-09-24 Thread Kewen.Lin
Hi, on 2023/9/20 16:49, HAO CHEN GUI wrote: > Hi, > This patch enables vector compare for 16-byte memory equality compare. > The 16-byte memory equality compare can be efficiently implemented by > instruction "vcmpequb." It reduces one branch and one compare compared > with two 8-byte compare se