Re: [PATCH v2] [rs6000] Add _mm_blend_epi16 and _mm_blendv_epi8

2019-07-21 Thread Segher Boessenkool
On Sun, Jul 21, 2019 at 05:22:19PM -0500, Paul Clarke wrote: > Add compatibility implementations of _mm_blend_epi16 and _mm_blendv_epi8 > intrinsics. > > Respective test cases are copied almost verbatim (minor changes to > the dejagnu head lines) from i386. > > 2019-07-21 Paul A. Clarke > >

Re: [rs6000] Add documentation for __builtin_mtfsf

2019-07-21 Thread Segher Boessenkool
On Sun, Jul 21, 2019 at 02:50:41PM -0500, Paul Clarke wrote: > On 7/21/19 1:13 PM, Segher Boessenkool wrote: > > On Sun, Jul 21, 2019 at 04:06:32AM -0500, Paul Clarke wrote: > >> +@code{__builtin_mtfsf} takes a constant 8-bit integer field mask and a > >> +representation of the new value of the

Re: [PATCH], Patch #10, move PowerPC data structures & helper functions from rs6000.c to rs6000-internal.h

2019-07-21 Thread Segher Boessenkool
Hi! On Sat, Jul 20, 2019 at 12:13:08PM -0400, Michael Meissner wrote: > 2019-07-20 Michael Meissner > > * config/rs6000/rs6000-internal.h (rs6000_hard_regno_mode_ok_p): > Move various declarations relating to addressing and register > allocation to rs6000-internal.h from

Re: [PATCH v3 3/3] PR80791 Consider doloop cmp use in ivopts

2019-07-21 Thread Kewen.Lin
Hi Bin, on 2019/7/21 上午11:07, Bin.Cheng wrote: > On Wed, Jun 19, 2019 at 7:47 PM Kewen.Lin wrote: >> >> Hi all, >> >> This is the following patch after >> https://gcc.gnu.org/ml/gcc-patches/2019-06/msg00910.html >> >> Main steps: >> 1) Identify the doloop cmp type iv use and record its

Re: cp: implementation of p1301 for C++

2019-07-21 Thread JeanHeyd Meneide
Oops. I learned that %< and %> do not get applied as part of the string arguments, only the initial format string. So, updated patch: - diff --git a/.gitignore b/.gitignore index b53f60db792..8988746a314 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,6 @@ REVISION /mpc* /gmp*

Re: cp: implementation of p1301 for C++

2019-07-21 Thread JeanHeyd Meneide
I think I managed to fix all of the issues. Do let me know if I missed anything! -- diff --git a/.gitignore b/.gitignore index b53f60db792..8988746a314 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,6 @@ REVISION /mpc* /gmp* /isl* + +# ignore some editor-specific files

[PATCH v2] [rs6000] Add _mm_blend_epi16 and _mm_blendv_epi8

2019-07-21 Thread Paul Clarke
Add compatibility implementations of _mm_blend_epi16 and _mm_blendv_epi8 intrinsics. Respective test cases are copied almost verbatim (minor changes to the dejagnu head lines) from i386. 2019-07-21 Paul A. Clarke [gcc] * config/rs6000/smmintrin.h (_mm_blend_epi16): New.

