This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, i386] Refactor -mprefer-avx[128|256] options into common -mprefer-vector-width=[none|128|256|512]
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: "Shalnov, Sergey" <sergey dot shalnov at intel dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "kirill dot yukhin at gmail dot com" <kirill dot yukhin at gmail dot com>, "Koval, Julia" <julia dot koval at intel dot com>, "Senkevich, Andrew" <andrew dot senkevich at intel dot com>, "Peryt, Sebastian" <sebastian dot peryt at intel dot com>, "Ivchenko, Alexander" <alexander dot ivchenko at intel dot com>
- Date: Tue, 14 Nov 2017 07:56:48 +0100
- Subject: Re: [PATCH, i386] Refactor -mprefer-avx[128|256] options into common -mprefer-vector-width=[none|128|256|512]
- Authentication-results: sourceware.org; auth=none
- References: <71475DE127B5E94A8E189586234C088822AE2AC8@irsmsx105.ger.corp.intel.com> <CAFULd4Ye868qm1A5166q01JDGdYZQJx=uCoUaOecENFj-3yhKQ@mail.gmail.com> <alpine.DEB.2.20.1711132313070.32222@digraph.polyomino.org.uk>
On Tue, Nov 14, 2017 at 12:14 AM, Joseph Myers <joseph@codesourcery.com> wrote:
> On Mon, 13 Nov 2017, Uros Bizjak wrote:
>
>> [BTW: --mprefer-avx128 should be marked RejectNegative from the
>> beginning; let's just assume nobody uses it in its (somehow weird)
>> negative "-mno-prefer-avx128" form.]
>
> It's used in that form in various testcases that otherwise fail when GCC
> is configured --with-arch= some CPU that defaults to -mprefer-avx128.
In this case, an even better choice would be:
Alias(mprefer-vector-width=, 128, none)
So, -mno-prefer-avx128 would just set the default back to none.
Uros.