https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89929

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
> 
> Hey Martin,
> 
> Something fishy is going on with multiple attributes. Eg:
> 
> __attribute__((target("avx512bw", "avx512f"))) 

"avx512bw" argument is broken right now (and will be fixed).
Using a different one works, e.g.:

$ cat pr89929-3.cc
__attribute__((target("sse2", "avx512f"))) int foo(int i) {
        return 1;
}

__attribute__((target("sse3"))) int foo(int i) {
        return 2;
}

__attribute__((target("default"))) int foo(int i) {
        return 4;
}

int main()
{
        return foo(2);
}

$ g++ pr89929-3.cc
[no output]

Reply via email to