Re: [PATCH] MIPS: Fix GCC `noreorder' for undefined R5900 short loops

2019-07-21 Thread Maciej W. Rozycki
Hi Fredrik, > The present problem is related to GCC and the R5900 short loop bug[1]. It > turns out GCC emits assembly code like > > loop: addiu $5,$5,1 > addiu $4,$4,1 > lb $2,-1($5) > .setnoreorder > .setnomacro > bne $2,$3,loop > sb

C++ PATCH to add test for c++/67853

2019-07-21 Thread Marek Polacek
Tested on x86_64-linux, applying. 2019-07-21 Marek Polacek PR c++/67853 * g++.dg/cpp0x/decltype72.C: New test. diff --git gcc/testsuite/g++.dg/cpp0x/decltype72.C gcc/testsuite/g++.dg/cpp0x/decltype72.C new file mode 100644 index 000..071e0e76210 --- /dev/null +++

[wwwdocs] Update C++ DR list

2019-07-21 Thread Marek Polacek
A small update. Applied to CVS. Index: cxx-dr-status.html === RCS file: /cvs/gcc/wwwdocs/htdocs/projects/cxx-dr-status.html,v retrieving revision 1.23 diff -u -r1.23 cxx-dr-status.html --- cxx-dr-status.html 8 Jul 2019 18:51:50

Re: Ping: [PATCH] x86/AVX512: improve generated code for bit-wise negation of vectors of integers

2019-07-21 Thread Jeff Law
On 7/18/19 10:05 AM, Jan Beulich wrote: On 27.06.19 at 10:59, wrote: >> NOT on vectors of integers does not require loading a constant vector of >> all ones into a register - VPTERNLOG can be used here (and could/should >> be further used to carry out other binary and ternary logical

Re: [PATCH] Make a warning for -Werror=wrong-language (PR driver/91172).

2019-07-21 Thread Jeff Law
On 7/17/19 1:40 AM, Martin Liška wrote: > On 7/16/19 6:40 PM, Martin Sebor wrote: >> On 7/16/19 5:16 AM, Martin Liška wrote: >>> Hi. >>> >>> I noticed in the PR that -Werror=argument argument is not verified >>> that the option is supported by a language we compile for. >>> That's changed in the

[PPC, committed] Fix bootstrap for non-SVR4 targets.

2019-07-21 Thread Iain Sandoe
The recent change to move code into the new rs6000-call.c file is missing a default value for the TARGET_NO_PROTOTYPE value (which only affects targets that don’t include svr4.h). Fixed by moving the fallback setting from rs6000.c (which has no uses now) to rs6000-call.c. pre-approved on IRC by

Re: Add dg test for matching function bodies

2019-07-21 Thread Jeff Law
On 7/16/19 8:04 AM, Richard Sandiford wrote: > There isn't a 1:1 mapping from SVE intrinsics to SVE instructions, > but the intrinsics are still close enough to the instructions for > there to be a specific preferred sequence (or sometimes choice of > preferred sequences) for a given combination

Re: [PATCH] Do not emit __gnu_lto_v1 symbol.

2019-07-21 Thread Jeff Law
On 7/15/19 7:30 AM, Martin Liška wrote: > Hi. > > The patch is about removal of the emission of __gnu_lto_v1. > The symbol should not be needed any longer for GCC driver. > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? > Thanks, > Martin >

Re: [PATCH][MSP430] Fix unnecessary saving of all callee-saved regs in an interrupt function that calls another function

2019-07-21 Thread Jeff Law
On 7/18/19 6:33 AM, Jozef Lawrynowicz wrote: > The attached patch fixes an issue for msp430 where the logic to decide which > registers need to be saved in an interrupt function was unnecessarily > choosing to save all callee-saved registers regardless of whether they were > used or not. This came

Re: [PATCH] Simplify LTO section format.

2019-07-21 Thread Jeff Law
On 7/17/19 4:32 AM, Martin Liška wrote: > Hi. > > The patch is about simplified LTO ELF section header where > want to make public fields major_version, minor_version and > slim_object. The rest is implementation defined by GCC. > > Patch can bootstrap on x86_64-linux-gnu and survives regression

Re: [rs6000] Add documentation for __builtin_mtfsf

2019-07-21 Thread Paul Clarke
On 7/21/19 1:13 PM, Segher Boessenkool wrote: > On Sun, Jul 21, 2019 at 04:06:32AM -0500, Paul Clarke wrote: >> +@code{__builtin_mtfsf} takes a constant 8-bit integer field mask and a >> +representation of the new value of the FPSCR and generates the @code{mtfsf} >> +instruction to copy the

[libgomp, WIP, GSoC'19] Modification to a single queue, single execution path.

2019-07-21 Thread 김규래
Finished unifying the three queues to team->task_queue. All the tests passed except some unsupported target tests. === libgomp Summary === # of expected passes 6749 # of expected failures 4 # of unsupported tests 349 I also tried to make taskwait_end, taskgroup_end,

Re: [rs6000] Add documentation for __builtin_mtfsf

2019-07-21 Thread Segher Boessenkool
Hi Paul, On Sun, Jul 21, 2019 at 04:06:32AM -0500, Paul Clarke wrote: > @@ -16864,6 +16865,10 @@ return the value of the FPSCR register. Note, ISA > @code{__builtin_mffsl()} which permits software to read the control and > non-sticky status bits in the FSPCR without the higher latency

Re: [PATCH], Patch #10, move PowerPC data structures & helper functions from rs6000.c to rs6000-internal.h

2019-07-21 Thread Segher Boessenkool
On Sat, Jul 20, 2019 at 12:13:08PM -0400, Michael Meissner wrote: > I will be iterating on patch #9 and sending out a replacement shortly. > > This is patch #10. It moves the various data structures from rs6000.c to I'll review this tomorrow, fwiw. A general request: please don't send patches

Re: [PATCH] [rs6000] Add _mm_blend_epi16 and _mm_blendv_epi8

2019-07-21 Thread Segher Boessenkool
Hi Paul, All looks fine, okay for trunk. Thanks! Just some possible improvements: On Fri, Jul 19, 2019 at 10:18:47PM -0500, Paul Clarke wrote: > +extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, > __artificial__)) Maybe all these terribly long lines would be better

[PATCH] MIPS: Fix GCC `noreorder' for undefined R5900 short loops

2019-07-21 Thread Fredrik Noring
Hi Paul, Matthew, Paul -- as I'm preparing the R5900 kernel patches there was a USB DMA series and breakage that needed attention. The fixes ending with ff2437befd8f ("usb: host: Fix excessive alignment restriction for local memory allocations") are now merged with Linus' kernel, and recommended

Re: [PATCH] i386: Expand roundeven for SSE4.1+

2019-07-21 Thread Tejas Joshi
Hi. Thanks for the heads up. I did successful bootstrap build and regression testing on x86_64-linux-gnu for the above patch and have the test summary diff for patched and unpatched versions, but I do not know if it has passed the regression test or not hence attaching the diff here. Thanks,

[rs6000] Add documentation for __builtin_mtfsf

2019-07-21 Thread Paul Clarke
2019-07-21 Paul A. Clarke [gcc] * doc/extend.texi: Add documentation for __builtin_mtfsf. Index: gcc/doc/extend.texi === --- gcc/doc/extend.texi (revision 273615) +++ gcc/doc/extend.texi (working copy) @@ -16848,6