From: Uros Bizjak <ubizjak@gmail.com>
To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: [PATCH, i386]: Fix PR59952, -march=core-avx2 should not enable RTM
Date: Thu, 08 May 2014 19:12:00 -0000 [thread overview]
Message-ID: <CAFULd4YhMpyAPk=ragzE3X37thKJjSrdq_ySovYj-zFpWC1OKA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 496 bytes --]
Hello!
Apparently, not all Haswell processors have TSX. Attached patch
removes PTA_RTM from default Haswell flags. PTA_HLX still makes sense
for Haswell processors, since the prefix is ignored on non-TSX
processors.
2014-05-08 Uros Bizjak <ubizjak@gmail.com>
PR target/59952
* config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
Bootstrapped and regression tested on x86_64-pc-linux-gnu. The patch
is committed on mainline, will be backported to all relevant release
branches.
Uros.
[-- Attachment #2: p.diff.txt --]
[-- Type: text/plain, Size: 575 bytes --]
Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c (revision 210231)
+++ config/i386/i386.c (working copy)
@@ -3130,7 +3130,7 @@ ix86_option_override_internal (bool main_args_p,
(PTA_SANDYBRIDGE | PTA_FSGSBASE | PTA_RDRND | PTA_F16C)
#define PTA_HASWELL \
(PTA_IVYBRIDGE | PTA_AVX2 | PTA_BMI | PTA_BMI2 | PTA_LZCNT \
- | PTA_FMA | PTA_MOVBE | PTA_RTM | PTA_HLE)
+ | PTA_FMA | PTA_MOVBE | PTA_HLE)
#define PTA_BROADWELL \
(PTA_HASWELL | PTA_ADX | PTA_PRFCHW | PTA_RDSEED)
#define PTA_BONNELL \
reply other threads:[~2014-05-08 19:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFULd4YhMpyAPk=ragzE3X37thKJjSrdq_ySovYj-zFpWC1OKA@mail.gmail.com' \
--to=ubizjak@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).