[Bug target/59952] -march=core-avx2 should not enable RTM

2014-05-08 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 Uroš Bizjak changed: What|Removed |Added Target||x86 Status|ASSIGNED

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-05-08 Thread uros at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #23 from uros at gcc dot gnu.org --- Author: uros Date: Thu May 8 19:32:34 2014 New Revision: 210237 URL: http://gcc.gnu.org/viewcvs?rev=210237&root=gcc&view=rev Log: PR target/59952 * config/i386/i386.c (ix86_option_override_

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-05-08 Thread uros at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #22 from uros at gcc dot gnu.org --- Author: uros Date: Thu May 8 19:23:45 2014 New Revision: 210236 URL: http://gcc.gnu.org/viewcvs?rev=210236&root=gcc&view=rev Log: PR target/59952 * config/i386/i386.c (PTA_HASWELL): Remove

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-05-08 Thread uros at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #21 from uros at gcc dot gnu.org --- Author: uros Date: Thu May 8 19:13:10 2014 New Revision: 210234 URL: http://gcc.gnu.org/viewcvs?rev=210234&root=gcc&view=rev Log: PR target/59952 * config/i386/i386.c (PTA_HASWELL): Remove

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-05-08 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #20 from Uroš Bizjak --- (In reply to Thiago Macieira from comment #19) > The prefix can be emitted for any CPU, you don't need a flag for that. > However, you cannot emit the XTEST instruction unless the CPU has HLE or RTM. Please re

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-05-08 Thread thiago at kde dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #19 from Thiago Macieira --- The prefix can be emitted for any CPU, you don't need a flag for that. However, you cannot emit the XTEST instruction unless the CPU has HLE or RTM.

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-05-08 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #18 from Uroš Bizjak --- (In reply to Jakub Jelinek from comment #17) > I'm not sure about that, after all we enable PTA_HLE even for generic. > The point is whether it might be beneficial to emit the HLE prefixes or not, > on CPUs tha

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-05-08 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #17 from Jakub Jelinek --- I'm not sure about that, after all we enable PTA_HLE even for generic. The point is whether it might be beneficial to emit the HLE prefixes or not, on CPUs that never have HLE obviously it doesn't make sense,

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-05-08 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #16 from Uroš Bizjak --- (In reply to Thiago Macieira from comment #15) > (In reply to H.J. Lu from comment #14) > > I think HLE is the part of TSX. > > It is and should be removed from the list. OK.

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-05-08 Thread thiago at kde dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #15 from Thiago Macieira --- (In reply to H.J. Lu from comment #14) > I think HLE is the part of TSX. It is and should be removed from the list.

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-05-08 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #14 from H.J. Lu --- (In reply to Uroš Bizjak from comment #13) > Patch: > > --cut here-- > Index: config/i386/i386.c > === > --- config/i386/i386.c (revision 210219) >

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-05-08 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 Uroš Bizjak changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at g

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-05-07 Thread thiago at kde dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #12 from Thiago Macieira --- GCC 4.9.0 got released with -march=haswell still enabling RTM and HLE, even though there are Haswell parts without TSX.

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-01-31 Thread kirill.yukhin at intel dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #11 from Yukhin Kirill --- (In reply to Yukhin Kirill from comment #9) > (In reply to Jakub Jelinek from comment #6) > > Prerelease samples shouldn't count, people using those just can avoid using > > -march=haswell and use -march=ivyb

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-01-27 Thread thiago at kde dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #10 from Thiago Macieira --- (In reply to Yukhin Kirill from comment #9) > I am checking and will get back to. I though all AVX2 parts had BMI1/2 The evidence seems to support that. I did check with a few colleagues and we couldn't co

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-01-27 Thread kirill.yukhin at intel dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #9 from Yukhin Kirill --- (In reply to Jakub Jelinek from comment #6) > Prerelease samples shouldn't count, people using those just can avoid using > -march=haswell and use -march=ivybridge -mavx2 or similar instead. Can > anyone from

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-01-27 Thread thiago at kde dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #8 from Thiago Macieira --- (In reply to Thiago Macieira from comment #7) > (In reply to Jakub Jelinek from comment #6) > > Prerelease samples shouldn't count, people using those just can avoid using > > -march=haswell and use -march=i

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-01-27 Thread thiago at kde dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #7 from Thiago Macieira --- (In reply to Jakub Jelinek from comment #6) > Prerelease samples shouldn't count, people using those just can avoid using > -march=haswell and use -march=ivybridge -mavx2 or similar instead. Can > anyone fr

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-01-27 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #6 from Jakub Jelinek --- Prerelease samples shouldn't count, people using those just can avoid using -march=haswell and use -march=ivybridge -mavx2 or similar instead. Can anyone from Intel verify if all released Haswell CPUs have BM

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-01-27 Thread mikpelinux at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #5 from Mikael Pettersson --- (In reply to Thiago Macieira from comment #4) > (In reply to Mikael Pettersson from comment #3) > > There are also Haswells that lack BMI2. I updated our dynamic binary > > instrumentation engine for AVX2

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-01-27 Thread thiago at kde dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #4 from Thiago Macieira --- (In reply to Mikael Pettersson from comment #3) > There are also Haswells that lack BMI2. I updated our dynamic binary > instrumentation engine for AVX2 about a year ago, but while our Haswell box > at the

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-01-27 Thread mikpelinux at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #3 from Mikael Pettersson --- There are also Haswells that lack BMI2. I updated our dynamic binary instrumentation engine for AVX2 about a year ago, but while our Haswell box at the time had AVX2 it didn't have BMI2 etc, causing Intel

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-01-27 Thread thiago at kde dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 --- Comment #2 from Thiago Macieira --- The Ks and the Rs don't have it. The plain 4770 as well as 4770S do have it. I guess we were too eager with TSX when the announcement came out 2 years ago: it sounded like all Haswell would have it. I don't

[Bug target/59952] -march=core-avx2 should not enable RTM

2014-01-26 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59952 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|