Re: [PATCH 2/8]middle-end: Recognize scalar widening reductions

2022-10-31 Thread Jeff Law via Gcc-patches
On 10/31/22 05:57, Tamar Christina wrote: Hi All, This adds a new optab and IFNs for REDUC_PLUS_WIDEN where the resulting scalar reduction has twice the precision of the input elements. At some point in a later patch I will also teach the vectorizer to recognize this builtin once I figure out

[r13-3570 Regression] FAIL: g++.dg/other/pr39060.C -std=c++98 (test for excess errors) on Linux/x86_64

2022-10-31 Thread haochen.jiang via Gcc-patches
On Linux/x86_64, 259a11555c90783e53c046c310080407ee54a31e is the first bad commit commit 259a11555c90783e53c046c310080407ee54a31e Author: Jakub Jelinek Date: Mon Oct 31 09:09:48 2022 +0100 builtins: Add various complex builtins for _Float{16,32,64,128,32x,64x,128x} caused FAIL: g++.dg/ot

Re: [PATCH 3/8]middle-end: Support extractions of subvectors from arbitrary element position inside a vector

2022-10-31 Thread Jeff Law via Gcc-patches
On 10/31/22 05:57, Tamar Christina wrote: Hi All, The current vector extract pattern can only extract from a vector when the position to extract is a multiple of the vector bitsize as a whole. That means extract something like a V2SI from a V4SI vector from position 32 isn't possible as 32 is

Re: [PATCH] RISC-V: Fix RVV testcases.

2022-10-31 Thread Jeff Law via Gcc-patches
On 10/30/22 19:40, juzhe.zh...@rivai.ai wrote: From: Ju-Zhe Zhong gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/base/abi-2.c: Change ilp32d to ilp32. * gcc.target/riscv/rvv/base/abi-3.c: Ditto. * gcc.target/riscv/rvv/base/abi-4.c: Ditto. * gcc.target/ris

Re: [RFC] propgation leap over memory copy for struct

2022-10-31 Thread Jeff Law via Gcc-patches
On 10/30/22 20:42, Jiufu Guo via Gcc-patches wrote: Hi, We know that for struct variable assignment, memory copy may be used. And for memcpy, we may load and store more bytes as possible at one time. While it may be not best here: 1. Before/after stuct variable assignment, the vaiable may be o

Re: [PATCH v5] RISC-V: Libitm add RISC-V support.

2022-10-31 Thread Jeff Law via Gcc-patches
On 10/29/22 03:01, Xiongchuan Tan wrote: Reviewed-by: Palmer Dabbelt Acked-by: Palmer Dabbelt libitm/ChangeLog: * configure.tgt: Add riscv support. * config/riscv/asm.h: New file. * config/riscv/sjlj.S: New file. * config/riscv/target.h: New file. Pushed

Re: Re: [PATCH] RISC-V: Fix RVV testcases.

2022-10-31 Thread 钟居哲
These testcases are not depend on the ABI specification. I pick up the minimum ABI setting so that it won't fail. The naming of abi-* tests may be confusing, I can change the naming in the next time. juzhe.zh...@rivai.ai From: Jeff Law Date: 2022-11-01 06:00 To: juzhe.zhong; gcc-patches CC: sc

Re: [PATCH] RISC-V: Fix RVV testcases.

2022-10-31 Thread Palmer Dabbelt
On Mon, 31 Oct 2022 15:00:49 PDT (-0700), gcc-patches@gcc.gnu.org wrote: On 10/30/22 19:40, juzhe.zh...@rivai.ai wrote: From: Ju-Zhe Zhong gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/base/abi-2.c: Change ilp32d to ilp32. * gcc.target/riscv/rvv/base/abi-3.c: Ditto.

Re: [PATCH] Add __builtin_iseqsig()

2022-10-31 Thread Joseph Myers
On Mon, 31 Oct 2022, FX via Gcc-patches wrote: > - rounded conversions: converting, from an integer or floating point > type, into another floating point type, with specific rounding mode > passed as argument These don't have standard C names. The way to do these in C would be using the FENV_

Re: [committed] More gimple const/copy propagation opportunities

