[Bug ipa/95790] Incorrect static target dispatch

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Jun 20 22:36:20 GMT 2020


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

--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Yichao Yu from comment #5)
> It’s wrong when running on a target that has avx512f. The unoptimuzed
> version will call the correct foo but the unoptimized case won’t.
> 
> As I said, this is an issue when the total targets are different between the
> callee and caller.

Your testcase has nested function multi-versioning.  I don't think it works
at all.  I opened PR 95793.


More information about the Gcc-bugs mailing list