Re: [PATCH] mv28.C: Compile with -march=x86-64

Hongtao Liu <[email protected]>
Newsgroups gmane.comp.gcc.patches
Message-ID <CAMZc-bwfqVuiy7N1_3gnrHWPRti_rsWQPBc-6b6+srd_neiXow@mail.gmail.com>
On Tue, Aug 18, 2026 at 1:22 PM H.J. Lu <[email protected]> wrote:
>
> mv28.C has
>
> void __attribute__ ((target("avx512vl"))) foo () {} /* { dg-error "ISA
> '\[^\n\r\]*' is not supported in 'target' attribute, use 'arch='
> syntax" } */
> ...
>
> to check for unsupported target attribute errors.  If AVX512 is enabled
> by default, there are no expected compiler errors.  Compile mv28.C with
> -march=x86-64 so that AVX512 isn't enabled on AVX512 machines when GCC
> is configured with
>
> --with-arch=native --with-cpu=native
Ok.
>
> PR testsuite/126923
> * g++.target/i386/mv28.C (dg-additional-options): New.
>
> --
> H.J.



-- 
BR,
Hongtao
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.