[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-10 Thread ferruh.yigit at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #21 from Ferruh YIGIT --- (In reply to Jakub Jelinek from comment #19) > Upstream 2.31 and 2.31.1 is affected too, but 2.31 branch starting with > August 2018 is not affected. As the fix has been backported also to 2.30 > branch, I g

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-10 Thread ferruh.yigit at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #20 from Ferruh YIGIT --- Confirmed that issue is fixed with the latest assembler [1]. [1] as --version GNU assembler (GNU Binutils) 2.32.51.20190410?

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #19 from Jakub Jelinek --- Upstream 2.31 and 2.31.1 is affected too, but 2.31 branch starting with August 2018 is not affected. As the fix has been backported also to 2.30 branch, I guess 2.30 is affected too, 2.32 is not affected.

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-10 Thread ferruh.yigit at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #18 from Ferruh YIGIT --- (In reply to Nick Clifton from comment #17) > (In reply to Jakub Jelinek from comment #8) > > Fedora binutils-2.31.1-24.fc29.x86_64 has the bug, haven't checked upstream > > 2.31.1 nor which exact patch fixed

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-10 Thread nickc at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 Nick Clifton changed: What|Removed |Added CC||nickc at gcc dot gnu.org --- Comment #17

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-10 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED See Also|

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-10 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #15 from Martin Liška --- Fixed in bintuils with: commit 629cfaf1b0fbb32a985607c774bd8e7870b9fa94 (HEAD, refs/bisect/bad) Author: Jan Beulich Date: Mon Jul 30 17:25:05 2018 +0200 x86: don't mistakenly scale non-8-bit displace

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-10 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #14 from Martin Liška --- $ as --version GNU assembler (GNU Binutils; openSUSE Tumbleweed) 2.32 is fine: $ as --64 avx512.s -o avx512.o && objdump -S avx512.o | grep gather 234b: 62 f2 fd 2a 91 04 0dvpgatherqq 0x8(,%ym

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-10 Thread ferruh.yigit at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #13 from Ferruh YIGIT --- (In reply to Hongtao.liu from comment #6) > (In reply to Ferruh YIGIT from comment #1) > > Created attachment 46115 [details] > > 19.05-rc1 -mno-avx512f gcc build on skylake > > > > The build is done with ch

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-10 Thread ferruh.yigit at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #12 from Ferruh YIGIT --- Created attachment 46128 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46128&action=edit 19.05-rc1 -mno-avx512f gcc build on skylake .s file via --save-temp

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-10 Thread ferruh.yigit at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #11 from Ferruh YIGIT --- Created attachment 46127 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46127&action=edit 19.05-rc1 -mno-avx512f gcc build on skylake .o file

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-10 Thread ferruh.yigit at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #10 from Ferruh YIGIT --- Created attachment 46126 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46126&action=edit 19.05-rc1 default gcc build (avx512 enabled) on skylake .s file via --save-temps

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-10 Thread ferruh.yigit at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #9 from Ferruh YIGIT --- Created attachment 46125 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46125&action=edit 19.05-rc1 default gcc build (avx512 enabled) on skylake .o file

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #8 from Jakub Jelinek --- Fedora binutils-2.31.1-24.fc29.x86_64 has the bug, haven't checked upstream 2.31.1 nor which exact patch fixed it. But as I said, there is no testcase coverage for this, so it might break any time again.

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #7 from Jakub Jelinek --- Looks like gas bug to me: vpgatherqq 8(,%ymm1,1), %ymm0{%k2} vpgatherqq 8(%rcx,%ymm1,1), %ymm0{%k2} vpgatherqq %ymm2, 8(,%ymm1,1), %ymm0 vpgatherqq %ymm2, 8(%rcx,%ymm1,1), %ymm0 when assem

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-10 Thread crazylht at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #6 from Hongtao.liu --- (In reply to Ferruh YIGIT from comment #1) > Created attachment 46115 [details] > 19.05-rc1 -mno-avx512f gcc build on skylake > > The build is done with changing the lib/librte_kni/Makefile as following: > >

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-09 Thread ferruh.yigit at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #5 from Ferruh YIGIT --- Tested with latest gcc [1], same output. [1] Compiled from source: gcc (GCC) 9.0.1 20190409 (experimental)

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-09 Thread ferruh.yigit at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #4 from Ferruh YIGIT --- Created attachment 46117 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46117&action=edit .s file generated by "--save-temps" param

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-09 Thread ferruh.yigit at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #3 from Ferruh YIGIT --- Created attachment 46116 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46116&action=edit .i file generated by "--save-temps" param

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-09 Thread ferruh.yigit at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #2 from Ferruh YIGIT --- While preparing the support files for this report, via --save-temps, recognized that generated .s file output is a little different, and correct assuming the suspicion on source of the failure was right:

[Bug target/90028] On Intel Skylake (-march=native) generated avx512 instruction can be wrong

2019-04-09 Thread ferruh.yigit at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028 --- Comment #1 from Ferruh YIGIT --- Created attachment 46115 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46115&action=edit 19.05-rc1 -mno-avx512f gcc build on skylake The build is done with changing the lib/librte_kni/Makefile as follo