2022-10-31 Thread Jeff Law via Gcc-patches
On 10/1/22 12:55, Bernhard Reutner-Fischer wrote: On Fri, 30 Sep 2022 17:32:34 -0600 Jeff Law wrote: + /* This looks good from a CFG standpoint. Now look at the guts + of PRED. Basically we want to verify there are no PHI nodes + and no real statements. */ + if (! gimple_seq_emp

Re: Re: [PATCH] RISC-V: Fix RVV testcases.

2022-10-31 Thread 钟居哲
These cases actually doesn't care about -mabi, they just need 'v' in -march. Can you tell me how to fix these testcases for "fails on targets without ilp32d" ? These failures are bogus failures since if you specify -mabi=ilp32d when you are using GNU toolchain which is build up with "--arch=ilp32

Re: [RFC] propgation leap over memory copy for struct

2022-10-31 Thread Segher Boessenkool
Hi! On Mon, Oct 31, 2022 at 10:42:35AM +0800, Jiufu Guo wrote: > #define FN 4 > typedef struct { double a[FN]; } A; > > A foo (const A *a) { return *a; } > A bar (const A a) { return a; } > /// > > If FN<=2; the size of "A" fits into TImode, then this code can be optimized > (by subreg/cse/

Re: [RFC] propgation leap over memory copy for struct

2022-10-31 Thread Segher Boessenkool
On Mon, Oct 31, 2022 at 04:13:38PM -0600, Jeff Law wrote: > On 10/30/22 20:42, Jiufu Guo via Gcc-patches wrote: > >We know that for struct variable assignment, memory copy may be used. > >And for memcpy, we may load and store more bytes as possible at one time. > >While it may be not best here: >

[wwwdocs] [GCC13] Mention Intel __bf16 support in AVX512BF16 intrinsics.

2022-10-31 Thread Kong, Lingling via Gcc-patches
Hi The patch is for mention Intel __bf16 support in AVX512BF16 intrinsics. Ok for master ? Thanks, Lingling --- htdocs/gcc-13/changes.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/gcc-13/changes.html b/htdocs/gcc-13/changes.html index 7c6bfa6e..cd0282f1 100644 --- a/htdocs/

[pushed] c++: set TREE_NOTHROW after genericize

2022-10-31 Thread Jason Merrill via Gcc-patches
Tested x86_64-pc-linux-gnu, applying to trunk. -- >8 -- genericize might introduce function calls (and does on the contracts branch), so it's safer to set this flag later. gcc/cp/ChangeLog: * decl.cc (finish_function): Set TREE_NOTHROW later in the function. --- gcc/cp/decl.cc | 16 +++

Re: [wwwdocs] [GCC13] Mention Intel __bf16 support in AVX512BF16 intrinsics.

2022-10-31 Thread Hongtao Liu via Gcc-patches
On Tue, Nov 1, 2022 at 9:21 AM Kong, Lingling via Gcc-patches wrote: > > Hi > > The patch is for mention Intel __bf16 support in AVX512BF16 intrinsics. > Ok for master ? > > Thanks, > Lingling > > --- > htdocs/gcc-13/changes.html | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/htdocs/g

Re: [RFC] propgation leap over memory copy for struct

2022-10-31 Thread Jiufu Guo via Gcc-patches
Segher Boessenkool writes: > Hi! > > On Mon, Oct 31, 2022 at 10:42:35AM +0800, Jiufu Guo wrote: >> #define FN 4 >> typedef struct { double a[FN]; } A; >> >> A foo (const A *a) { return *a; } >> A bar (const A a) { return a; } >> /// >> >> If FN<=2; the size of "A" fits into TImode, then thi

Re: [RFC] propgation leap over memory copy for struct

2022-10-31 Thread Jiufu Guo via Gcc-patches
Jeff Law writes: > On 10/30/22 20:42, Jiufu Guo via Gcc-patches wrote: >> Hi, >> >> We know that for struct variable assignment, memory copy may be used. >> And for memcpy, we may load and store more bytes as possible at one time. >> While it may be not best here: >> 1. Before/after stuct variabl

Re: [RFC] propgation leap over memory copy for struct

2022-10-31 Thread Jiufu Guo via Gcc-patches
Segher Boessenkool writes: > On Mon, Oct 31, 2022 at 04:13:38PM -0600, Jeff Law wrote: >> On 10/30/22 20:42, Jiufu Guo via Gcc-patches wrote: >> >We know that for struct variable assignment, memory copy may be used. >> >And for memcpy, we may load and store more bytes as possible at one time. >>

Re: Adding a new thread model to GCC

2022-10-31 Thread i.nixman--- via Gcc-patches
On 2022-10-31 09:18, Eric Botcazou wrote: hello Eric! This also changes libstdc++ to pass -D_WIN32_WINNT=0x0600 but only when the switch --enable-libstdcxx-threads is passed, which means that C++11 threads are still disabled by default *unless* MinGW-W64 itself is configured for Windows Vista

[PATCH v2] LoongArch: Optimize immediate load.

2022-10-31 Thread Lulu Cheng
v1 -> v2: 1. Change the code format. 2. Fix bugs in the code. Both regression tests and spec2006 passed. The problem mentioned in the link does not move the four immediate load instructions out of the loop. It has been optimized. Now, as in the test case, four immediate load instructions are gene

<    1   2