Re: Can I use -Ofast without libmvec

2018-03-22 Thread Andrew Senkevich
2018-03-22 19:08 GMT+01:00 Steve Ellcey : > I have a question about the math vector library routines in libmvec. > If I compile a program on x86 with -Ofast, something like: > > void foo(double * __restrict x, double * __restrict y, double * __restrict z) > { > for (int i = 0; i < 1000; i++

Re: [RFC] Support register groups in inline asm

2017-03-16 Thread Andrew Senkevich
2017-03-16 9:50 GMT+01:00 Richard Biener : > On Wed, 15 Mar 2017, Andrew Senkevich wrote: > >> 2016-12-05 16:31 GMT+01:00 Andrew Senkevich : >> > 2016-11-16 8:02 GMT+03:00 Andrew Pinski : >> >> On Tue, Nov 15, 2016 at 9:36 AM, Andrew Senkevich >> >&g

Re: [RFC] Support register groups in inline asm

2017-03-15 Thread Andrew Senkevich
2016-12-05 16:31 GMT+01:00 Andrew Senkevich : > 2016-11-16 8:02 GMT+03:00 Andrew Pinski : >> On Tue, Nov 15, 2016 at 9:36 AM, Andrew Senkevich >> wrote: >>> Hi, >>> >>> new Intel instructions AVX512_4FMAPS and AVX512_4VNNIW introduce use >>> of

Re: [RFC] Support register groups in inline asm

2016-12-05 Thread Andrew Senkevich
2016-11-16 8:02 GMT+03:00 Andrew Pinski : > On Tue, Nov 15, 2016 at 9:36 AM, Andrew Senkevich > wrote: >> Hi, >> >> new Intel instructions AVX512_4FMAPS and AVX512_4VNNIW introduce use >> of register groups. >> >> To support register groups feature in in

[RFC] Support register groups in inline asm

2016-11-15 Thread Andrew Senkevich
Hi, new Intel instructions AVX512_4FMAPS and AVX512_4VNNIW introduce use of register groups. To support register groups feature in inline asm needed some extension with new constraints. Current proposal is the following syntax: __asm__ (“SMTH %[group], %[single]" :

Re: [RFC] Formation of vector function name

2016-02-20 Thread Andrew Senkevich
2015-06-16 17:23 GMT+03:00 Joseph Myers : > On Mon, 15 Jun 2015, Andrew Pinski wrote: > >> > results in asm redirection for log to __log_finite and final vector >> > function name becomes _ZGVbN2v___log_finite. >> > >> > With point of view from C Library side, it reflects in addition of asm >> > re

[RFC] Difference between gcc and g++ drivers

2015-06-24 Thread Andrew Senkevich
Hi, Glibc 2.22 will have libm.so implemented as linker script helping to link as needed against vector math library libmvec.so without addition of -lmvec (for not static builds). Another words -lm is enough to link against libmvec.so. But g++ driver inserts -lm for linker command, gcc griver not.

[RFC] Formation of vector function name

2015-06-15 Thread Andrew Senkevich
Hi, compilation with options -fopenmp -ffast-math -O1 -msse4 of the test #pragma omp declare simd notinbranch simdlen(2) extern double log (double); int N = 3200; double b[3200]; double a[3200]; int main (void) { int i; #pragma omp simd for (i = 0; i < N; i += 1) { b[i] = log (a[i])

Re: gcc Digest 26 Dec 2014 16:51:42 -0000 Issue 7953

2015-01-13 Thread Andrew Senkevich
2015-01-13 14:28 GMT+03:00 Jakub Jelinek : > On Tue, Jan 13, 2015 at 02:14:30PM +0300, Andrew Senkevich wrote: >> >> Consensus is required to commit x86_64 vector math functions by Glibc >> >> maintainer. >> > >> > With the difference that b stands for

Re: gcc Digest 26 Dec 2014 16:51:42 -0000 Issue 7953

2015-01-13 Thread Andrew Senkevich
2015-01-12 19:46 GMT+03:00 Jakub Jelinek : > On Mon, Jan 12, 2015 at 07:38:10PM +0300, Andrew Senkevich wrote: >> > during work on addition vector math functions to Glibc and discussions >> > with community was found an issue with meaning of “#pragma omp declare >> &g

Re: gcc Digest 26 Dec 2014 16:51:42 -0000 Issue 7953

2015-01-12 Thread Andrew Senkevich
> From: Andrew Senkevich > To: GCC Mailing List , > openmp-...@dcs-maillist2.engr.illinois.edu, libc-alpha > > Cc: > Date: Fri, 26 Dec 2014 19:51:05 +0300 > Subject: OpenMP vector function ABI for x86_64 > ­Hi, > > during work on addition vector math functions t

OpenMP vector function ABI for x86_64

2014-12-26 Thread Andrew Senkevich
­Hi, during work on addition vector math functions to Glibc and discussions with community was found an issue with meaning of “#pragma omp declare simd” (which will appear in math.h). Issue is there are no working way­ to specify ISA of vector function in GCC 5.0, and hence no way to determine ex

Re: Getting a build failure in glibc due to gcc changes on 32bit x86 glibc

2014-11-27 Thread Andrew Senkevich
On Wed, Nov 26, 2014 at 02:59:34PM -0800, Andrew Pinski wrote: > This looks like the same issue as I reported before about > check_consistency() since that is what is failing to assemble here > too. This is also fixed by this patch - https://sourceware.org/ml/libc-alpha/2014-10/msg00746.html --