[PATCH 2/2] [i386] For 128/256-bit vec_cond_expr, When mask operands is lt reg const0_rtx, blendv can be used instead of avx512 mask. [PR target/100648]

2021-05-23 Thread Hongtao Liu via Gcc-patches
Hi: This patch is about to add define_insn_and_split to convert avx512 mask mov back to pblendv instructions when mask operand is (lt: reg const0_rtx). Bootstrapped and regtested on x86_64-linux-gnu{-m32,}. Ok for trunk? gcc/ChangeLog: PR target/100648 * config/i386/sse.md

[PATCH 1/2] [i386] Fold blendv builtins into gimple.

2021-05-23 Thread Hongtao Liu via Gcc-patches
Hi: This patch is about to Fold __builtin_ia32_pblendvb128 (a, b, c) as VEC_COND_EXPR (c < 0, b, a), similar for float version but with mask operand VIEW_CONVERT_EXPR to same sized integer vectype. After folding, blendv related patterns can be redefined as vec_merge since all elements of mask

[PATCH] Use match-and-simplify in phi-opt

2021-05-23 Thread apinski--- via Gcc-patches
From: Andrew Pinski To simplify PHI-OPT and future improvements to it in most (but not all) cases, using match-and-simplify simplifies how much code is needed to be added. This depends on the following two patches: https://gcc.gnu.org/pipermail/gcc-patches/2021-May/571033.html

[PATCHv2] Optimize x < 0 ? ~y : y to (x >> 31) ^ y in match.pd

2021-05-23 Thread apinski--- via Gcc-patches
From: Andrew Pinski This copies the optimization that is done in phiopt for "x < 0 ? ~y : y to (x >> 31) ^ y" into match.pd. The code for phiopt is kept around until phiopt uses match.pd (which I am working towards). Note the original testcase is now optimized early on and I added a new

[PATCH] Fix two testcases for ssa names which are more than 1 digit

2021-05-23 Thread apinski--- via Gcc-patches
From: Andrew Pinski phi-opt-10.c and phi-opt-7.c both depend on currently that some ssa name versions are one digit long which is not always correct. This fixes the problem by detecting digits rather than just using '.'. Committed as obvious after a bootstrap/test. Thanks, Andrew Pinski

[PATCH] config: Backport "Rely less on internal symbols" (serial 68) to gettext.m4

2021-05-23 Thread Michael Forney
GNU gettext introduced this change[0] in version 0.19.8 to fix gettext detection with musl libc, since it does not define these internal symbols. This allows gcc to build with musl gettext rather than falling back to the bundled version. [0]

Re: [PATCH 06/57] rs6000: Add helper functions for parsing

2021-05-23 Thread Bernhard Reutner-Fischer via Gcc-patches
On 21 May 2021 22:56:09 CEST, Bill Schmidt via Gcc-patches wrote: >>> + if (lastpos < pos) >>> +return 0; >>> + >>> + char *buf = (char *) malloc (lastpos - pos + 2); >>> + memcpy (buf, [pos], lastpos - pos + 1); >>> + buf[lastpos - pos + 1] = '\0'; >>> + >>> + pos = lastpos + 1; >>> +

[PATCH] i386: Add push insns for 4-byte vectors [PR100722]

2021-05-23 Thread Uros Bizjak via Gcc-patches
2021-05-23 Uroš Bizjak gcc/ PR target/100722 * config/i386/mmx.md (*push2_rex64): New instruction pattern. (*push2): Ditto. (push splitter for SSE registers): New splitter. gcc/testsuite/ PR target/100722 * gcc.target/i386/pr100722.c: New test. Bootstrapped and

Re: [PATCH] PR fortran/100551 - [11/12 Regression] Passing return value to class(*) dummy argument

2021-05-23 Thread Paul Richard Thomas via Gcc-patches
Hi Harald, I meant to deal with this myself since I am the guilty party. However, the last two weeks have been taken up by a house move and so gfortran has been on the backburner. The patch looks good and seems to do the job - OK for master and 11-branch. Thanks a million for dealing with it!

Re: Add '__OPTIMIZE__' DejaGnu selector

2021-05-23 Thread Mike Stump via Gcc-patches
On May 18, 2021, at 9:02 AM, Thomas Schwinge wrote: > Is the attached "Add '__OPTIMIZE__' DejaGnu selector" OK to push after > testing? Ok.

Re: [PATCH] Optimize x < 0 ? ~y : y to (x >> 31) ^ y in match.pd

2021-05-23 Thread Andrew Pinski via Gcc-patches
On Sun, May 23, 2021 at 5:49 AM Martin Liška wrote: > > Hello. > > Similarly to: > https://gcc.gnu.org/pipermail/gcc-patches/2021-May/571039.html > > I've just reverted the ChangeLog commit change. I'm planning update > of the documentation. Obviously is for the other patch which I pushed and

Re: [PATCH] Optimize x < 0 ? ~y : y to (x >> 31) ^ y in match.pd

