[Bug fortran/78611] -march=native makes code 3x slower

2016-11-30 Thread pepalogik at seznam dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78611 --- Comment #11 from Jan Lachnitt --- Thank you all for a rapid investigation of the problem. Here is a confirmation with the large test case: jenda@VivoBook ~/Bug reports/gfortran/6/PhSh1 $ gfortran-6 phsh1.f -std=legacy -I. -march=core-avx-i

[Bug fortran/78611] -march=native makes code 3x slower

2016-11-30 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78611 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug fortran/78611] -march=native makes code 3x slower

2016-11-30 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78611 --- Comment #9 from Uroš Bizjak --- (In reply to H.J. Lu from comment #7) > (In reply to H.J. Lu from comment #6) > > Which glibc was used? You may run into: > > > > https://sourceware.org/bugzilla/show_bug.cgi?id=20495 > > Please run your

[Bug fortran/78611] -march=native makes code 3x slower

2016-11-30 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78611 --- Comment #8 from Uroš Bizjak --- (In reply to H.J. Lu from comment #6) > Which glibc was used? You may run into: > > https://sourceware.org/bugzilla/show_bug.cgi?id=20495 Fedora 25: $ /lib/libc.so.6 GNU C Library (GNU libc) stable

[Bug fortran/78611] -march=native makes code 3x slower

2016-11-30 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78611 --- Comment #7 from H.J. Lu --- (In reply to H.J. Lu from comment #6) > Which glibc was used? You may run into: > > https://sourceware.org/bugzilla/show_bug.cgi?id=20495 Please run your testcase with # LD_BIND_NOW=1 ./test with and without

[Bug fortran/78611] -march=native makes code 3x slower

2016-11-30 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78611 H.J. Lu changed: What|Removed |Added CC||hjl.tools at gmail dot com --- Comment #6

[Bug fortran/78611] -march=native makes code 3x slower

2016-11-30 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78611 --- Comment #5 from Uroš Bizjak --- I can confirm the slowdown with -mavx on ivybridge-E: -msse4 real0m0.278s user0m0.276s sys 0m0.002s -mavx real0m0.699s user0m0.696s sys 0m0.003s in -msse4 case, perf report

[Bug fortran/78611] -march=native makes code 3x slower

2016-11-30 Thread pepalogik at seznam dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78611 --- Comment #4 from Jan Lachnitt --- Small test case with -march=core-avx-i: real0m1.300s user0m1.296s sys 0m0.000s I.e., reproduced.

[Bug fortran/78611] -march=native makes code 3x slower

2016-11-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78611 --- Comment #3 from Richard Biener --- Can't reproduce (with the small testcase) and -march=native on fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm

[Bug fortran/78611] -march=native makes code 3x slower

2016-11-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78611 --- Comment #2 from Richard Biener --- It's hard to guess what happens, esp. w/o optimization the difference should be minimal. It would be nice if you can isolate the difference to a specific architecture flag rather than native

[Bug fortran/78611] -march=native makes code 3x slower

2016-11-30 Thread pepalogik at seznam dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78611 --- Comment #1 from Jan Lachnitt --- Created attachment 40200 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40200=edit Smaller test case Here is a smaller test case, which runs for a second only, not hours. without -march=native: real