[Bug target/89929] __attribute__((target("avx512bw"))) doesn't work on non avx512bw systems

nheart at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Apr 17 12:58:00 GMT 2019


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

--- Comment #19 from Nikolay Bogoychev <nheart at gmail dot com> ---
(In reply to Martin Liška from comment #18)
> (In reply to Martin Liška from comment #17)
> > > 
> > > @Martin:
> > > 
> > > Thank you for the detailed answer. This could work for now. I have a few
> > > questions about it:
> > > 
> > > Wouldn't that create issues in the future if AMD decide to release avx512
> > > for their CPUs?
> > 
> > No, that will only require to add target(arch=amd-name-with-avx512).
> > 

Does this mean that if I have an avx512bw+dq function, I'd have to have two
identical versions of it that I have to target with arch=canonlake and
arch=amd-something-with-avx512? Seems a bit... unellegant.

> 
> > > 
> > > Cheers,
> > > 
> > > Nick
> > 
> > Let me investigate that.

Thanks for opening the bug

Cheers,

Nick


More information about the Gcc-bugs mailing list