[Bug target/83479] Register spilling in AVX code

2018-11-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83479 Richard Biener changed: What|Removed |Added Status|NEW |RESOLVED Known to work|

[Bug target/83479] Register spilling in AVX code

2017-12-19 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83479 --- Comment #9 from rguenther at suse dot de --- On Tue, 19 Dec 2017, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83479 > > --- Comment #8 from Jakub Jelinek --- > (In reply to Richard Biener from comment #7)

[Bug target/83479] Register spilling in AVX code

2017-12-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83479 --- Comment #8 from Jakub Jelinek --- (In reply to Richard Biener from comment #7) > but it seems this is how _mm512_set1_pd works: > > extern __inline __m512d > __attribute__ ((__gnu_inline__, __always_inline__, __artificial__)) > _mm512_set1_p

[Bug target/83479] Register spilling in AVX code

2017-12-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83479 Richard Biener changed: What|Removed |Added Status|WAITING |NEW CC|

[Bug target/83479] Register spilling in AVX code

2017-12-19 Thread bugzi...@poradnik-webmastera.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83479 --- Comment #6 from Daniel Fruzynski --- One correction: In c#4 line 17 has incorrect index, should be 8 instead of 9. For some reason gcc did not complain here. vLastRow = _mm512_load_pd (&data[8][0]);

[Bug target/83479] Register spilling in AVX code

2017-12-19 Thread bugzi...@poradnik-webmastera.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83479 --- Comment #5 from Daniel Fruzynski --- Here is also valid AVX version, it also spills a bit. Compiled with "-O3 -march=haswell -Wall -Werror". [code] #include "immintrin.h" double test(const double data[5][4]) { __m256d vLastRow, vLastCol,

[Bug target/83479] Register spilling in AVX code

2017-12-19 Thread bugzi...@poradnik-webmastera.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83479 --- Comment #4 from Daniel Fruzynski --- Rule No.1: never log bugs before morning coffee ;) This does not produce warnings, compiled with "-O3 -march=haswell -mavx512f -mavx512vl -mavx512bw -mavx512dq -mavx512cd -Wall -Werror". [code] #include "

[Bug target/83479] Register spilling in AVX code

2017-12-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83479 --- Comment #3 from Richard Biener --- And compiling with -Wall gives t.c: In function ‘test’: t.c:32:37: warning: index value is out of bound [-Warray-bounds] vLastCol = _mm256_set1_pd(vLastRow[4]); ^ t.c

[Bug target/83479] Register spilling in AVX code

2017-12-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83479 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|