2021-05-23 Thread Andrew Pinski via Gcc-patches
On Sun, May 23, 2021 at 6:14 AM Marc Glisse wrote: > > On Sun, 23 May 2021, apinski--- via Gcc-patches wrote: > > > +(for cmp (ge lt) > > +/* x < 0 ? ~y : y into (x >> (prec-1)) ^ y. */ > > +/* x >= 0 ? ~y : y into ~((x >> (prec-1)) ^ y). */ > > + (simplify > > + (cond (cmp @0 integer_zerop)

Re: [GOVERNANCE] Where to file complaints re project-maintainers?

2021-05-23 Thread Mike Stump via Gcc-patches
This isn't a patch to gcc, please stop posting non-technical content to this list. Please review what this list is for and the rules for this list before you post again, thanks. > On May 14, 2021, at 7:47 AM, abebeos via Gcc-patches > wrote: > > Hi there IT-fascists, clowns, master-clowns,

Re: [wwwdocs, committed] htdocs/gitwrite.html: Remove link to nonexisting '#example'

2021-05-23 Thread Gerald Pfeifer
On Sun, 23 May 2021, Tobias Burnus wrote: > I did not check svnwrite.html, but since gitwrite.html came into > existence, no example existed ... > > Committed as attached. Thanks. I had a look at the instructions, and they seem to be sufficient, even for folks not intimately familiar with

Re: [PATCH] Optimize x < 0 ? ~y : y to (x >> 31) ^ y in match.pd

2021-05-23 Thread Marc Glisse
On Sun, 23 May 2021, apinski--- via Gcc-patches wrote: +(for cmp (ge lt) +/* x < 0 ? ~y : y into (x >> (prec-1)) ^ y. */ +/* x >= 0 ? ~y : y into ~((x >> (prec-1)) ^ y). */ + (simplify + (cond (cmp @0 integer_zerop) (bit_not @1) @1) + (if (INTEGRAL_TYPE_P (TREE_TYPE (@0)) +&&

[wwwdocs, patch] htdocs/gitwrite.html: Clarify ChangeLog generation

2021-05-23 Thread Tobias Burnus
As there was some confusion regarding when the ChangeLog is generated, I propose the attached wwwdocs patch. Comments? (Side remark: The cron-script commit by gccadmin@ is labelled "Daily bump." and updates gcc/DATESTAMP besides the ChangeLog files.) Tobias - Mentor Graphics

[wwwdocs, committed] htdocs/gitwrite.html: Remove link to nonexisting '#example'

2021-05-23 Thread Tobias Burnus
I did not check svnwrite.html, but since gitwrite.html came into existence, no example existed ... Committed as attached. Tobias - Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank

Re: [PATCH] Optimize x < 0 ? ~y : y to (x >> 31) ^ y in match.pd

2021-05-23 Thread Martin Liška
Hello. Similarly to: https://gcc.gnu.org/pipermail/gcc-patches/2021-May/571039.html I've just reverted the ChangeLog commit change. I'm planning update of the documentation. Cheers, Martin

Re: [Ping^2, Patch, Fortran] PR98301 Re: RANDOM_INIT() and coarray Fortran

2021-05-23 Thread Martin Liška
On 5/23/21 1:59 PM, Andre Vehreschild wrote: Hi Martin, thanks for pointing that out. I haven't committed for quite some time now and could not find on the webpage how this works nowadays. I was thinking that the special gcc-git-command should have added the Changelog entries automagically and

Re: [Ping^2, Patch, Fortran] PR98301 Re: RANDOM_INIT() and coarray Fortran

2021-05-23 Thread Andre Vehreschild via Gcc-patches
Hi Martin, thanks for pointing that out. I haven't committed for quite some time now and could not find on the webpage how this works nowadays. I was thinking that the special gcc-git-command should have added the Changelog entries automagically and immediately. That they are added by a daily

Re: [OG11] Merge GCC 11 into branch, cherry picks from mainline

2021-05-23 Thread Tobias Burnus
On 17.05.21 12:33, Tobias Burnus wrote: On 14.05.21 10:51, Tobias Burnus wrote: OG11 = devel/omp/gcc-11, a branch with some OpenMP/OpenACC/offload patches which are not yet on mainline. Additionally, patches in this area are cherry-picked from mainline Changes since last email (cherry pick,

[Patch, committed] fortran/intrinsic.texi: Use proper variable name (Re: online doc corr.)

2021-05-23 Thread Tobias Burnus
Hi Johannes, hi all, On 22.05.21 23:06, Johannes Nendwich via Gcc wrote: https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gfortran/ATOMIC_005fADD.html#ATOMIC_005fADD "ATOMIC_ADD(ATOM, VALUE) atomically adds the value of VAR to the variable ATOM." --> "... adds the value of VALUE ..." ? Indeed – and

[PATCH] Optimize x < 0 ? ~y : y to (x >> 31) ^ y in match.pd

2021-05-23 Thread apinski--- via Gcc-patches
From: Andrew Pinski This copies the optimization that is done in phiopt for "x < 0 ? ~y : y to (x >> 31) ^ y" into match.pd. The code for phiopt is kept around until phiopt uses match.pd (which I am working towards). Note the original testcase is now optimized early on and I added a new

Re: [Patch] OpenMP/Fortran: Handle polymorphic scalars in data-sharing FIRSTPRIVATE [PR86470]

2021-05-23 Thread Tobias Burnus
*PING* (OpenMP patches: I note that the reduction + firstprivate→tofrom patch is still being reviewed and that there are bunch of recently posted patches by ChungLin + Julian which are also pending review.) (There is also one patch (affinity + iterator) I still have to repost – and will happen

[PATCHv2] Add a couple of A?CST1:CST2 match and simplify optimizations

2021-05-23 Thread apinski--- via Gcc-patches
From: Andrew Pinski Instead of some of the more manual optimizations inside phi-opt, it would be good idea to do a lot of the heavy lifting inside match and simplify instead. In the process, this moves the three simple A?CST1:CST2 (where CST1 or CST2 is zero) simplifications. OK? Boostrapped